Uploaded October 2022 | Updated December 2026, 3 hours ago
Split titles and names in Excel with TEXTBEFORE and TEXTAFTER, no LEFT or FIND needed.
π₯ Download the free workbook: xelplus.com/excel-textbefore-textafter/?utm_source=yt-video&utm_medium=vid-description&utm_campaign=download-textbefore-textafter&utm_content=excel-textbefore-textafter#download
π Modern Excel Functions (500,000+ enrolled in our courses): xelplus.com/course/new-excel-functions-course/?utm_source=yt-video&utm_medium=vid-description&utm_campaign=modern-functions&utm_content=excel-textbefore-textafter
In Austria, people collect titles, so a name can come with none, one, two or a whole row of them. I split these into one column for the titles and one for the name.
I walk through every argument of TEXTBEFORE: instance number, match mode, match_end and if_not_found. Then I show the trick that makes it dynamic: an instance number of -1 searches from the right. TEXTAFTER works the same way and returns the name.
β Good to know
TEXTBEFORE and TEXTAFTER work in Microsoft 365, Excel 2024 and Excel for the web. They're not in Excel 2021 or older.
All titles, blank if there are none: =TEXTBEFORE(A2,". ",-1,,1)
The name without titles: =TEXTAFTER(A2,". ",-1,,1)
You can use if_not_found instead of match_end to handle names without a title. Both work.
β±οΈ Chapters
00:00 TEXTBEFORE and TEXTAFTER: split titles from names
00:23 The problem: names with many titles
00:55 What TEXTBEFORE and TEXTAFTER do
01:19 TEXTBEFORE: text and delimiter
01:54 Instance number
02:22 Case-sensitive or not: match_mode
02:36 What match_end does
03:32 if_not_found: return a blank instead of #N/A
04:03 The -1 trick: search from the right
04:52 Remove the errors with match_end or if_not_found
05:38 TEXTAFTER: return the name
06:19 TEXTAFTER with match_end
π¬ Related videos:
TEXTSPLIT, separate words with ease: youtu.be/xcVLWyEJHwY
The Excel functions we've been waiting for: youtu.be/VWcLM6_Q_00
β‘οΈ Join this channel to get access to perks: youtube.com/channel/UCJtUOos_MwJa_Ewii-R3cJA/join
βοΈ Get one practical Excel tip every week in our free newsletter, Between the Sheets: link.xelplus.com/yt-d-newsletter
π© Connect with us:
Instagram: instagram.com/lgharani
LinkedIn: linkedin.com/in/leilagharani
#excel #exceltips #excelformulas
Split titles and names in Excel with TEXTBEFORE and TEXTAFTER, no LEFT or FIND needed.
π₯ Download the free workbook: xelplus.com/excel-textbefore-textafter/?utm_source=yt-video&utm_medium=vid-description&utm_campaign=download-textbefore-textafter&utm_content=excel-textbefore-textafter#download
π Modern Excel Functions (500,000+ enrolled in our courses): xelplus.com/course/new-excel-functions-course/?utm_source=yt-video&utm_medium=vid-description&utm_campaign=modern-functions&utm_content=excel-textbefore-textafter
In Austria, people collect titles, so a name can come with none, one, two or a whole row of them. I split these into one column for the titles and one for the name.
I walk through every argument of TEXTBEFORE: instance number, match mode, match_end and if_not_found. Then I show the trick that makes it dynamic: an instance number of -1 searches from the right. TEXTAFTER works the same way and returns the name.
β Good to know
TEXTBEFORE and TEXTAFTER work in Microsoft 365, Excel 2024 and Excel for the web. They're not in Excel 2021 or older.
All titles, blank if there are none: =TEXTBEFORE(A2,". ",-1,,1)
The name without titles: =TEXTAFTER(A2,". ",-1,,1)
You can use if_not_found instead of match_end to handle names without a title. Both work.
β±οΈ Chapters
00:00 TEXTBEFORE and TEXTAFTER: split titles from names
00:23 The problem: names with many titles
00:55 What TEXTBEFORE and TEXTAFTER do
01:19 TEXTBEFORE: text and delimiter
01:54 Instance number
02:22 Case-sensitive or not: match_mode
02:36 What match_end does
03:32 if_not_found: return a blank instead of #N/A
04:03 The -1 trick: search from the right
04:52 Remove the errors with match_end or if_not_found
05:38 TEXTAFTER: return the name
06:19 TEXTAFTER with match_end
π¬ Related videos:
TEXTSPLIT, separate words with ease: youtu.be/xcVLWyEJHwY
The Excel functions we've been waiting for: youtu.be/VWcLM6_Q_00
β‘οΈ Join this channel to get access to perks: youtube.com/channel/UCJtUOos_MwJa_Ewii-R3cJA/join
βοΈ Get one practical Excel tip every week in our free newsletter, Between the Sheets: link.xelplus.com/yt-d-newsletter
π© Connect with us:
Instagram: instagram.com/lgharani
LinkedIn: linkedin.com/in/leilagharani
#excel #exceltips #excelformulas










