REGEXEXTRACT and REGEXREPLACE in Excel (Real Examples) @LeilaGharani
REGEXEXTRACT and REGEXREPLACE in Excel (Real Examples)  @LeilaGharani
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
REGEXEXTRACT and REGEXREPLACE in Excel (Real Examples)Quick hello and letting you know about our new Python in Excel courseEasiest Way to Share Screen in Teams with Windows 11 #shortsHow to Use Copilot in Excel (Real Examples)Windows 11 Finally Fixed the Taskbar (And Added These Useful Settings)Find Your Excel Tools Quickly - New Feature #shortsGreat Power Query Tip ▢️ How to Import Entire File Content in Excel or Power BI #shortsA Cool Way to add Timestamps to Excel #excelCan AI Write DAX in Power BI? What to Watch Out ForYou Wont Believe These Crazy PIVOT TABLE Hacks!Microsoft PowerToys Tutorial: Free Tools for Windows 11Proper Shutdown: Get a clean reboot every time you shutdown your PC #shorts
Leila Gharani |

REGEXEXTRACT and REGEXREPLACE in Excel (Real Examples)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER