SEARCHB function
Lookup — one text value within another (not case-sensitive).
Text · Guided Excel example
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
Search ASCII codes by byte position without considering case.
A worked example from the workbook
| Row | A |
|---|---|
| 6 | Code |
| 7 | AbC-X |
| 8 | aB-42 |
| 9 | AB-X |
Record 1
=SEARCHB("ab",A7)Illustrative output1
See the inputs and instructions for all 3 examplesWorked examples
Search ASCII codes by byte position without considering case.
Column F provides expressions as text. Satisfy the stated requirements, then paste into an empty Excel cell and compare with column G. The result was not verified in desktop Excel here.
| Row | A |
|---|---|
| 6 | Code |
| 7 | AbC-X |
| 8 | aB-42 |
| 9 | AB-X |
| Trial | Expression | Sample output |
|---|---|---|
| Record 1 | =SEARCHB("ab",A7) |
1 |
| Record 2 | =SEARCHB("ab",A8) |
1 |
| Record 3 | =SEARCHB("ab",A9) |
1 |