Hide errors in excel

Hide error values and error indicators in cells

Excel for Microsoft 365 Excel 2021 Excel 2019 Excel 2016 Excel 2013 Excel 2010 Excel 2007 More…Less

Let’s say that your spreadsheet formulas have errors that you anticipate and don’t need to correct, but you want to improve the display of your results. There are several ways to hide error values and error indicators in cells.

There are many reasons why formulas can return errors. For example, division by 0 is not allowed, and if you enter the formula =1/0, Excel returns #DIV/0. Error values include #DIV/0!, #N/A, #NAME?, #NULL!, #NUM!, #REF!, and #VALUE!.

Convert an error to zero and use a format to hide the value

You can hide error values by converting them to a number such as 0, and then applying a conditional format that hides the value.

Create an example error

  1. Open a blank workbook, or create a new worksheet.

  2. Enter 3 in cell B1, enter 0 in cell C1, and in cell A1, enter the formula =B1/C1.
    The #DIV/0! error appears in cell A1.

  3. Select A1, and press F2 to edit the formula.

  4. After the equal sign (=), type IFERROR followed by an opening parenthesis.
    IFERROR(

  5. Move the cursor to the end of the formula.

  6. Type ,0) – that is, a comma followed by a zero and a closing parenthesis.
    The formula =B1/C1 becomes =IFERROR(B1/C1,0).

  7. Press Enter to complete the formula.
    The contents of the cell should now display 0 instead of the #DIV! error.

Apply the conditional format

  1. Select the cell that contains the error, and on the Home tab, click Conditional Formatting.

  2. Click New Rule.

  3. In the New Formatting Rule dialog box, click Format only cells that contain.

  4. Under Format only cells with, make sure Cell Value appears in the first list box, equal to appears in the second list box, and then type 0 in the text box to the right.

  5. Click the Format button.

  6. Click the Number tab and then, under Category, click Custom.

  7. In the Type box, enter ;;; (three semicolons), and then click OK. Click OK again.
    The 0 in the cell disappears. This happens because the ;;; custom format causes any numbers in a cell to not be displayed. However, the actual value (0) remains in the cell.

Use the following procedure to format cells that contain errors so that the text in those cells is displayed in a white font. This makes the error text in these cells virtually invisible.

  1. Select the range of cells that contain the error value.

  2. On the Home tab, in the Styles group, click the arrow next to Conditional Formatting and then click Manage Rules.
    The Conditional Formatting Rules Manager dialog box appears.

  3. Click New Rule.
    The New Formatting Rule dialog box appears.

  4. Under Select a Rule Type, click Format only cells that contain.

  5. Under Edit the Rule Description, in the Format only cells with list, select Errors.

  6. Click Format, and then click the Font tab.

  7. Click the arrow to open the Color list, and under Theme Colors, select the white color.

There may be times when you do not want error vales to appear in cells, and would prefer that a text string such as “#N/A,” a dash, or the string “NA” appears instead. To do this, you can use the IFERROR and NA functions, as the following example shows.

Example

Function details

IFERROR     Use this function to determine if a cell contains an error or if the results of a formula will return an error.

NA    Use this function to return the string #N/A in a cell. The syntax is =NA().

  1. Click the PivotTable report.
    The PivotTable Tools appear.

  2. Excel 2016 and Excel 2013: On the Analyze tab, in the PivotTable group, click the arrow next to Options, and then click Options.

    Excel 2010 and Excel 2007: On the Options tab, in the PivotTable group, click the arrow next to Options, and then click Options.

  3. Click the Layout & Format tab, and then do one or more of the following:

    • Change error display     Select the For error values show check box under Format. In the box, type the value that you want to display instead of errors. To display errors as blank cells, delete any characters in the box.

    • Change empty cell display     Select the For empty cells show check box. In the box, type the value that you want to display in empty cells. To display blank cells, delete any characters in the box. To display zeros, clear the check box.

If a cell contains a formula that results in an error, a triangle (an error indicator) appears in the top-left corner of the cell. You can prevent these indicators from being displayed by using the following procedure.

Cell with a formula error

Cell with a formula problem

  1. In Excel 2016, Excel 2013, and Excel 2010: Click File > Options >Formulas.

    In Excel 2007: Click the Microsoft Office Button Office button image> Excel Options > Formulas.

  2. Under Error Checking, clear the Enable background error checking check box.

