LENB function

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

Parts of a 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 has only 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 Center

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-organize your inbox, and more.

Search
Clear search
Close search
Main menu
11252251865756475603
true
Search Help Center
true
true
true
true
true
35
false
false