Home > Formulas > Text > Limits

Excel Formula Text String Limits

Debra Dalgleish - Contextures

In an Excel formula, you can include text strings, inside double quote marks. However, there is a limit to the length of those text strings. See how to avoid problems, and Excel warning messages

formula text string limit warning message

Video: Formula Text String Limits

In an Excel formula, you can include text strings, inside double quote marks. However, there is a limit to the length of those text strings.

In this short video, I show the problem with long text strings in an Excel formula. Then, I show how to avoid that problem.

There are written steps and screen shotss below the video.

✅ To follow along with the video, download the Excel Text String Limit sample file.

Formula Text String Limits

When you're creating a formula in Excel, you can include text strings, inside double quote marks.

For example, the following formula contains a short text string, an ampersand,, and a reference to cell C5:

  • ="The publication year was " & C5

Character Limit

If you do include a text string in a formula, Excel has a strict limit to the length of those text strings.

  • Excel 365: Text strings inside an Excel formula are limited to 4095 characters, or fewer.
  • Older Versions: Text strings inside an Excel formula are limited to 255 characters, or fewer.

Excel Warning Message

Most people avoid text strings, or use very short ones, so they don't go over the Excel limit on text string length.

However, if you copied a paragraph of text from somewhere, and tried to paste it into a formula, you might see a warning message, like the one shown below.

  • Text values in formulas are limited to 4095 characters. To create longer text values in a formula, use the CONCATENATE function or the concatenation operator (&)

formula text string limit warning message

That message will also appear if you try to add more characters in an existing text string, and the additional text makes the string longer than the limit.

Combine Formula Text Strings

How can you avoid this text limit in Excel formulas?

To prevent Excel from showing that text values warning message, you can follow the advice from the message in the previous section:

  • To create longer text values in a formula, use the CONCATENATE function or the concatenation operator (&)

Combine Multiple Text Strings

For example, instead of adding more characters to the original text string, add new text strings in the formula.

  • In the screen shot below, the existing text string was 4095 characters.
  • If I tried to add more characters in that text string, Excel showed the warning message about the text length limit.

formula text string limit warning message

To prevent that problem,

  • I put the new text into new text strings - "text01" and "text02"
  • To combine the 3 text strings, so they look line a single text string in the cell, I joined them with the & operator (ampersand)

Here is the revised formula, with the additional text strings:

  • ="text01 " & "text02 " & "original text string...."

Important: When you combine multiple text strings in a formula, remember to keep each text string under the character limit

Formula Total Text Limit

There is another text limit for formulas, that you also need to know.

  • You can't use more than 8192 characters in a Microsoft Excel formula.

That character count includes text strings, function names and arguments, operators, and any other characters in the formula.

You can't use more than 8192 characters in a Microsoft Excel formula

If your formula exceeds that character count, you might see an Excel warning message about a character limit.

Binary Format Formula Character Limit

While testing the Excel formula character limits, I got a different warning message a couple of times. This message mentions the 8192 character limit, but suggests a way to fix the problem.

  • To avoid this limitation, save the workbook in the Excel Binary Workbook Format.

save the workbook in the Excel Binary Workbook Format

Unfortunately, I tried that suggestion, but even in the files saved in xlsb (binary) format, Excel limited the formulas to 8192 characters

If you have success with this workaround, please let me know!

Avoid Text Strings in Formulas

Here's what I do to avoid problems with text limits in formulas:

  • Put text strings into worksheet cells
  • In your formula, link to the text cells

In the screen shot below, there are long text strings in cells B4 and B5.

  • In cells A4 and A5, the LEN function calculates the number of characters in each cell
  • In cell A6, the SUM function calculates the total number of characters: 12396

save the workbook in the Excel Binary Workbook Format

To avoid text limits, I entered the following formula in cell B2:

  • =B4 & B5

In cells A2, the LEN function counts the characters in cell B2: 12396

That's much higher than the text string limit, but there's no warning message, because there are only a few characters in the actual formula..

Get the Excel File ✅

Get Monthly Excel Tips!

Don't miss my monthly Excel newsletter! You'll get quick tips, article links, and a bit of fun. Add your email, and click Sign Up.

Next, when you get my reply, click the Confirm button. I add this step to protect you from spam!

More Tutorials

Combine Text and Numbers

TEXTSPLIT Function

TEXTJOIN Function

 

 

Last updated: January 17, 2026 3:31 PM