Excel like a finance pro.
← The libraryPractice · 2 questions →
Text function
LENB
Returns the number of bytes in a text string, for double-byte languages.
Rarely usedDifficulty 1200 · ProficientUsage rank #266 of 520
When to use it
The length in bytes: double-byte characters count 2 on DBCS systems.
The shape of it
- Syntax
=LENB(text)
Worked examples
Double-byte
=LENB("東京都") → 6
Three double-byte characters.
Single-byte
=LENB("abc") → 3
Single-byte text.
Detect double-byte
=LENB(A2)<>LEN(A2) → TRUE
Detects double-byte characters in a cell.
Worth knowing
- A quick test for DBCS content when validating fixed-width exports.
- LEN counts characters.
- Only meaningful with a DBCS language installed.
Where it goes wrong
- Equals LEN on non-DBCS systems.
- Not the UTF-8 byte length.
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.