Uploaded May 2024 | Updated December 2026, 3 hours ago
Learn how to use REGEX in Excel to extract, clean and format messy text with one formula.
π₯ Download the practice file and REGEX cheat sheet: xelplus.com/regex-in-excel/?utm_source=yt-video&utm_medium=vid-description&utm_campaign=download-regex&utm_content=regex-excel-functions#download-section
π Master the latest Excel functions in my Modern Functions course (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=regex-excel-functions
Messy text used to mean long nested formulas with MID, FIND and SUBSTITUTE. With REGEX, you describe the pattern you want and Excel does the rest.
In this video, I use REGEXEXTRACT and REGEXREPLACE on real examples. We pull out email addresses, text in brackets, dates and web addresses. Then we split combined words, remove leading zeros and special characters, and reformat numbers by inserting dashes.
At the end, I share a cheat sheet with the patterns I use most.
β Good to know:
βͺοΈ REGEX functions are available in Excel for Microsoft 365 (Windows and Mac) and Excel for the web.
βͺοΈ There's a third function, REGEXTEST, that returns TRUE or FALSE if a pattern is found. It's covered in the blog post.
βͺοΈ If REGEXEXTRACT returns all matches, it spills. Leave room below or to the right to avoid a spill error.
βͺοΈ If no match is found, you get an N/A error. Wrap the formula in IFNA to show a blank instead.
βͺοΈ Copilot and ChatGPT can help you write patterns. Always test them on your own data.
β±οΈ Chapters:
00:00 REGEX functions in Excel
02:37 Extract email addresses with REGEXEXTRACT
05:16 Return all matches and combine with TEXTJOIN
07:37 Extract text inside brackets
09:27 Extract dates with capture groups
10:56 Extract multiple dates
11:49 Extract web addresses (case-insensitive)
14:31 Split combined words
14:59 Remove leading zeros with REGEXREPLACE
16:06 Remove special characters
17:30 Insert dashes into numbers
18:34 REGEX cheat sheet
π¬ Watch next:
youtu.be/VWcLM6_Q_00
youtu.be/mCJzhCxEQlM
β‘οΈ Join this channel to get access to perks: youtube.com/channel/UCJtUOos_MwJa_Ewii-R3cJA/join
π Get one practical Excel tip each week in our newsletter: link.xelplus.com/yt-d-newsletter
π© Connect with us:
Instagram: instagram.com/lgharani
LinkedIn: linkedin.com/in/leilagharani
#excel #regex #exceltips
Learn how to use REGEX in Excel to extract, clean and format messy text with one formula.
π₯ Download the practice file and REGEX cheat sheet: xelplus.com/regex-in-excel/?utm_source=yt-video&utm_medium=vid-description&utm_campaign=download-regex&utm_content=regex-excel-functions#download-section
π Master the latest Excel functions in my Modern Functions course (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=regex-excel-functions
Messy text used to mean long nested formulas with MID, FIND and SUBSTITUTE. With REGEX, you describe the pattern you want and Excel does the rest.
In this video, I use REGEXEXTRACT and REGEXREPLACE on real examples. We pull out email addresses, text in brackets, dates and web addresses. Then we split combined words, remove leading zeros and special characters, and reformat numbers by inserting dashes.
At the end, I share a cheat sheet with the patterns I use most.
β Good to know:
βͺοΈ REGEX functions are available in Excel for Microsoft 365 (Windows and Mac) and Excel for the web.
βͺοΈ There's a third function, REGEXTEST, that returns TRUE or FALSE if a pattern is found. It's covered in the blog post.
βͺοΈ If REGEXEXTRACT returns all matches, it spills. Leave room below or to the right to avoid a spill error.
βͺοΈ If no match is found, you get an N/A error. Wrap the formula in IFNA to show a blank instead.
βͺοΈ Copilot and ChatGPT can help you write patterns. Always test them on your own data.
β±οΈ Chapters:
00:00 REGEX functions in Excel
02:37 Extract email addresses with REGEXEXTRACT
05:16 Return all matches and combine with TEXTJOIN
07:37 Extract text inside brackets
09:27 Extract dates with capture groups
10:56 Extract multiple dates
11:49 Extract web addresses (case-insensitive)
14:31 Split combined words
14:59 Remove leading zeros with REGEXREPLACE
16:06 Remove special characters
17:30 Insert dashes into numbers
18:34 REGEX cheat sheet
π¬ Watch next:
youtu.be/VWcLM6_Q_00
youtu.be/mCJzhCxEQlM
β‘οΈ Join this channel to get access to perks: youtube.com/channel/UCJtUOos_MwJa_Ewii-R3cJA/join
π Get one practical Excel tip each week in our newsletter: link.xelplus.com/yt-d-newsletter
π© Connect with us:
Instagram: instagram.com/lgharani
LinkedIn: linkedin.com/in/leilagharani
#excel #regex #exceltips










