LEN

Returns the length of a string.

Sample usage

LEN(A2)

LEN('lorem ipsum')

Syntax

LEN(text)

  • text – The string for which the length will be returned.

Notes

  • LEN counts all characters, even spaces and non-printing characters. In cases where LEN returns unexpected values, make sure that there are no such characters in text.

See also

LEFT: Returns a substring from the beginning of a specified string.

RIGHT: Returns a substring from the end of a specified string.

MID: Returns a segment of a string.

Examples

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
5804578371345222570
true
Search Help Centre
false
true
true
true
true
true
35
false
false
false
false