ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Basics
  3. Excel Cell Character Limit and Other Text Limits Explained

Excel Cell Character Limit and Other Text Limits Explained

By ExcelReady Team·Updated November 3, 2026·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+
  1. What is the Excel cell character limit?
  2. Other text and size limits in Excel
  3. How to count characters with LEN
  4. How to find cells that are over a limit
  5. How to cut text down to a limit with LEFT
  6. Common problems caused by text limits
  7. Practise it

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:

WhatLimitWhat happens if you go over
Characters in one cell32,767Excel won't store more; formulas return #VALUE!
Length of a formula8,192 charactersExcel won't accept the formula
Text in quotes inside a formula255 characters per stringExcel shows an error and won't accept the formula
Arguments in one function255Error message when you press Enter
Nested function levels64Error message when you press Enter
COUNTIF/SUMIF criteria string255 charactersWrong results
VLOOKUP lookup value255 characters#VALUE!
Sheet name31 charactersExcel won't accept the name
Drop-down list typed into Data Validation255 charactersExcel won't accept the list
Column width255 charactersWidth can't go higher
Significant digits in a number15Extra 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:

Excel formula
=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:

Excel formula
=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:

Excel formula
=COUNTIF(A2:A6,REPT("?",32)&"*")

With these proposed sheet names, the result is 2:

ALEN
1Proposed sheet name
2Q1 Sales8
3Regional summary for all North and South branches49
4Budget 202511
5Customer complaints and returns log 202440
6Notes5

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:

Excel formula
=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:

Excel formula
=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)&"*".

fx
ABCD
1
Proposed sheet name
2
Q1 Sales
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

LessonLEFT, RIGHT, MID and LENSplit product codes and IDs into their parts by taking characters from the start, end or middle of the text.LessonWildcards and cell-based criteriaMatch partial text with * and ?, and build criteria from cells like ">"&H5 so your formulas adapt.Function guideLENCount characters with Excel's LEN: check length limits, find stray spaces and count commas with SUBSTITUTE. Examples and a live exercise.Function guideLEFTPull the first characters from a cell with Excel's LEFT: prefixes, initials and first names. Examples, pitfalls and live practice.

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.

Sources

  • LEN, LENB functions - Microsoft Support
  • LEFT, LEFTB functions - Microsoft Support
  • COUNTIF function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What is the Excel cell character limit?
  2. Other text and size limits in Excel
  3. How to count characters with LEN
  4. How to find cells that are over a limit
  5. How to cut text down to a limit with LEFT
  6. Common problems caused by text limits
  7. Practise it

Keep reading

Text· 7 min read

Count Characters and Words in a Cell in Excel

To count characters in a cell, use =LEN(A2). It counts every letter, digit, space and symbol. To count one character, subtract the length without it: =LEN(A2)-LEN(SUBSTITUTE(A2,",","")). To count words, count the spaces in the trimmed text and add 1: =LEN(TRIM(A2))-LEN(SUBSTITUTE(TRIM(A2)," ",""))+1.

Text· 7 min read

How to Truncate Text in Excel to a Set Length

To truncate text in Excel, use LEFT with the number of characters to keep: =LEFT(A2,20) keeps the first 20. To show that text was cut, add an ellipsis only when needed: =IF(LEN(A2)>20,LEFT(A2,17)&"...",A2). LEN counts the characters, LEFT keeps the start, and the result stays at 20 characters or fewer.

Errors & fixes· 5 min read

COUNTIF Not Working? Common Causes and Fixes

COUNTIF usually returns 0 or a low count because the criteria doesn't match the cells exactly. The most common causes are extra spaces in the data, numbers stored as text, missing quotes around text or operators, and a cell reference typed inside quotes. Clean the data with TRIM, write criteria like ">="&E1, and use wildcards for partial matches.

More on basics

  • Excel Cell References Explained for Beginners
  • Insert a Check Mark or Tick Symbol in Excel
  • How to Clear Formatting in Excel and Keep Your Data
  • How to Copy a Sheet in Excel (Same or Another Workbook)
  • Ctrl+Arrow in Excel: Jump to the End of Your Data
  • How to Increase or Decrease Decimal Places in Excel
All basics articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free