Text
Excel 365
◉ 21 views
=REGEXTEST()
REGEXTEST Function
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for Mac
=REGEXTEST(text, pattern, [case_sensitivity])
Hover argument names in the table for details.
Output typeLogical
Popularity30 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =REGEXTEST() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
🧠 🧠 Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
text |
Text | Required | The text or the reference to a cell containing the text you want to match against. |
pattern |
Text | Required | The regular expression ("regex") that describes the pattern of text you want to match. |
case_sensitivity |
Number | Required | Determines whether the match is case-sensitive. By default, the match is case-sensitive. Enter one of the following:0: Case sensitive1: Case insensitive |
▣ Examples
▦ Data
| Cell | Value |
|---|---|
A2 |
alfalfa |
A3 |
(378) 555-4195 |
A4 |
+1(878) 555-8622 |
A5 |
alfalfa |
A6 |
(378) 555-4195 |
A7 |
+1(878) 555-8622 |
Does it contain the letter 'a'?
=REGEXTEST(A2,"a")
Does it contain any lower case letters?
=REGEXTEST(A2,"[a-z]")
Does it contain any upper case letters?
=REGEXTEST(A2,"[A-Z]")
Does it contain any vowels?
=REGEXTEST(A2,"[aeiou]")
Does it contain any number digits?
=REGEXTEST(A2,"[0-9]")
Example 6
=REGEXTEST(A2,"^\([0-9]{3}\) [0-9]{3}-[0-9]{4}$")
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!