Google Sheets
LEN function in Google Sheets
Returns the length of a string.
=LEN(text)LEN syntax and parameters
One argument, one required.
- textstringRequired
The string whose length will be returned.
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 Excel
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 Google Sheets gets this done.
- ARABICComputes the value of a Roman numeral.TextExcel
- CHARConvert a number into a character according to the current Unicode table.TextExcel
- CLEANReturns the text with the non-printable ASCII characters removed.TextExcel
- CODEReturns the numeric Unicode map value of the first character in the string provided.TextExcel
- CONCATENATEAppends strings to one another.TextExcel
- DOLLARFormats a number into the locale-specific currency format.TextExcel