Need more help?

At the time of using Excel formulas have you ever encountered error messages like #VALUE! or #DIV/0!? Do you know you can hide errors in Excel worksheet?

Well, the occurrence of such kinds of formula errors is a clear indication that you need to re-check the error source. Whereas in most cases such type of formula error simply shows that the data used by the formulas is not present.

Are you also the one who is looking for some easy tricks to hide error values in Excel? If you don’t know how Excel hide errors then this article is going to be very interesting and informative for you.

Following are some easy tricks to hide errors in Excel.

 1# Hide Error Values In A PivotTable Report

2# Hide Error Indicators In Cells

3#Hide Error Values By Turning The Text White

4# Hide Errors With The IFERROR Function

5# Hide All Error Values In Excel With Conditional Formatting

Trick 1# Hide Error Values In A PivotTable Report

  1. Make a tap over the PivotTable report it will start showing PivotTable Tools.
  2. Excel 2016/2013: Go to the Analyze tab and then to the PivotTable Now hit the arrow sign present next to the Options, after that choose the Options button.

Excel 2010/2007: From the Options tab>PivotTable group. Hit the arrow sign present next to Options and after that choose the Options.

Refreshing A Pivot Messes Up Column Widths 2

  1. Just hit the Layout & Format tab and try any of the following options:

Hide Error Values In A PivotTable Report

  • Change Error Display: From the Format tab choose the “For error values show”. In the appearing box, just assign the value which you want to show in place of errors.

In order to show errors like blank cells, just clear all the characters present in the box.

  • Change Empty Cell Display:

From the Format tab choose the “For empty cells show” option. In the appearing box, just assign the value which you want to show in place of errors.

In order to show errors like blank cells, just clear all the characters present in the box. Whereas, to display zeros, just leave the check box empty.

Trick 2# Hide Error Indicators In Cells

If your cell is having a formula which is showing error then you will see a triangle single which is an error indicator. It appears in the cell’s top-left corner and one can easily stop these indicators from appearing by trying the following steps:

  • Select the formula cell that is having the problem
  1. In Excel 2016/ 2013/ 2010: Hit the FileOptions >Formulas.

In Excel 2007: Hit the Microsoft Office Button  > Excel Options > Formulas.

  1. In the opened Error Checking dialog box, just clear the check box of Enable background error checking.

Unprotected Formula Error In Excel 2

Trick 3# Hide Error Values By Turning The Text White

By applying the white color to your text you can easily hide errors in Excel. This will make your text color completely invisible.

  • Choose the cells range that has the error value.
  • Go to the Home tab and in the Styles group, tap to the arrow sign present next to the Conditional Formatting.

Hide Error Values By Turning The Text White 1

  • After that hit the Manage Rules option. This will open the dialog box of Conditional Formatting Rules Manager.

Hide Error Values By Turning The Text White 2

  • Tap to the New Rule. After this, you will see a dialog box of New Formatting Rule will get open on your screen.
  • From Select a Rule Type section hit the Format only cells that contain.
  • Now from the Format only cells with section go to the Edit the Rule Description option and hit the Errors.
  • Go to the Format tab, and then make a tap over the Font.
  • For opening up, the Color list hit the arrow sign and then from the Theme Colors choose the white color.

Hide Error Values By Turning The Text White 3

Trick 4# Hide Errors With The IFERROR Function

The easiest trick to hide error values in the Excel workbook is by using the IFERROR function. So by making use of the IFERROR function one can very easily replace the error which is appearing with another value or also with the alternative formula.

In the given example, the VLOOKUP function is showing the #N/A error value.

Well, the error has occurred because there is no Office detail assigned for searching. Not only this, it will start causing issues with the total calculation.

The IFERROR function efficiently handles the error value such as, #NAME!, #DIV/0!, #REF! Etc. this needs a value for checking up the error and if the error is encountered what task needs to perform.

In the above-given example, the VLOOKUP function is used for checking up the values, and instead of error “0” will be displayed.

Trick 5#  Hide All Error Values In Excel With Conditional Formatting

Excel Conditional Formatting function can also help you in the task of hiding error values. Follow the below-given steps:

