SEARCH function
Lookup — one text value within another (not case-sensitive).
Text
Where can you use it?
Data preparation and reporting teams. Use this group to clean, split or reformat IDs, names and descriptions before using them in reports.
Scenario in the workbook
Find a prefix regardless of case. Use the last argument to start the search later in the text.
A worked example from the workbook
| Row | A |
|---|---|
| 6 | Invoice code |
| 7 | INV-042 |
| 8 | inv-125 |
| 9 | AB-0007 |
Trial 1
=SEARCH("inv",A7)Expected result1
See the inputs and instructions for all 3 examplesSyntax
SEARCH(find_text, within_text, [start_num])
Copyable formulas
English Excel · en-US
=SEARCH("inv","INV-042")Turkish Excel · tr-TR
=MBUL("inv";"INV-042")Expected result
1
Worked examples
Find a prefix regardless of case. Use the last argument to start the search later in the text.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A |
|---|---|
| 6 | Invoice code |
| 7 | INV-042 |
| 8 | inv-125 |
| 9 | AB-0007 |
| Case | Formula | Expected result |
|---|---|---|
| Trial 1 | =SEARCH("inv",A7) |
1 |
| Trial 2 | =SEARCH("INV",A8) |
1 |
| Trial 3 | =IFERROR(SEARCH("INV",A8,2),0) |
0 |