Excel's LEN function counts every character in a cell, including spaces, and returns the total as a number — typing =LEN(A1) into any empty cell will give you the exact character count for whatever is stored in A1. That single function handles the most common version of the question "how many characters are in this cell, spaces and all", and it works whether the cell holds a name, a product description, a tweet draft, or a meta description pulled in from somewhere else. LEN counts letters, digits, punctuation, symbols, and every space character the same way: each one adds exactly 1 to the total. The number you see is the literal length of the string, not an estimate, which makes LEN the right answer whenever an Excel cell has to fit a fixed budget — a tweet, a database column, a meta tag, or an SMS segment. From that single formula you can build the rest: counting characters across a whole range, excluding spaces, or counting only one specific character. The sections below walk through each variant with the exact formula to paste into Excel, then show when it pays to move the text out of the spreadsheet and into a live browser character counter that maps the count against real platform limits.

Counting Characters in a Single Excel Cell With LEN
To count every character — spaces included — in one cell, put this formula in any other empty cell:
=LEN(A1)
Replace A1 with the cell you want to measure. Excel returns the full character count of the string stored there. As a worked example, suppose cell B2 contains the literal text Hello World. Counting it character by character: H, e, l, l, o (5 letters) + 1 space + W, o, r, l, d (5 letters) = 11. Putting =LEN(B2) in any other cell returns the number 11. The same formula works on a hard-coded string: =LEN("Hello World") also returns 11. LEN is not case-aware about what it counts, but it does not strip anything — every space, leading or trailing, is included in the count.
When you are checking a cell that holds text copied from another source, watch for two things Excel does not show in the cell itself. First, leading and trailing spaces count. A cell that visually looks empty but LEN reports a positive number contains spaces. Second, line breaks inside a cell count too. A soft return (Alt+Enter in Windows, Option+Return on Mac) is one character to LEN, so a multi-line cell is longer than its visible width suggests. The cell shows the wrapped text; LEN shows the actual string length.
Counting Characters Across an Entire Range or Column
To count characters in every cell of a range, including spaces in each cell, use SUMPRODUCT with LEN:
=SUMPRODUCT(LEN(A1:A100))
SUMPRODUCT loops over each cell in the range, applies LEN to it, then adds the totals. The result is one number representing every character in every cell, spaces and all. You do not need to press Ctrl+Shift+Enter; SUMPRODUCT handles the array math on its own. To count only the cells that actually contain text, combine it with a non-empty check:
=SUMPRODUCT((A1:A100<>"")*LEN(A1:A100))
The (A1:A100<>"") condition turns blank cells into zero before LEN runs, so empty rows do not skew the total. To count only the cells that are non-empty in a single column — say column A from row 2 down to row 500 — point the range at exactly those rows: =SUMPRODUCT(LEN(A2:A500)).
For a whole column, replace the range with the column letter: =SUMPRODUCT(LEN(A:A)). Be careful with A:A on a live sheet, because it includes the header and counts blank rows as zero-length cells (which SUMPRODUCT handles cleanly). If you want the per-cell breakdown, drop LEN into a helper column next to the data: in C2 type =LEN(A2), copy it down, then sum that column with =SUM(C2:C500).
Counting Characters in Excel Without Counting Spaces
Sometimes you need the character count minus spaces — for example, to estimate how many "real" characters fit in a 160-character SMS or to size a no-space identifier. The simplest approach is to strip the spaces with SUBSTITUTE first, then take LEN of the cleaned string:
=LEN(SUBSTITUTE(A1," ",""))
SUBSTITUTE removes every space from the text, and LEN returns the length of what is left. For Hello World this returns 10, which is 11 (the LEN total) minus the 1 space character.
To count how many times one specific character appears — spaces, hyphens, periods — subtract the length of a SUBSTITUTE-cleaned copy from the full LEN:
=LEN(A1)-LEN(SUBSTITUTE(A1," ",""))
For Hello World this returns 1, the count of space characters. Swap the " " inside SUBSTITUTE to count a different character: =LEN(A1)-LEN(SUBSTITUTE(A1,"-","")) counts hyphens; =LEN(A1)-LEN(SUBSTITUTE(A1,".","")) counts periods.
SUBSTITUTE is case-sensitive. To count both upper and lowercase versions of the same letter, add two branches:
=(LEN(A1)-LEN(SUBSTITUTE(A1,"a","")))+(LEN(A1)-LEN(SUBSTITUTE(A1,"A","")))
The first bracket counts lowercase a; the second counts uppercase A; the two are added. If the cell can contain non-breaking spaces — which look identical to a regular space but are not — SUBSTITUTE will not see them. Replace the regular space with the code point: =SUBSTITUTE(A1,CHAR(160)," ") converts non-breaking spaces into regular ones, after which the standard SUBSTITUTE–LEN formulas work as expected.
Mapping Excel Text Against Real Platform Character Limits
The reason character counts matter inside Excel at all is that most of the places Excel data ends up — a tweet, an Instagram caption, an SMS, a meta tag — are capped by character, not by word. A single number decides whether the post ships intact or gets truncated. The table below lists the limits that come up most often when content is drafted in a spreadsheet.
| Platform or field | Character limit | Notes |
|---|---|---|
| X (Twitter) post | 280 | Counted in UTF-16 code units; some emoji count as 2. |
| SMS, GSM-7 alphabet | 160 per segment | Plain ASCII letters, digits, and basic punctuation. |
| SMS, Unicode (UCS-2) | 70 per segment | Triggered the moment any non-GSM character appears, including emoji. |
| Instagram caption | 2,200 | Single caption per post. |
| Google meta title | ~60 | Search snippets typically truncate beyond this. |
| Google meta description | 155–160 | Truncated with an ellipsis when the page goes longer. |
Two of these budgets catch people out. The SMS limit silently halves the moment the message includes an emoji or any character outside the GSM-7 alphabet — a single smiley face can flip a 160-character draft into a 70-character one, and a single character over the segment limit causes the carrier to split and rebill the message as two. The X limit is also tighter than it looks because emoji outside the Basic Multilingual Plane count as 2 UTF-16 code units, so a tweet that includes one of those emoji is effectively 278 "characters" long for the X counter before any other text has been written.
When a Browser Character Counter Beats a Spreadsheet Formula
LEN in Excel is the right tool while the text is still in a cell. The moment the same text has to fit several different budgets at once — a tweet, an SMS, an Instagram caption, a meta description — pasting it into a live character counter shows every limit on one screen. You can see the total characters, characters without spaces, words, lines, and the UTF-8 byte length update as you edit, plus the "characters left" (or "over by") figure for each platform so you can trim to the right number without doing the subtraction in your head. For text that needs word-level checks instead, a parallel word counter shows the same view focused on tokens rather than characters. Because both run locally in the browser, the draft never has to leave your machine, which is safe for client copy, passwords, or anything else that cannot be uploaded. The workflow that works well is to draft and check the count inside Excel with LEN while you are still iterating on the data, then paste the final cell into the browser counter once the text is heading out to a platform with a hard limit.
Two Things That Bite People Counting Characters in Excel
The first is hidden whitespace. Cells that look empty can still have a value — a single space, a tab, or a non-breaking space — and LEN will count each one. =LEN(A1) on a visually blank cell returning a positive number is the tell. Cleaning these up before counting is usually easier than interpreting the count: =TRIM(A1) strips leading, trailing, and repeated interior spaces, but it does not touch non-breaking spaces. For those, chain another SUBSTITUTE: =TRIM(SUBSTITUTE(A1,CHAR(160)," ")), then LEN the result.
The second is mixing lengths and counts. =COUNTA(A1:A100) does not give the total characters in the range — it gives the number of non-empty cells. =COUNTIF(A1:A100,"?") counts cells matching a wildcard, not the characters inside them. For the actual character total, including spaces, the formula is always LEN inside SUMPRODUCT or SUM, never COUNTA or COUNTIF. If a number comes back smaller than expected, that swap is usually the cause.
Putting It Together
For a single Excel cell, including spaces, =LEN(A1) is the complete answer. For an entire range, =SUMPRODUCT(LEN(A1:A100)) extends that to every cell in the range. For the non-space count, =LEN(SUBSTITUTE(A1," ","")) strips the spaces first; for the count of one specific character, subtract the cleaned length from the original. For the byte count and the per-platform budgets — X, SMS, Instagram, meta title, meta description — paste the finalized cell text into a live character counter so every limit is visible at the same time. With LEN doing the in-sheet math and a browser counter doing the cross-platform check, the count stops being a guess and becomes a number you can read off either tool.
If you're weighing options, Excel Column to Comma Separated List in 3 Steps covers this in detail.