1. Choose the data range up to which you are willing to hide the formula errors.

Follow this path: Home > Conditional Formatting > New Rule.

Hide All Error Values with conditional formatting ----1

3. Now from the opened dialog box of New Formatting Rule you have to select ”Use a formula to determine which cells to format” option which is present within the “Select a Rule Type”.

After that enter the formula: =ISERROR(A1) within the text box of “Format values where this formula is true”. (A1 is 1st cell that is present within the selected range which you can modify as per your need)

Hide All Error Values with conditional formatting 2

4. Hit the Format button this will open the Format Cells dialog box. After that select a white color for cell font from the Font.

Tips: Try to keep the font and background color the same. Suppose you have selected a red color for your background then choose red color also for the font.

Hide All Error Values with conditional formatting 3

5. To close the opened dialog box hit the OK You will see that entire error values will goes hidden at once.

Hide All Error Values with conditional formatting 5

Hide All Error Values with conditional formatting 6

Best Software For Recover Missing Excel Workbook Data

If your Excel workbook data goes corrupted, missing, or deleted then you can make use of the MS Excel Repair Tool. This is the best tool to repair all sorts of issues, corruption, errors in Excel workbooks. This tool allows to easily restore all corrupt Excel file including the charts, worksheet properties cell comments, and other important data.

* Free version of the product only previews recoverable data.

This is a unique tool to repair multiple Excel files at one repair cycle and recovers the entire data in a preferred location. It is easy to use and compatible with both Windows as well as Mac operating systems. This software supports the entire Excel version.

Wrap Up:

Now that you know how to hide error in Excel then do try this in your worksheet.

I Hope this article seems informative to you. But if have any more tricks to share regarding this Excel hide errors techniques then feel free to share it with us on our  Facebook and Twitter page.

Good Luck..!

Priyanka is an entrepreneur & content marketing expert. She writes tech blogs and has expertise in MS Office, Excel, and other tech subjects. Her distinctive art of presenting tech information in the easy-to-understand language is very impressive. When not writing, she loves unplanned travels.

While working with formulas in spreadsheets, we might get error values. These error values are often shown in the cells as error indicators. Sometimes, they are helpful in resolving errors but other times when errors need not be corrected, these error values just make the spreadsheet look cluttered. In such a situation, it is better to hide these error indicators to not only make the spreadsheet look clean but also to prevent these errors from stopping other formulas to work correctly. Let us discuss the different ways in which we can do that but first let us look at the problem statement with an example. 

Hiding Error Values and Indicators in MS Excel

Open a new excel sheet and follow the steps given below.

Step 1: Go to the Math and Trig section on the formulas tab and click on the quotient option from the drop-down menu. You must see a pop-up like this:

Select the Quotient formula from Math and trig Option.

Select the Quotient formula 

Step 2: In this pop-up, enter 4 in the numerator and 0 in the denominator. 

Enter values in numerator and denominator.

Enter values in the pop-up

Step 3: Click ok. You will get an error like this: 

Get a DIV error.

The div error 

You can see how this error is indicated with an exclamatory mark since division by 0 is not defined. Some other error values can be #NAME?, #NULL!, and #REF!, etc. 

Before we discuss the various ways in which we can hide these error values, let us first see how to deal with error indicators. 

Change the Excel settings to Hide Error Indicators

As you can see in the above example, whenever a cell contains an error, a triangle appears in the top-left corner. This is nothing but an error indicator. Follow the steps given below to hide these error indicators:

Step 1: Go to file tab and select options. 

Go to file and select option.

Step 1

Step 2: A dialog box will appear. In this box, go to the formulas section and deselect the enable background checking box under the error checking section. 

Go to the formulas section and deselect the enable background checking box.

Step 2

Step 3: Click ok

This was to hide the error indicators, now onto error values. 

Use the IFERROR function to Convert the Error to Zero

Let us first enter =DIV(6/3) in the cell A1 of an excel spreadsheet. 

Enter =DIV(6/3) in the cell A1.

Create an error 

Then, click on enter and you will see an error like this:

Get a Name error.

#NAME error 

To hide this error, follow the steps given below:

Step 1: Select cell A1 and click the F2 button. This is let you edit the formula. 

Step 2: Now, to this formula, add the following function along with a 0 at the end as shown below.

