Calc LEN function

LEN returns the number of characters in a text string.

Help CentreFunctions & Formulas

For a full list of available calculation functions, please read What calculation functions are supported.

This article describes the formula syntax and usage of the LEN function.


Description

LEN returns the number of characters in a text string.


Syntax

LEN(text)
The LEN function syntax has the following arguments:

  • text - Required. The text whose length you want to find. Spaces count as characters.

Example

FormulaDescriptionResult
=LEN({variable})Length of the variable (assuming it is "data")4
=LEN(data)Length of the string4
=LEN( data )Length of the third string, which includes eight spaces12

Errors

For a full list of formula errors, please read Formula errors.


Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.