Excel Number of Characters in a Cell: LEN Formula, Range Totals, and Limits

If you want the Excel number of characters in a cell, the fastest answer is the LEN function. In one formula, you can see how much text is in a cell, check whether an entry is too long, and build simple character-count workflows for content, data cleaning, or QA. ([Microsoft Support][1])

Disclosure: This page contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.

Quick answer

Use =LEN(A2) to count the characters in cell A2. LEN returns the number of characters in a text string, and in Excel that count includes letters, numbers, punctuation, and spaces. ([Microsoft Support][1])

If you need more than the one-cell answer, here are the formulas most people actually need in practice. They cover the main search intent behind this topic: a single-cell count, totals across cells, counts without spaces, counts of a specific character, and rules that stop people from typing more than a set number of characters. ([Microsoft Support][2])

TaskFormula or actionWhat it does
Count characters in one cell=LEN(A2)Returns the total characters in A2, including spaces.
Total characters in a range=SUM(LEN(A2:A6))Adds the character count for each cell in the range.
Exclude spaces=LEN(SUBSTITUTE(A2,"

Shorten over-limit text with QuillBot

Once Excel shows which cells are too long, rewrite them faster with paraphrasing, grammar, and summarizing help.

Try QuillBot

How to count characters in one Excel cell

The standard formula is =LEN(A2). Enter it in another cell, press Enter, and Excel returns the character count for A2. Microsoft notes that LEN counts spaces too, including spaces after the last visible character, so copied text can look shorter than the result suggests. ([Microsoft Support][1])

  1. Select the result cell, for example B2.
  2. Type =LEN(A2).
  3. Press Enter.
  4. Drag the fill handle down if you want the count for the rest of the column. ([Microsoft Support][2])

This works well for checking ad copy, product titles, imported records, or any workflow where text has to stay under a cap. When the result looks wrong, the cause is often hidden spaces, punctuation, or line breaks that LEN is correctly counting. ([Microsoft Support][2])

How to count characters across multiple cells or a range

If you want a total for several cells, Microsoft shows LEN combined with SUM. For separate cells, that can look like =SUM(LEN(A2),LEN(B2),LEN(C2)). For a continuous range, Microsoft's array formula example uses =SUM(LEN(A2:A6)) to add every character count together. ([Microsoft Support][2])

This is useful when a paragraph is split across cells, when you import CSV text into multiple rows, or when you want a batch total before exporting content somewhere else. In modern Excel, range formulas are easier to work with than they used to be, but the underlying idea stays the same: LEN measures each cell and SUM adds the results. ([Microsoft Support][4])

How to count characters in Excel without spaces

If you need the count without spaces, remove the spaces first and then count the remaining characters: =LEN(SUBSTITUTE(A2,"

Clean up copy after you count it

Use QuillBot

Mistakes to avoid

  • Assuming LEN ignores spaces. It does not. LEN counts spaces, including trailing spaces. ([Microsoft Support][2])
  • Forgetting Excel's hard limit. A cell can contain up to 32,767 characters, so very large imports can break even when formulas are correct. ([Microsoft Support][3])
  • Using a case-sensitive character formula when you need both cases. SUBSTITUTE is case-sensitive unless you normalize the text first with LOWER or UPPER. ([Exceljet][6])
  • Using counting instead of validation. If users must stay under a limit, a Text Length rule is usually safer than a helper column alone. ([Microsoft Support][8])

FAQ

What formula counts the number of characters in a cell?

Use =LEN(A2). It returns the number of characters in the text string in A2, including spaces. ([Microsoft Support][1])

How do I count characters in a whole range?

Microsoft's array formula example uses =SUM(LEN(A2:A6)) to total the characters in a range. ([Microsoft Support][4])

How do I count characters but ignore spaces?

Use =LEN(SUBSTITUTE(A2,"

Measure first, rewrite second

Use LEN to spot the problem, then use QuillBot when you need a shorter draft that keeps the meaning.

Try QuillBot