Count how many characters (including spaces) a cell contains.
Copy this formula
=LEN(A2)LEN returns the length of the text in a cell, counting letters, numbers, punctuation, and spaces. It's handy for validating IDs, tweets, or fixed-length codes.
=LEN("Hello")→5Five characters.
Count without spaces
=LEN(SUBSTITUTE(A2, " ", ""))Removes spaces before counting.
Subtract lengths: =LEN(A2)-LEN(SUBSTITUTE(A2, ",", "")) counts commas.
Need a formula for your own data?
Describe what you want in plain language and let ExcelGPT write, explain, and verify the formula — free to start, no plugin.