Wauvel

Excel like a finance pro.

← The library

Text function

LEFTB

Returns the leftmost bytes of a text string, for double-byte languages.

Rarely usedDifficulty 1200 · ProficientUsage rank #265 of 520
Practice · 2 questions →

When to use it

LEFT in bytes.

The shape of it

Syntax
=LEFTB(text, [num_bytes])

Worked examples

  • Double-byte

    =LEFTB("東京都",2)

    Two bytes is one double-byte character.

  • Single-byte

    =LEFTB("abc",2) ab

    Single-byte text behaves like LEFT.

  • Four bytes

    =LEFTB("東京都",4) 東京

    Four bytes, two characters.

Worth knowing

  • Use LEFT unless a fixed-byte layout is required.
  • An odd byte count that splits a character returns a space for the half.
  • LENB tells you the byte length.

Where it goes wrong

  • Behaves like LEFT on non-DBCS systems.
  • Splitting a double-byte character produces a space.

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.