|
Home > Formulas > Text > Limits Excel 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.
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:
If you do include a text string in a formula, Excel has a strict limit to the length of those text strings.
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.

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.
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:
For example, instead of adding more characters to the original text string, add new text strings in the formula.

To prevent that problem,
Here is the revised formula, with the additional text strings:
Important: When you combine multiple text strings in a formula, remember to keep each text string under the character limit
There is another text limit for formulas, that you also need to know.
That character count includes text strings, function names and arguments, operators, and any other characters in the formula.

If your formula exceeds that character count, you might see an Excel warning message about a 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.

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!
Here's what I do to avoid problems with text limits in formulas:
In the screen shot below, there are long text strings in cells B4 and B5.

To avoid text limits, I entered the following formula in cell B2:
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..
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!
Last updated: January 17, 2026 3:31 PM