REGEXEXTRACT
Pull text matching a regular-expression pattern out of a string.
Syntax
=REGEXEXTRACT(text, pattern, [return_mode], [case_sensitivity])Worked example
Extract a shipment reference from a note.
=REGEXEXTRACT("Ref: PK-921","PK-[0-9]+")Result PK-921
Microsoft documentation
Check the arguments, supported editions and behavior of this function in Microsoft’s reference.
Microsoft referenceHow To Use The REGEXEXTRACT Function In Excel
Practice REGEXEXTRACT
Extract a shipment reference from a note.
| A | B | |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 |
Show example formula
=REGEXEXTRACT(B2,B3) Lesson quiz
Answer three questions to see your level in this lesson.
