Excel Cell Character Limit and Other Text Limits Explained
By ExcelReady TeamUpdated 6 min read
The short answer
An Excel cell can hold up to 32,767 characters. Other limits are much smaller: a formula can be 8,192 characters long, a text string typed inside a formula 255, and a sheet name 31. Use =LEN(A2) to count characters and =LEFT(A2,255) to cut text down to a limit.
Key takeaways
- One cell holds at most 32,767 characters. The formula bar shows them all, even if the cell can't.
- A formula can be up to 8,192 characters, but text typed inside it in quotes is limited to 255 per string.
- COUNTIF and VLOOKUP struggle with strings longer than 255 characters.
- =LEN(A2) counts characters and =LEFT(A2,n) cuts text to n characters.
- Sheet names are limited to 31 characters, and numbers keep only 15 significant digits.
On this page+
The Excel cell character limit is 32,767 characters: that's the most text one cell can hold. Most people never reach it, but other text limits in Excel are much smaller and cause real problems: 255 characters for text inside a formula, 31 for a sheet name, 15 digits for a number. This guide lists the limits that matter, explains what happens when you hit them, and shows how to find and trim text that is too long. It's for anyone importing long descriptions, building upload files or puzzling over a strange error.
What is the Excel cell character limit?#
A single cell can store up to 32,767 characters, including spaces, punctuation and line breaks. That's roughly the length of a long report chapter.
Two details matter in practice:
- The cell may not show it all. Long text spills over empty neighbouring cells or gets cut off at the column edge. Click the cell and the formula bar shows the full text. Turn on Wrap Text (Home tab) to see more lines inside the cell.
- Formulas can't build longer text. If a formula such as CONCAT or TEXTJOIN would return more than 32,767 characters, it shows #VALUE! instead.
The limit is the same in Excel for Windows, Mac and Microsoft 365.
Other text and size limits in Excel#
These limits catch people out far more often than the 32,767 cap:
| What | Limit | What happens if you go over |
|---|---|---|
| Characters in one cell | 32,767 | Excel won't store more; formulas return #VALUE! |
| Length of a formula | 8,192 characters | Excel won't accept the formula |
| Text in quotes inside a formula | 255 characters per string | Excel shows an error and won't accept the formula |
| Arguments in one function | 255 | Error message when you press Enter |
| Nested function levels | 64 | Error message when you press Enter |
| COUNTIF/SUMIF criteria string | 255 characters | Wrong results |
| VLOOKUP lookup value | 255 characters | #VALUE! |
| Sheet name | 31 characters | Excel won't accept the name |
| Drop-down list typed into Data Validation | 255 characters | Excel won't accept the list |
| Column width | 255 characters | Width can't go higher |
| Significant digits in a number | 15 | Extra digits turn into zeros |
The 15-digit limit is why long ID numbers and card numbers lose their last digits. Store them as text instead; the guide to fixing scientific notation in Excel shows how. If you see "You've entered too many arguments for this function", see how to fix the too many arguments error.
How to count characters with LEN#
LEN returns the number of characters in a cell. Spaces count, and so do line breaks:
=LEN(A2)If A2 holds "Regional summary for all North and South branches", LEN returns 49. To check text against a limit, compare the result:
=IF(LEN(A2)>31,"Too long","OK")To count all the characters in a range, use =SUMPRODUCT(LEN(A2:A100)). The LEN function guide has more examples, and the guide to counting characters and words shows how to count words too.
How to find cells that are over a limit#
COUNTIF can count long text with wildcards. In criteria, ? matches exactly one character and * matches any number of characters. So 32 question marks followed by * matches any text of 32 characters or more. Instead of typing 32 question marks, build the pattern with REPT:
=COUNTIF(A2:A6,REPT("?",32)&"*")With these proposed sheet names, the result is 2:
| A | LEN | |
|---|---|---|
| 1 | Proposed sheet name | |
| 2 | Q1 Sales | 8 |
| 3 | Regional summary for all North and South branches | 49 |
| 4 | Budget 2025 | 11 |
| 5 | Customer complaints and returns log 2024 | 40 |
| 6 | Notes | 5 |
Wildcards only match text, so numbers are never counted this way. To highlight the long cells instead, use conditional formatting with the formula =LEN($A2)>31.
How to cut text down to a limit with LEFT#
LEFT keeps the first characters of a cell and drops the rest:
=LEFT(A3,31)This returns the first 31 characters: "Regional summary for all North " (note the trailing space). Wrap it in TRIM to remove it. To show that text was cut, add an ellipsis only when needed:
=IF(LEN(A3)>31,LEFT(A3,28)&"...",A3)That keeps the result at exactly 31 characters. To cut at the last whole word instead of mid-word, see how to truncate text in Excel. The LEFT function guide covers the syntax.
Common problems caused by text limits#
- Cell shows #### instead of text. A cell formatted as Text that holds more than 255 characters can display ####. Change the format to General; the text is still there.
- COUNTIF gives the wrong count on long text. Criteria longer than 255 characters don't match properly. Compare with
=instead, which has no such limit:=SUMPRODUCT(--(A2:A100=E1))counts the cells that equal the long text in E1. The guide to COUNTIF not working covers other causes. - A long formula string is rejected. Split text over 255 characters into parts joined with
&, or keep it in a cell and refer to the cell. - Imported text looks cut off. Check the source file. Excel itself keeps up to 32,767 characters, but other systems often export shorter fields.
- Uploads fail on another system. Many systems have their own field limits, such as 40 or 255 characters. Check the lengths with LEN before you upload.
Practise it#
Working with text limits comes down to counting characters, cutting text and matching patterns. Practise LEFT, RIGHT, MID and LEN in a live spreadsheet, then practise wildcards and cell-based criteria to count cells by pattern. Each lesson checks your formula instantly. Then try the exercise on this page to count the sheet names that are too long.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Sheet names can be at most 31 characters. In C2, count how many proposed names in A2:A6 are too long, using COUNTIF with a wildcard pattern of 32 question marks followed by *. Build the pattern with REPT("?",32)&"*".
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Proposed sheet name | |||
| 2 | Too long | |||
| 3 | Regional summary for all North and South branches | |||
| 4 | Budget 2025 | |||
| 5 | Customer complaints and returns log 2024 | |||
| 6 | Notes | |||
| 7 | ||||
| 8 | ||||
| 9 |
Tip: Each ? matches exactly one character and * matches any number after it, so 32 question marks plus * matches text of 32 characters or more.
Practise this in a lesson
Frequently asked questions
What is the maximum number of characters in an Excel cell?
32,767 characters. That is the total a cell can store. The formula bar shows all of it, though the cell itself may not display every character.
How do I count the characters in a cell?
Use =LEN(A2). It counts every character, including spaces and punctuation. To count across a range, use =SUMPRODUCT(LEN(A2:A100)).
Why does my cell show #### instead of long text?
A cell formatted as Text that holds more than 255 characters can display ####. Change the format to General. The text itself is not lost.
What is the character limit for an Excel formula?
A formula can be up to 8,192 characters long. Text typed inside the formula in double quotes is limited to 255 characters per string, so join longer text with & or keep it in a cell.
How long can an Excel sheet name be?
31 characters. Sheet names also cannot contain the characters \ / ? * : [ ] and cannot be blank.