Pattern matching with regular expressions
Use a pattern to check text, pull out the part you want and swap parts of it, so one formula cleans up messy entries.
In this lesson
- A pattern describes the shape of text, so one formula can handle text that changes from row to row.
- A pattern matches anywhere in the text.
- Patterns care about capitals. To ignore them, give REGEXTEST a third argument of 1.
Try a free lesson first
Why your formula broke when you copied it
Lock a cell with $ so a formula keeps working when you copy it down.
Beginner · 7 min · Free, with no sign-up
Do the free lesson on your computer.
Send yourself the link and open it on a laptop or desktop.
On your computer, go tolearnford.com/go/GX5R
This lesson is in the full Excel course
US$149 once
Tax included. New lessons are added as they're written.
Get the full course, US$14930-day money-back guarantee if you've opened fewer than 10 paid lessons.
- All 217 Excel lessons open today, and every new one as it's written.
- The Roadmap, Skills and all eight paths.
- A cheat sheet for every lesson you finish.
Where it sits in Text
The steps
12 steps: 4 explanations, 7 Do this, 1 question, then Your turn.
Try a free lesson first
Why your formula broke when you copied it
Lock a cell with $ so a formula keeps working when you copy it down.
Beginner · 7 min · Free, with no sign-up
Do the free lesson on your computer.
Send yourself the link and open it on a laptop or desktop.
On your computer, go tolearnford.com/go/GX5R