0 of 62
Text·Lesson 42 of 62ProSheets only

How to use REGEXMATCH in Google Sheets

Test for a pattern

How REGEXMATCH works

REGEXMATCH returns TRUE if text contains a pattern. \d means any digit, and {3} means three of them. Sheets only.

REGEXMATCH(text, pattern)
Example on this data
=REGEXMATCH(B2,"acme")→TRUE

TRUE because the email contains "acme".

What you’ll do

You’ll check whether a note contains a phone number. Testing for a pattern lets you flag rows that need attention.

Try it

Type =REGEXMATCH(B2,"acme") into G2 and press Enter. Watch what the sheet does.

The result will appear in G2.

G2
ABCDEFG
1Full nameEmailSKUNote
2 maria lopez maria.lopez@acme.comWID-2041-BLUCall back 555-0142
3james chenjchen@northwind.ioGAD-1180-REDSent invoice
4Priya Shahpriya@shahdesign.coWID-3307-GRNCall back 555-0199
5tom o'neiltom.oneil@acme.comBOX-0042-BLULeft voicemail
6Lena Park lena.park@globex.comGAD-2215-BLKCall back 555-0107
7sam reedsreed@northwind.ioWID-0918-REDMeeting Tue
Ctrl+/ shows the shortcuts