Write the IFERROR function in cell A1.

IFERROR function 

Step 3: Once you click enter, you will see a 0 in place of the #NAME? error. 

If you wish, you can hide this 0 as well by using conditional formatting. 

Hide the Zero with the help of the Conditional Format

Follow the below steps in continuation to hide the 0 present in cell A1.

Step 1:  Select cell A1 and click on the conditional formatting option present under the home tab. 

Select the cell and click on the conditional formatting

Conditional formatting option on the home tab 

Step 2: From the list, select the New Rule option. You will see a dialog box like this:

New Formatting Rule dialog box appear.

New Rule Dialog box 

Step 3: Inside this dialog box, select Format only cells that contain option from the rule type, and under the edit rule description section, the first cell should contain Cell value, the second cell should contain equal to and enter 0 in the last cell. 

Select a Rule type and Edit the rule description.

New Formatting rule 

Step 4: Click the format button. You will see a dialog box with the name Format Cells appears. In this dialog box, click on the number tab, and select custom from the category section. Also, under the type section, enter three semicolons like this ;;; as shown below:

In the format cell Select custom then in type write ;;;.

Format Cells 

Step 5: Now, click ok. Click ok again. You can see that the 0 in cell A1 disappears after this. 

We can also use the conditional formatting option to turn the text white so that the erroneous text is not visible. 

Use Conditional format to turn text white and hide error values

To turn the text white using a conditional format, follow the below steps:

Note that we are using the same =DIV(6/3) error as above to explain this example. 

Step 1: Select the cell or the range of cells containing error and click on the conditional formatting option present under the home tab.

Select the cell and click on the conditional formatting

Conditional formatting 

Step 2: From the list, select the New Rule option. You will see a dialog box like this:

New Formatting Rule dialog box appear.

New formatting rule 

Step 3: Inside this dialog box, select Format only cells that contain option from the rule type, and in the edit rule description section, select errors from the first dropdown. 

Select a Rule type and Edit the rule description.

New formatting rule 

Step 4: Click on format. A new dialog box will appear. Go to the font section in this dialog box. 

Click on Format and go to the font,

Font 

Step 5: On the font tab, choose a white color from the color drop-down.

choose white color from the color drop down.

Color drop down

 Step 6: Click ok. Click ok again. 

Replace the Error with NA or a dash 

We can use the IFERROR and NA functions to replace an error with the string NA, #N/A, or a dash(-). 

The IFERROR function 

The IFERROR function of excel is used to check if there is an error in a cell or a formula. If the error is found, the IFERROR function returns the value you specify. Otherwise, it simply returns the result of the formula. 

Syntax

IFERROR(formula, replacement_value)

The function takes two arguments. 

1. formula – It is the formula that has to be evaluated for errors. 

2. replacement_value – It is the value that is returned when the formula evaluates to an error. The error can be #N/A, #REF!, #NULL!, #NAME?, #DIV/0! and #VALUE!.

Use the IFERROR function to replace the error with a dash or the string NA

Let us try this out on the first example error that we saw above. 

Step 1: Double-click in cell A1 to edit the formula. Edit the formula as follows:

Double-click in the cell for edit the formula.

Edit the formula 

Step 2: Press enter. You will see that the error is replaced by the string NA. 

Error is replaced by the string NA

NA appears 

If you want to display a dash instead of the string NA, then change the formula as follows:

=IFERROR(QUOTIENT(4,0), “-“)

The NA functions 

This function simply returns #N/A. This is an error value that means ‘no value is available’. This helps in marking empty cells. 

Syntax

NA()

This function has no arguments. 

Use the NA function along with the IFERROR function to replace the error with #N/A

Just like we replaced an error value with a string or dash with the help of the IFERROR function, we can replace it with the value #N/A with the help of these two formulae:

=IFERROR(QUOTIENT(4,0), NA())

This is done below:

Step 1: Double-click in the cell A1 to edit the formula. Edit the formula as follows:

Double-click in the cell for edit the formula.

The formula

Step 2: Press Enter, and then you get the result.

Error is replaced by the string #N/A

The result 

С помощью условного форматирования можно скрывать нежелательные значения. Например, перед выводом документа на печать. Наиболее часто такими значениями являются ошибки или нулевые. Тем-более, эти значения далеко не всегда являются результатом ошибочных вычислений.

