# LEN

The *LEN* function returns the total number of characters in a text string, including letters, numbers, spaces, and special characters. This function is commonly used to measure text length, validate input, and prepare data for further processing.

#### Syntax

```javascript
LEN(text)
```

#### Arguments

* `text`: The text string or reference whose length you want to calculate.

#### Return value

Returns the total number of characters in the text string.

#### Example

```javascript
LEN([Product Name])
```

Calculates the number of characters in each value of the *Product Name* field, including spaces and special characters.

#### Excel equivalent

[LENGTH](https://support.microsoft.com/en-us/office/len-function-29236f94-cedc-429d-affd-b5e33d2c67cb)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fabricplan.com/planning-sheets/formula-syntax/text-formatting-functions/len.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
