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

LENB function

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

Syntax

=LENB(text)

Arguments

ArgumentRequiredDescription
textRequiredThe text whose length you want

How to use LENB

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

LENB takes 1 required argument. Type =LENB( 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.

=LEN("Phoenix, AZ")Result 11
=LEN("")Result 0
=LEN(" One ")Result 8

Every formula, right in your browser

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