Events
Free Community Day (14 March)Conference 2026 (19-20 May)Awards 2026 (Nominations Open)
Speakers
Agenda
Conference AgendaMasterclassesCorporate Training
About
About usParticipating CompaniesEvent PartnersVisitor info
Resources
BlogEbooksFAQs
ContactGet Tickets
0

Your Cart

  • :
Remove
Subtotal:
Pay with browser.
Continue to Checkout
No items found.
Product is not available in this quantity.
Andrew Moss
Technical Writer
Resources
May 12, 2023

Extracting text from a string in Excel

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

@globalexcelsummit 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. 𝗩𝗶𝗱𝗲𝗼 𝗲𝘅𝗮𝗺𝗽𝗹𝗲 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! #exceleration #excel #microsoftexcel #excelformulas #exceltips #globalexcelsummit ♬ original sound - globalexcelsummit

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
ICAEW Confirms Continued Partnership with the Global Excel Summit
Sheetcast - A Natural Evolution for People Who Love Excel
How to Build Your First AI Agent in Excel
Categories
News
Resources
Andrew Moss
Technical Writer
Share:

Latest Articles

Resources
Dec 22nd, 2025

Sheetcast - A Natural Evolution for People Who Love Excel

Excel becomes the backend, Sheetcast becomes the interface, and users get an app instead of a fragile file.
Read Article →
Resources
Nov 24th, 2025

How to Build Your First AI Agent in Excel

Rather than positioning AI as something that replaces Excel, George Mount demonstrates how Excel becomes more powerful when paired with modern AI.
Read Article →
Resources
Nov 10th, 2025

Leap into Excel’s AI revolution with COPILOTALT by Sheetcast

This groundbreaking new function lets you experience the future of Excel… today!
Read Article →

365-Day Digital Access

Your exclusive all-access pass to our entire digital learning experience for a whole year.

Get 365-Day Digital Pass
Pages
Home
20212022202320242025
About UsFAQsOnline CoursesBlogContact
LEGALS
Privacy PolicyTerms of Service
Subscribe to our newsletter!
The Global Excel Summit is a premium global conference bringing together thebrightest minds from the world of Excel.
© 2026 The Global Excel Summit is organised and managed by DATEL Productions Limited, a company incorporatedin England and Wales (no. 10106893) and registered at Suite 407, 95 Wilton Road, London SW1V 1BZ, UK.