Skip to content

LEN

TextExcel 2007

Number of characters in a string.

Syntax

LEN(text)

Examples

=LEN("Namaste")

β†’ 7

=LEN(A2) - LEN(SUBSTITUTE(A2, " ", ""))

β†’ 3 β€” Counts spaces (β‰ˆ word gaps).

Related functions

More Text functions

← All 510 functions

Syntax follows Microsoft’s documentation. Examples are written to be pasted into a cell and checked. Argument separators may be ; in your locale. The AI explainer runs on a free community model β€” verify anything important.