
Not too long ago, extracting text in Excel was a bit of a nightmare. Sure, we've always had functions like LEFT, RIGHT, MID, LEN, and FIND to help us, but even the simplest extractions could require a lengthy formula.
That changed last year, as Microsoft announced a new set of text functions that made things significantly easier for us:
โค TEXTBEFORE โ return text from a value that is before a specific delimiter.
โค TEXTAFTER โ return text from a value that is after a specific delimiter.
โค TEXTSPLIT โ split text into rows or columns according to a specific delimiter.
Video example
The text string 'Global Excel Summit' is contained in cell A2. This is referenced in the following formulas to extract certain parts:
'Global'
=๐๐ด๐๐๐ฑ๐ด๐ต๐พ๐๐ด(๐ฐ๐ธ," ")
'Global Excel'
=๐๐ด๐๐๐ฑ๐ด๐ต๐พ๐๐ด(๐ฐ๐ธ," ",๐ธ)
'Excel Summit'
=๐๐ด๐๐๐ฐ๐ต๐๐ด๐(๐ฐ๐ธ," ")
'Summit'
=๐๐ด๐๐๐ฐ๐ต๐๐ด๐(๐ฐ๐ธ," ",๐ธ)'
Excel'
=๐ธ๐ฝ๐ณ๐ด๐(๐๐ด๐๐๐๐ฟ๐ป๐ธ๐(๐ฐ๐ธ," "),,๐ธ)
The delimiter used in all of them is a space enclosed in quotation marks (" "). By default, the first instance of a space is found first; however, setting the [๐๐๐๐๐๐๐๐_๐๐๐] argument to 2 ensures the second occurrence is prioritised.
Extracting 'Excel' is more challenging than the others because it's in the middle of the string. That's why splitting the whole value first with TEXTSPLIT and then setting INDEX's [๐๐๐๐๐๐_๐๐๐] argument to 2 is necessary to only return one value.
On a final note, don't forget there are other ways to extract text as well. Text to Columns, Flash Fill, and Power Query are all alternatives!
For more Excel tips and tricks like this, check out our Video Tutorials page.
Latest Articles
.png)
Sheetcast - A Natural Evolution for People Who Love Excel
.png)
How to Build Your First AI Agent in Excel

Leap into Excelโs AI revolution with COPILOTALT by Sheetcast
One week, two premier events
Join the European Excel Week - from learning and mastering new skills at Global Excel Summit to elite performance at the Excel Esports European Open.


.avif)