Syntax
=LEN(text)
| Argument | What it means |
|---|---|
text | The text or cell. |
Examples with results
Every result below is calculated by the practice engine on the sample data shown, not typed in by hand.
Examples that need no data
=LEN("BusyDayKit")Ten characters
Contact list pasted from an email (fictional)
| Row | A | B |
|---|---|---|
| 1 | Raw name | |
| 2 | amira HASSAN | Amira.Hassan@Example.com |
| 3 | ben CARTER | ben.carter@example.com |
| 4 | CHEN wei | CHEN.WEI@EXAMPLE.COM |
| 5 | dina ali | dina.ali@example.com |
=LEN(A2)A messy name has extra spaces: the length shows it
=LEN(TRIM(A2))The length after TRIM
Try it yourself
Change the formula or switch to other sample data.
Press Calculate to see the result.
The practice box runs in your browser with BDK’s own calculator, which covers about 60 common functions. Cell references work as in Excel (B2, B2:B9). Your formulas are not saved or sent anywhere. For anything unusual, check the result in Excel itself.
How people use LEN at work
- Administration
Check that codes have the right length.
Data: Stock levels (fictional)=IF(LEN(A2)=5,"OK","Check") - General office
Spot hidden spaces: compare LEN with LEN(TRIM()).
Data: Contact list pasted from an email (fictional)=LEN(B3)-LEN(TRIM(B3))
Common mistakes and tips
- Dates are numbers, so LEN of a date is the length of its serial number.
Works in
All versions of Excel, and Google Sheets.
Lessons that use it
Need Something Different? Let’s Talk.
Looking for different features or something built around your workflow? Share your idea with us.