Excel like a finance pro.
← The libraryPractice · 2 questions →
Text function
SEARCHB
Finds one text string within another without case sensitivity, counting bytes for double-byte languages.
Rarely usedDifficulty 1250 · ProficientUsage rank #287 of 520
When to use it
SEARCH in bytes for double-byte languages: case insensitive with wildcards.
The shape of it
- Syntax
=SEARCHB(find_text, within_text, [start_num])
Worked examples
Single-byte
=SEARCHB("B","abc") → 2
Case insensitive.
Double-byte
=SEARCHB("京","東京都") → 3
Byte position on a DBCS system.
Wildcard
=SEARCHB("?c","abc") → 2
Wildcards work.
Worth knowing
- Use SEARCH unless byte positions matter.
- Pair with MIDB.
- Escape wildcards with ~.
Where it goes wrong
- #VALUE! when not found.
- Non-portable byte positions.
Related
Learn the moves here — or let Wauvel run them on your numbers.
Meet your AI CFO →One CFO-grade Excel tip a week
A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.