Test whether a cell contains a word or character sequence, then return a flag or count matching cells. Choose SEARCH for case-insensitive checks, FIND for case-sensitive checks, and COUNTIF for wildcard counts.
In Excel, cells A2:A5 contain: Payment overdue - contact customer OVERDUE invoice escalated Payment received [blank] I want column B to return "Review" when the cell contains the word/string "overdue" anywhere, regardless of letter case, and return a blank otherwise. Give the exact formula for B2 using IF, SEARCH, and ISNUMBER, then copy it down. State the expected result for every row and explain how blank cells behave. Do not use an exact-equality test.
Test 1 of 3 — approved PASS and preserved as tested.
Cells A2:A5 contain: Status: HOLD Status: hold ShareHOLDER review HOLD - legal review I need a case-sensitive flag that returns TRUE when the exact uppercase character sequence "HOLD" occurs anywhere in the cell. Give the formula using FIND and ISNUMBER and state the expected TRUE/FALSE result for each row. Explicitly explain that this is a substring test, so "ShareHOLDER" also contains the sequence HOLD. Then show, as a separate optional note, how the requirement would need to change if I wanted the standalone word HOLD rather than any substring. Do not silently treat substring matching as whole-word matching.
Test 2 of 3 — approved PASS and preserved as tested.
Cells A2:A5 contain: Ticket * pending Ticket 42 pending Use ? placeholder No special symbol I need: 1. a COUNTIF formula that counts cells containing the word/string "pending" anywhere; 2. a separate COUNTIF formula that counts cells containing a literal asterisk character, not any sequence of characters. Give both exact formulas and their expected counts. Explain how Excel wildcards work in COUNTIF and why the tilde is required before a literal asterisk. Also state whether COUNTIF text matching is case-sensitive.
Test 3 of 3 — approved PASS and preserved as tested.
| Source condition | Risk |
|---|---|
| overdue · OVERDUE · received · blank | Exact equality misses text embedded inside longer descriptions. |
| Output | Expected result |
|---|---|
| Flag result | Review · Review · blank · blank using SEARCH |
| Source condition | Risk |
|---|---|
| HOLD · hold · ShareHOLDER | Case and substring boundaries change the meaning of a match. |
| Output | Expected result |
|---|---|
| Case-sensitive | TRUE · FALSE · TRUE using FIND |
| Source condition | Risk |
|---|---|
| pending and literal * | COUNTIF wildcard * can mean any character sequence. |
| Output | Expected result |
|---|---|
| Two counts | pending = 2 · literal asterisk = 1 using ~* |
Decide whether you need a substring or standalone word, and whether letter case matters.
Use SEARCH for case-insensitive matching and FIND when uppercase/lowercase must be exact.
Wrap SEARCH or FIND in ISNUMBER so matches return TRUE and non-matches return FALSE instead of #VALUE!.
Wrap the test in IF to return a flag, or use COUNTIF with wildcards to count matching cells.
Test blanks, mixed case, words embedded inside longer words, and literal wildcard characters before filling the formula down.