Как скрыть ошибки в Excel

Чтобы продемонстрировать как автоматически скрыть нули и ошибки в Excel, для наглядности возьмем таблицу в качестве примера, в котором необходимо скрыть нежелательные значения в столбце D.

Чтобы скрыть ОШИБКУ в ячейке:

Продажи в днях.

  1. Выделите диапазон ячеек D2:D8, а потом используйте инструмент: «ГЛАВНАЯ»-«Условное форматирование»-«Создать правило».
  2. Создать правило.

  3. В разделе данного окна «Выберите тип правила:» воспользуйтесь опцией «Форматировать только ячейки, которые содержат:».
  4. тип правила.

  5. В разделе «Измените описание правила:» из левого выпадающего списка выберите опцию «Ошибки».
  6. Нажимаем на кнопку «Формат», переходим на вкладку «Шрифт» и в разделе «Цвет:» указываем белый. На всех окнах «ОК».

Цвет.

В результате ошибка скрыта хоть и ячейка не пуста, обратите внимание на строку формул.



Как скрыть нули в Excel

Пример автоматического скрытия нежелательных нулей в ячейках таблицы:

  1. Выделите диапазон ячеек D2:D8 и выберите инструмент: «ГЛАВНАЯ»-«Условное форматирование»-«Правила выделения ячеек»-«Равно».
  2. Равно.

  3. В левом поле «Форматировать ячейки, которые РАВНЫ:» вводим значение 0.
  4. Форматировать ячейки 0.

  5. В правом выпадающем списке выбираем опцию «Пользовательский формат», переходим на вкладку «Шрифт» и в разделе «Цвет:» указываем белый.

скрыта ошибка ЗНАЧ.

Документ не содержит ошибочных значений и ненужных нулей. Ошибки и нули скрыты документ готов к печати.

Общие принципы условного форматирования являются его бесспорным преимуществом. Поняв основные принципы можно приспособить решения к Вашей особенной задачи с минимальными изменениями. Эти функции в условном форматировании беспроблемно применяются для Ваших наборов данных, которые могут существенно отличаться от представленных на рисунках примеров.

Excel Logo

Your Excel formulas can occasionally produce errors that don’t need fixing. However, these errors can look untidy and, more importantly, stop other formulas or Excel features from working correctly. Fortunately, there are ways to hide these error values.

Hide Errors with the IFERROR Function

The easiest way to hide error values on your spreadsheet is with the IFERROR function. Using the IFERROR function, you can replace the error that’s shown with another value, or even an alternative formula.

In this example, a VLOOKUP function has returned the #N/A error value.

#N/A error shown from VLOOKUP

This error is due to there not being an office to look for. A logical reason, but this error is causing problems with the total calculation.

The IFERROR function can handle any error value including #REF!, #VALUE!, #DIV/0!, and more. It requires the value to check for an error and what action to perform instead of the error if found.

Requirements of the IFERROR function

In this example, the VLOOKUP function is the value to check and “0” is displayed instead of the error.

IFERROR function to display 0 instead of error

Using “0” instead of the error value ensures the other calculations and potentially other features, such as charts, all work correctly.

Error values hidden with IFERROR

Background Error Checking

If Excel suspects an error in your formula, a small green triangle appears in the top-left corner of the cell.

Green indicator of possible Excel error

Note that this indicator does not mean that there is definitely an error, but that Excel is querying the formula you’re using.

Excel automatically performs a variety of checks in the background. If your formula fails one of these checks, the green indicator appears.

When you click on the cell, an icon appears warning you of the potential error in your formula.

Smart tag for error options

Click the icon to see different options for handling the supposed error.

Options for handling the error

In this example, the indicator has appeared because the formula has omitted adjacent cells. The list provides options to include the omitted cells, ignore the error, find more information, and also change the error check options.

To remove the indicator, you need to either fix the error by clicking “Update Formula to Include Cells” or ignore it if the formula is correct.

Turn Off the Excel Error Checking

If you do not want Excel to warn you of these potential errors, you can turn them off.

Click File > Options. Next, select the “Formulas” category. Uncheck the “Enable Background Error Checking” box to disable all background error checking.

