
Co-Founder at Career Principles | Microsoft MVP
In a practical new YouTube tutorial, Kenji Farré (Kenji Explains) [MVP] introduces viewers to using regex functions inside Excel as a modern alternative to older text-manipulation formulas. The video frames REGEXEXTRACT, REGEXREPLACE, and REGEXTEST as tools that simplify common data-cleaning tasks, and Kenji walks through clear, step-by-step examples. Additionally, he contrasts these functions with traditional approaches like LEFT, FIND, and SEARCH, showing where regex saves time and reduces formula complexity. As a result, the tutorial is aimed at analysts and Excel users who want more flexible ways to extract, replace, and validate text.
First, the video focuses on REGEXEXTRACT, which pulls matching text out of a string according to a pattern; Kenji demonstrates extracting emails and numbers from messy text. Then, he introduces REGEXREPLACE, which substitutes matched patterns with new text, useful for masking sensitive numbers or removing special characters. Finally, he covers REGEXTEST, a boolean check that returns whether a pattern exists, for example confirming a phone number has exactly ten digits. Together, these functions let users match patterns, transform content, and validate formats all within native Excel formulas.
Kenji walks through eight practical examples, and therefore viewers see a range of real-world uses from simple to slightly complex patterns. For instance, he extracts emails embedded in sentences, isolates numeric substrings from mixed text, and replaces unwanted punctuation, which makes the lessons immediately applicable to messy datasets. Moreover, he shows how to mask digits with X’s, which balances the need to protect sensitive data while keeping datasets analyzable. By moving from basic to advanced patterns, the video helps viewers build confidence with regex syntax and group captures.
While regex proves powerful, Kenji acknowledges tradeoffs, and viewers should weigh flexibility against readability and maintainability. Specifically, regex patterns can become terse and cryptic, so complex expressions may confuse teammates who are less familiar with the syntax; consequently, teams must document patterns and consider readability when collaborating. Additionally, performance can vary: for very large datasets, overly complex patterns may run slower than a handful of simpler string operations, so users must balance precision with speed. Therefore, choosing when to use regex requires weighing clarity, maintainability, and execution cost.
Regex shines when text formats vary widely, and standard functions need long nested formulas to achieve the same result; in those cases, it reduces formula length and centralizes logic. However, when tasks are simple and data consistently follows a strict layout, traditional functions like LEFT or FIND may remain easier to understand and debug. Kenji also emphasizes testing patterns incrementally and using readable captures, which helps reduce errors during adoption. Thus, users should apply regex selectively and pair it with clear comments or companion cells that explain intent.
To help viewers replicate his examples, Kenji provides downloadable sample files and encourages practicing on real-world datasets to internalize the syntax and edge cases. He recommends starting with simple patterns, then gradually introducing grouping and quantifiers, so users build a reliable mental model without becoming overwhelmed. Also, documenting patterns and creating small helper columns often eases debugging and knowledge transfer within teams. Ultimately, adopting REGEXEXTRACT, REGEXREPLACE, and REGEXTEST can streamline many text tasks, but success depends on clear patterns, performance awareness, and team training.
regex vs text functions, regex for Excel, regex for Google Sheets, learn regex quickly, regex replace examples, regex data cleaning, regex tutorial for beginners, regex formulas for spreadsheets