Excel & Google Sheets Function
REGEXMATCH (Google Sheets) function in Excel (with interactive examples)
REGEXMATCH returns TRUE if a text string matches a regular expression pattern — ideal for validating emails, domains, and SKUs in Google Sheets.
Syntax
=REGEXMATCH(text, regular_expression)Live Interactive Exercise — Try it nowNo login required
Interactive practice grid (REGEXMATCH (GOOGLE SHEETS) reference)
Try our live spreadsheet engine: total Q1 sales in cell B5 using =SUM(B2:B4).
B5fx
| A | B | |
|---|---|---|
| 1 | Month | Sales |
| 2 | Jan | $1,100.00 |
| 3 | Feb | $1,350.00 |
| 4 | Mar | $1,550.00 |
| 5 | Total | type here |
Insert:
Arguments explained
| text | Required | Cell or string to test. |
| regular_expression | Required | Regex pattern in quotes, e.g. "@sumwise\.app$". |
Common errors & fixes
#VALUE! on numbers: REGEXMATCH expects text; wrap numeric cells in TO_TEXT() or ""&A2.
Excel vs Google Sheets
Native to Google Sheets (Excel 365 added REGEXTEST as its newer equivalent).
Practise REGEXMATCH (Google Sheets) in a full 4-minute lesson
Every lesson is free to study — build real speed with instant feedback.
Free 1-Page Excel, Google Sheets & SQL Interview Cheat Sheet
The 25 formulas, keyboard shortcuts, and SQL patterns tested most in analyst interviews — emailed instantly, zero spam.