Error checking options

Alternatively, you can disable specific error checks from the “Error Checking Rules” section at the bottom of the window.

By default, all of the error checks are enabled except “Formulas Referring to Empty Cells.”

Turn off specific error checking rules

More information about each rule can be accessed by positioning the mouse over the information icon.

More information on error checks

Check and uncheck the boxes to specify which rules you would like Excel to use with the background error checking.

When formula errors do not need fixing, their error values should be hidden or replaced with a more useful value.

Excel also performs background error checking and queries mistakes it thinks you’ve made with your formulas. This is useful but specific or all error checking rules can be disabled if they interfere too much.

READ NEXT

  • › How to Hide Errors in Google Sheets
  • › How to Find Circular References in Microsoft Excel
  • › How to Find a Value’s Position With MATCH in Microsoft Excel
  • › How to Count Cells in Microsoft Excel
  • › How to Use the IS Functions in Microsoft Excel
  • › How to Fix Common Formula Errors in Microsoft Excel
  • › The Basics of Structuring Formulas in Microsoft Excel
  • › BLUETTI Slashed Hundreds off Its Best Power Stations for Easter Sale

Working in spreadsheets

An error in Excel is a sign that a calculation or formula has failed to provide a result. You can hide Excel errors in a few different ways. Here’s how.

The perfect Microsoft Excel spreadsheet doesn’t contain errors—or does it?

Excel will throw out an error message when it can’t complete a calculation. There are a number of reasons why, but it’ll be up to you to figure it out and solve it. Not every error can be solved, however.

If you don’t want to fix the problem, or you simply can’t, you can decide to ignore the Excel errors instead. You might decide to do this if the error doesn’t change the results you’re seeing, but you don’t want to see the message.

If you’re unsure how to ignore all errors in Microsoft Excel, follow the steps below.

How to Hide Error Indicators in Excel

Used a formula incorrectly? Rather than return an incorrect result, Excel will throw up an error message. For example, you might see a #DIV/0 error message if you try to divide a value by zero. You may also see other on-screen error indicators, such as warning icons next to the cell containing the error.

You can’t hide the error message without altering the formula or function you’re using but you can hide the error indicator. This will make it less obvious that the spreadsheet data is incorrect.

To quickly hide error indicators in Excel:

  1. Open your Excel spreadsheet.
  2. Select the cell (or cells) containing the error messages.
  3. Click the warning icon that appears next to the cells when selected.
  4. From the drop-down, select Ignore Error.
    Ignoring errors in Excel

The warning icon will disappear, ensuring the error appears more discreetly in your spreadsheet. If you want to hide the error itself, you’ll need to follow the steps below.

How to Use IFERROR in Excel to Hide Errors

The best way to stop error messages from appearing in Excel is to use the IFERROR function. IFERROR uses IF logic to check a formula before returning a result.

For example, if a cell returns an error, return a value. If it doesn’t return an error, return the correct result. You can use IFERROR to hide error messages and make your Excel spreadsheet error-free (visually, at least).

The structure for an IFERROR formula is =IFERROR(value,value_if_error). You’ll need to replace value with a nested function or calculation that may contain an error. Replace value_if_error with the message or value that Excel should return instead of an error message.

If you’d rather see no error message appearing, use an empty text string (eg. “”) instead.

