LENB function

The LENB function returns the length of a string in bytes.

Parts of an LENB function 

LENB(string) 

Part Description
string The string to get the length in bytes 

Notes 

LENB returns the same value as LEN if the input string only has single-byte characters.

Examples

  A B C
1 Input Formula Output
2 Aeñ =LENB(A2) 3
3 Aeñ =LEN(A3) 3
4 熊本 =LENB(A4) 4
5 熊本 =LEN(A5) 2

Related functions

  • MIDB: ​The MIDB function returns a section of a string starting at a given character and up to a specified number of bytes.
  • LEFTB: The LEFTB function returns the left portion of a string up to a certain number of bytes.
  • RIGHTB: The RIGHTB function returns the right portion of a string up to a certain number of bytes.
true
Visit the Learning Centre

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organise your inbox and more.

Search
Clear search
Close search
Google apps
Main menu
2164752578752810968
true
Search Help Centre
false
true
true
true
true
true
35
false
false
false
false