---
schema_version: "1"
id: 525bc093c04ce9f02b5fe9a4d51dca0cb53959da825e12a2106d7f357d721a11
title: LEN
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_len.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_len.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: dee06b1dced27bb57a369dafe73c71a28fa24ae9b23a35e4bb148632a468ac5a
description: Returns the number of characters in a specified text string.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# LEN

Returns the number of characters in a specified text string.

## Use

`LEN(text)` and replace text with the field or expression whose length you want returned.

![Formula Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Formula Example

```
LEN(PartNumber__c)
```

This formula returns the number of characters in a Product Code field.