Excel like a finance pro.
← The libraryPractice · 2 questions →
Text function
RIGHTB
Returns the rightmost bytes of a text string, for double-byte languages.
Rarely usedDifficulty 1200 · ProficientUsage rank #268 of 520
When to use it
RIGHT in bytes.
The shape of it
- Syntax
=RIGHTB(text, [num_bytes])
Worked examples
Double-byte
=RIGHTB("東京都",2) → 都
The last double-byte character.
Single-byte
=RIGHTB("abc",2) → bc
Like RIGHT for single-byte text.
Four bytes
=RIGHTB("東京都",4) → 京都
Four bytes.
Worth knowing
- Use RIGHT unless bytes matter.
- Pair with LENB.
- Odd counts split characters into a space.
Where it goes wrong
- Like RIGHT on non-DBCS systems.
- Non-portable.
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.