
📎 This article includes 1 downloadable practice file ↓
In this article
LEN returns the number of characters, including spaces.
Syntax
=LEN(text)
| Argument | What it means |
|---|---|
text |
Text or a cell. |
Examples
Example 1
=LEN(A2)=10
TRUE if a mobile number has exactly 10 digits.
Example 2
=LEN(A2)-LEN(SUBSTITUTE(A2, ",", ""))+1
Number of items in a comma-separated list.
💡 LEN is the quickest way to spot hidden trailing spaces: two cells that look identical but have different LEN values.
Related functions
TRIM · SUBSTITUTE · LEFT
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
📎 Practice files for this article
- 📗Text-cleaning scenarios workbookExtract and clean text (GSTIN, PAN, emails, names) with PASS/FAIL checks, plus the 3 mistakes that break text formulas.⬇ XLSX · 8 KB
Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.
✨ Ask AI about this article
Stuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong