1. Home
  2. Functions
  3. Text
  4. LEFTB
TextCompatibility

LEFTB function

Same as LEFT, counting bytes; without a double byte language set as default each character counts as one byte.

Syntax

=LEFTB(text, [num_chars])

Arguments

ArgumentRequiredDescription
textRequiredThe text
num_charsOptionalHow many characters to take (1 when left out)

How to use LEFTB

LEFTB is kept so older workbooks keep working. It calculates the same way as LEFT, which is the name to use in new formulas.

LEFTB takes 1 required argument and 1 optional argument. Type =LEFTB( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=LEFT("Sale Price", 4)Result "Sale"
=LEFT("Sweden")Result "S"

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.