Excel
LEN function in Excel
Returns the number of characters in a text string
=LEN(text)LEN syntax and parameters
One argument, one required.
- textstringRequired
The text whose length you want to find. Spaces count as characters.
LEN examples
Formulas you'll actually reuse.
The character count of a product title, for a 60-character limit check:
=LEN(A2)Result
38How many items are in a comma-separated list — count the commas, add one:
=LEN(A2) - LEN(SUBSTITUTE(A2, ",", "")) + 1Result
4
LEN in Google Sheets
Same name — your formula ports as-is.
Try LEN in the playground
Edit the example — nothing to install.
Preloaded with the LEN formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Excel gets this done.
- ARRAYTOTEXTReturns an array of text values from any specified rangeTextNo Google Sheets equivalent
- CHARReturns the character specified by the code numberTextGoogle Sheets
- CLEANRemoves all nonprintable characters from textTextGoogle Sheets
- CODEReturns a numeric code for the first character in a text stringTextGoogle Sheets
- CONCATCombines the text from multiple ranges and/or strings, but it doesn't provide the delimiter or IgnoreEmpty arguments.TextGoogle Sheets
- CONCATENATEJoins several text items into one text itemTextGoogle Sheets