Please Note: This article is written for users of the following Microsoft Excel versions: 2007 and 2010. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Dealing with Long Formulas.

Dealing with Long Formulas

Written by Allen Wyatt (last updated July 25, 2019)
This tip applies to Excel 2007 and 2010


Anyone who has been using Excel for any length of time knows that some formulas can get quite long. Excel handles them—as long as they are constructed correctly—but they can be a bear for humans to understand. Even after you develop your own formulas, you may have trouble understanding them weeks or months later.

One way to make formulas a bit easier to understand is to use Alt+Enter in the middle of the formula to "format" how it appears on the screen. Consider, for instance, the following long formula:


This formula could also be written in the following manner, with Alt+Enter being pressed at the end of each line in the formula:


Now, the broken-up formula appears on five lines, even though it all appears in a single cell. The broken-up formula works just as if it were all on one line.

In addition, if you copy the complete broken-up formula from the Formula bar and paste it into a worksheet, each line in the formula is pasted into a different cell, making it easy to test each part. This is much quicker than copying and pasting parts of the original formula.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11251) applies to Microsoft Excel 2007 and 2010. You can find a version of this tip for the older menu interface of Excel here: Dealing with Long Formulas.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


Inserting the Template Name in Your Document

Templates are a powerful part of the Word experience, as they allow you to create and format documents based on patterns. ...

Discover More

Standardizing Note Reference Placement

Want to modify where an endnote or footnote reference appears in relation to the punctuation in a sentence? Here's a way ...

Discover More

Pop-up Windows in Word

Want to add a small pop-up window over a word in your document? There is no way to do this directly in Word, but you can ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Counting Occurrences of Words

If you would like to determine how many instances of a particular word appear within a range of text, there are several ...

Discover More

Keeping a Max Value in a Cell

Sometimes it is helpful to have a cell contain the maximum value that has ever occurred within changing data. This tip ...

Discover More

Address of a Cell in Which a Threshold is Exceeded

If you keep a lot of data in Excel, you may be interested in figuring out when that data surpasses a threshold. This tip ...

Discover More

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 4 + 0?

2021-07-06 10:09:02


There must be an example with the long formula

2015-04-01 11:20:53


You can also paint part of a formula, as an if, and pres F9, excel return de value of this part of de formula in the formula bar. Then press scape, and excel returns the formula, if you don´t, you get the result en the formula.

2015-04-01 10:49:13

Gary Lundblad

That is great Chuck!

Thank you!


2015-03-31 12:33:07

Dave O

This is a great tip! Simple but great. I can see that it will save time on long formulas...starting today.

2015-03-31 11:45:56

Chuck Trese

These two (numeric) formulas give identical results:
=SUM(B12:B15) +N("explanation text here")

Also, these two (text) formulas give identical results:
=B3&B4&B5&B6 &T(N("explanation text here"))

2015-03-31 11:38:26

Chuck Trese

+N("explanation text") works for formulas that return numbers.

For formulas that return text, you can use &T(N("explanation text"))

2015-03-31 11:10:30

Gary Lundblad

John, are you saying that you can add explanatory text in a formula without screwing up the formula? If so, can you include an example of a formula with added explanatory text?

Thank you!


2015-03-31 10:10:11


I have been using this method for long text entries. I have my own emailer and each paragraph of the body is in one cell. Using the Alt+Enter starts the text on a new line within the cell. Just increase the line height to accommodate the entire entry. It does not start a new line in the email, just how it looks on my screen.

2015-03-31 09:05:38

Jen T

Love this tip! I've never thought to force a line feed in a formula. Great addition by John H, too. I'm using these today.

2015-03-31 08:16:45

Surendera M. Bhanot

John H has shown a great way to to Label a long formula and it an valuable addition to the current tip. Thanks.

2015-03-31 07:30:06

John H

You can also use N("bla bla bla") eg +N("this calcs this bit") which has no effect on the formula except to add some help text

2015-03-31 07:20:59


Now this is a great tip. I have been looking for a way to make long formulas more readable and easier to troubleshoot.

2015-03-31 07:12:50


My approach to long formulas is to not use them. It's better for readability and troubleshooting to separate a long formula in shorter ones, each in one cell.

This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.