Suppressing Some Errors and Not Others

Written by Allen Wyatt (last updated October 3, 2026)

1

Jesus has formulas that sometimes return errors because source data hasn't been entered yet. He wonders how he can suppress only these expected errors without hiding other errors that might indicate a genuine problem with his formulas.

This question is a bit fuzzy, as it is unclear under what exact situations an error may occur. Jesus mentions source data not be entered, but it is unclear what that means. For instance, if the absence of a value in a single cell can cause an error, that is different from the absence of values in two, seven, or thirty-four cells.

Let's say, for instance, that cell B7 is used as the denominator in a formula elsewhere in your worksheet. If cell B7 is empty or contains 0, then the formula returns a #DIV/0! error. The way around this is to modify your formula so that it checks whether B7 is 0 or not, similar to this:

=IF(B7=0,"Enter value in B7",A2/B7)

This approach will work whether B7 is empty, it contains the value 0, or it contains a formula that returns a value of 0. This type of approach deals with the potential of a #DIV/0! error, but it won't affect other potential errors, like Jesus wants. Understand, however, that it may actually introduce additional errors if there are other formulas that rely on the results of this formula. That is because the IF formula can return either a text value ("Enter value in B7") or a numeric value (A2/B7). If the dependent formula expects a numeric result, then a text message can cause a cascading set of errors.

Even so, this is the general approach to use when dealing with missing source data in a worksheet: Evaluate the cells that are supposed to contain that source data and only take an action when the expected values are there. In any other instance, return a message that makes the user understand what is missing.

What if the value in B7 isn't being used as a denominator, but is instead the numerator or simply a component value in a larger formula? Well, in that case, a 0 value in B7 may be acceptable, but no value—a blank cell—is not acceptable. Nor would text be acceptable in the cell. In that case, the test would need to be different and more complex, as in the following:

=IF(OR(ISBLANK(B7),ISTEXT(B7)),"Enter value in B7",A2+B7)

Notice the use of the OR function which, in conjunction with ISBLANK and ISTEXT, determines if cell B7 is blank or contains text. If so, then the text message is returned, otherwise the addition is performed. The only time that an error would occur would be if cell B7 contained an error condition.

Note, as well, that the two situations discussed so far only evaluate what is in cell B7. In both instances, though, there are two cells that should rightfully be evaluated: A2 and B7 because both cells are used in the formula. This means that you may want your formula to evaluate what is in both of those cells before executing the formula. How you would approach that depends on exactly what you expect A2 (and B7) to contain, and then testing for it.

As you can probably imagine, the testing of input values for a formula can become quite complex. It involves figuring out what the valid input values are and then determining what should occur if those input values are missing or are outside of acceptable bounds. This has to be determined on a formula-by-formula basis and then the formula adjusted to handle those errant situations.

For this reason, if your formula uses a lot of input values or the evaluation of those input values can be complex, you may want to separate the evaluation from the final formula in some way. For instance, you might have your input values entered in cells B1:B22. Then, in cells C1:C47 you could have a series of formulas that evaluate those input values. Each formula could test for a specific acceptable or non-acceptable condition of the input values. The result of all those formulas could be ultimately distilled to a "Good" or "Bad" determination (or, perhaps 1 or 0 value) in cell C48. Every other formula in your worksheet could then be based on the result indicated in cell C48—if it is "Good" (or 1), then the formula proceeds as intended. If it is "Bad" (or 0), then nothing is returned by the formula and the user can refer to the test results in C1:C47 to figure out what the real problem is and fix it in the input values.

As you've probably figured out by now, there is no easy way to deal with input data, formulas, and errors. Every situation is different, and it takes some considered evaluation to plan how the three elements should relate to each other. Excel provides quite a few logical and error-related functions that you can use as you are constructing your evaluative formulas for your input values. How you put them together depends on you and your data.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (14009) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365.

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. ...

MORE FROM ALLEN

Adjusting Small Caps Text

If you use small caps text in a document, you know that there are several steps involved in properly formatting the text. ...

Discover More

Calculating a Future Date

Need to figure out a date a certain number of days, weeks, months, or years in the future? It's easy to do using the ...

Discover More

Quickly Formatting Multiple Documents

Need to format a bunch of documents so they all look the same? If the documents use styles, doing the formatting is ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Displaying a Hidden First Column

Hiding columns is easy, even hiding column A. How, then, do you get that left-most column displayed again? Here are a few ...

Discover More

Setting a Default Workbook Window Size and Zoom Level

In order to make working with a workbook comfortable, you often need to set both a window size and a zoom level for the ...

Discover More

Maintaining the Active Cell

Move from one worksheet to another, and Excel selects whatever cell was last used in the worksheet you are selecting. If ...

Discover More
Subscribe

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

View most recent newsletter.

Comments

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 + 4?

2026-10-04 12:02:03

Dave Bonin

I did a lot of professional Excel development before retirement.

One thing I learned early on is that nothing destroys user confidence faster than seeing cells with error values. These often occur because a formula simply does not yet have all of the arguments it needs to calculate. Either the user is still entering data or they forgot a piece of data.

Next up was formulas which returned an incorrect result because one or more of its arguments was not yet entered.

To fix this, I often added argument checking to my formulas. For example, if a formula in cell D1 needs three numeric arguments, I might write:

= IF( COUNT( A1, B1, C1 ) = 3, SUM( A1, B1, C1 ), "•" )

This formula won't return a result until all three cells A1, B1 and C1 contain a numeric values.

Note the trailing FALSE argument in the IF( ) statement. If any A1, B1 and C1 entries are missing, the result cell shows a dot. Why a dot? Well, why not? It's small, inobtrusive and it shows the cell is not empty. If the formula returned a blank "", then neither the user nor I know for sure there is anything in the cell. Perhaps I may have accidentally deleted it. Oopsie!

The dot I use is the 0149 character, entered by typing Alt-0149. It's a text character and it's not used for anything else. I could use a dash "-" instead, but some accountants like to use a dash to represent zero or "n/a".

Going a bit further, I often use custom and/or conditional formats to shade the dot font a light gray. That makes it even less obtrusive. The user and I can both see the cell is not empty if we look, but it's not jarring when a lot of dots are shown when first entering values.

Including argument checking in the formula works well when the checking is simple. When it isn't, I've gone to putting the checking into hidden columns off to the right. For example, if the user is working with columns A:J in a spreadsheet, then I might use columns to the right as follows:
Column K -- Empty, narrow and visible. Used as a visual buffer.
Column L -- A column containing a Boolean AND() formula of the columns to the right. Hidden.
Columns M:V -- Columns containing formulas with Boolean tests of each argument or combinations of arguments. Use as many columns as needed. If an argument is present and correct, its Boolean test formula returns a TRUE. Otherwise it returns a FALSE. Hidden.

Using this scheme can make complex error checking much simpler. Once all of the Boolean argument tests in a row are TRUE, then the Boolean AND() formula in Column L will also return TRUE. Now a formula in cell E7 might look like:

= IF( L7, SUM( B7, C7, D7 ), "•" )

With some experience, you'll find ways to make this all work very smoothly while also making programming and debugging much simpler.


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
Subscribe

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.