To use IFERROR in Excel:

  1. Open your Excel spreadsheet.
  2. Select an empty cell.
  3. In the formula bar, type your IFERROR formula (eg. =IFERROR(10/0,””)
  4. Press Enter to view the result.
    IFERROR formula in Excel

IFERROR is a simple but powerful tool for hiding Excel errors. You can nest multiple functions within it, but to test it out, make sure the function you’re using is designed to return an error. If the error doesn’t appear, you’ll know it works.

How to Disable Error Reporting in Excel

If you want to disable error reporting in Excel completely, you can. This ensures that your spreadsheet remains free of errors, but you don’t need to use workarounds like IFERROR to do it.

You might decide to do this to prepare a spreadsheet for printing (even if there are errors). As your data might become incomplete or incorrect with error reporting disabled in Excel, we wouldn’t recommend disabling it for production use.

To disable error reporting in Excel:

  1. Open your Excel document.
  2. On the ribbon, press File.
    Excel file menu
  3. In File, press Options (or More > Options).
    Excel File options menu
  4. In Excel Options, press Formulas.
  5. Uncheck the Enable background error checking checkbox.
  6. Press OK to save.
    Disable error checking in Excel

Resolving Issues in Microsoft Excel

If you’ve followed the steps above, you should be able to ignore all errors in an Excel spreadsheet. While it isn’t always possible to fix a problem in Excel, you don’t need to see it. IFERROR works well, but if you want a quick fix, you can always disable error reporting entirely.

Excel is a powerful tool, but only if it’s working properly. You may need to troubleshoot further if Excel keeps crashing, but an update or restart will usually fix it.

If you have a Microsoft 365 subscription, you can also try repairing your Office installation. If the file’s at fault, try repairing your document files instead.

See all How-To Articles

This tutorial demonstrates how to ignore all errors in Excel and Google Sheets.

ignore formula error

When working in Excel, you can encounter many different types of errors, and they’re all indicated by a little green triangle in the upper left corner of a cell. This means that a cell contains an error. There are several ways to ignore errors in Excel.

Ignore Error in a Single Cell or Range

If you have an error in a single cell or in a range of cells, you can ignore them easily. Say that you have the SUM function in cell A3, which sums values from A1 and A2, but you misspelled it as SM.

ignore formula error

Therefore, cell A3 contains the #NAME? error and the green triangle, instead of the result. To ignore the error and remove the green triangle, (1) click on the yellow icon with the exclamation mark and (2) choose Ignore Error.

ignore formula error 1

As a result, this cell is no longer marked as an error, and the green triangle has disappeared.

ignore formula error 2

Note: This doesn’t mean that the error is solved, however, it still exists, but Excel is not marking the cell as an error.

Turn Off Error Checking Options

Instead of manually ignoring errors, you can disable error checking options for the whole workbook. To do this, follow the next steps.

1. In the Ribbon, (1) go to File > Options.

ignore formula error 3

2. In the Excel Options window, (1) go to the Formulas tab, (2) uncheck Enable background error checking, and (3) click OK.

ignore formula error 4

As a result, you won’t get green triangles in cells with formula errors.

Use IFERROR Function

Although previous options hide the green arrow from a cell, the error (#NAME? or similar) is still present in the cell. If you want to avoid displaying the error, you can use the IFERROR function, display a text you want, or keep the cell blank. To do this, you have to nest your formula into the IFERROR function. In cell A3, enter the formula:

=IFERROR(SM(A1:A2),"Formula Error")

ignore formula error 5

The second argument of the IFERROR function (Formula Error) will be displayed in the cell if the formula in the first argument (SM(A1:A2)) has an error. If not, the result of the formula is displayed.

In Google Sheets, if a formula contains an error, a small red triangle appears in the right upper corner of the cell. There is no option to ignore it as in Excel, but you can use the IFERROR function in the same manner.

In this lesson you can learn about errors which happen in Excel.

Errors in Excel happen very often. Sometimes they are serious, often only minor errors in formulas. Unfortunately, they can often disgust you to work and keep it for long hours.

Error messages in Excel 

There are 7 different error messages in Excel:

  • #DIV/0!
  • #NAME?
  • #N/A
  • #NULL!
  • #NUM!
  • #REF!
  • #VALUE!

Let’s see what Excel is telling by these messages and how to correct them.

#DIV/0!

Dividing by zero is not allowed. This message tells that you have entered a formula tries to divide a value by zero. The second possibility is that you used the formula refers to an empty cell. Most message #DIV/0! occurs when you create a formula to the data, which have not yet typed.

#NAME?

This error is the result of typos. Frequently occurs when poorly typed a function name or cell / range, referred to by the given function. Correction in spelling should fix the problem — otherwise it is something more serious.

#N/A

#N/A is unavailable. The error occurs most often when the VLOOKUP or HLOOKUP can not find a result. The result is unavailable, probably because of wrong choose the search value function.

#NULL!

This is the easiest to fix the error. Appeared, probably not because you typed a semicolon in our formula.

#NUM!

Excel tells us the message that the problem is the result of our formula. The problem may be the argument of the function or function result. It is possible that you used the function requires an argument, which is not typed or that argument is invalid (for example, you calculate the sum of the numbers and text). If the result of our function is too big or too small, it also appears in a #NUM!

#REF!

The error tells us that the address is invalid. Most likely, you have removed a cell that is referenced in the formula.

#VALUE!

The error indicates whistleblowing function argument. In this case, check the two cases of mistakes when creating formulas. The first mistake you make when trying to create a function argument, for example, take the square root of a negative number, or by adding the number and text. The second type of error you make when you try instead of an array function to use a regular function.

Hiding errors

I wish you had the least errors working with Excel. But sometimes you can’t avoid errors in your spreadsheet. Then you can cheat Excel. There are ways to hide errors. You can change error into something different value in cell.

For example you can use that formula:

=IF(ISERROR(A1),»»)

This formula changes the value in cell A1 from error to nothing. It could be useful when you just want to hide errors in your spreadsheet.

=IF(ISERROR(A1),0)

That formula changes the value in cell A1 from error to 0. Use it when you make some calculation e.g. commission for clerks.

ISERROR function let you change value with error in your error. Thanks to it your spreadsheet becomes more professional so it’s worth using.

Using custom number formatting

You can use custom number formatting to display a specific value, such as a dash or zero, instead of an error. To do this, right-click the cell with the error, select «Format Cells», go to the «Number» tab, and select «Custom». Enter the custom format you want to use, such as «-«.

Using custom number formatting

You can use conditional formatting to change the background color or font color of cells that contain errors. To do this, select the cells you want to format, go to the «Home» tab, select «Conditional Formatting», and choose «Highlight Cells Rules», then «Errors». Choose the formatting you want to apply to the cells with errors.

Hiding the error with a macro

If you have a lot of cells with errors, you can use a macro to automatically hide the errors. To do this, record a macro that selects the cells with errors, clears their contents, and replaces them with a specific value, such as 0.

These are some of the methods you can use to hide errors in Excel. Choose the method that works best for your data and use case.

Further reading:
Counting the number of errors in the sheet
How to Remove N/A! Errors in VLOOKUP Formula?
Chart that Ignores N/A! Errors and Empty Values 


Иногда требуется скрыть в ячейке значения ошибки: #ЗНАЧ!, #ССЫЛКА!, #ДЕЛ/0!, #ЧИСЛО!, #ИМЯ? Сделаем это несколькими способами.

Скрыть значения ошибки можно используя

пользовательский формат,

Условное форматирование

или значение

Пустой текст («»)

.

Пользовательский формат

Пользовательский формат вводим через диалоговое окно

Формат ячеек

(см.

файл примера

).

  • для вызова окна

    Формат ячеек

    нажмите

    CTRL

    +

    1

    ;
  • выберите (все форматы).
  • в поле

    Тип

    введите формат

    [Черный]Основной
  • нажмите ОК
  • цвет шрифта ячейки установите таким же как и ее фон (обычно белый)

На рисунке ниже пользовательский формат применен к ячейкам

А6

и

B6

. Как видно, на значения, которые не являются ошибкой, форматирование не повлияло.

Применение вышеуказанного формата не влияет на вычисления. В

Строке формул

, по-прежнему, будет отображаться формула, хотя в ячейке ничего не будет отображаться.

Условное форматирование

Используя

Условное форматирование

, также можно добиться такого же результата.

  • выделите интересующий диапазон;
  • в меню выберите

    );
  • в появившемся окне выберите

    Форматировать только ячейки, которые содержат

    ;
  • в выпадающем списке выберите

    Ошибки

    (см. рисунок ниже);
  • выберите пользовательский формат (белый цвет шрифта);

Теперь ошибочные значения отображаются белым шрифтом и не видны на стандартном белом фоне. Если фон поменять, то ошибки станут снова видны. Даже если просто выделить диапазон, то ошибки будут слегка видны.

Значение Пустой текст («»)

Замечательным свойством значения Пустой текст является, то что оно не отображается в ячейке (например, введите формулу

=»»

). Записав, например, в ячейке

А14

формулу

=ЕСЛИОШИБКА(1/0;»»)

получим пустую ячейку

А14

.

Like this post? Please share to your friends:
  • History of the word break
  • Highest lowest in excel
  • Hide error in excel
  • History of the word book
  • Higher word for great