Open In App

Hide Error Values and Indicators in Cells in Excel

Last Updated: 23 Jan, 2023

E

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

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 



E

News
Improve
Discuss
Do you want to advertise with us?Click here to know more

Key Performance Indicators in Excel Power View

article_img
Key Performance Indicators (KPIs) are used for the visual measurement of business objectives. KPI are basically used by departments like sales, accounts, and human resources so that they can compare their current sales with their target. In KPI current sales are known as base value, and target sales are known as target value. KPI gives us many symbols to represent our quantifiable measurement. In Excel, we call this visual indicator status to represent the current status of its sales. Follow the further steps to understand this topic properly by taking an example of an electronics shop where we will visualize the current sales of each product with respect to its targeted sales. Step 1: Create a sample data sheet in Excel. Step 2: Select the cell from A1 to B6. Step 3: Select the Insert tab from the ribbon, and then select Power View. Step 4: Then, go to the Power Pivot tab and then select Measures from the Calculations group. Step 5: Now, here create a New Measure. Step 6: Change the Measure name to Target Sales and change the Formula to =SUM([Current Sales]) Step 7: Click Ok to the Power View message of Data Model has changed. Step 8: Select Power Pivot tab and the
Read More

C

How to Hide Zero Values in Pivot Table in Excel?

article_img
One of Microsoft Excel's most important features is the pivot table. You might be aware of this if you have worked with it. It provides us with a thorough view and insight into the dataset. You can do a lot with it. The pivot table might include zero values. In this lesson, you will learn how to hide zero values in the pivot table using relevant examples and visuals. Hide the rows in a pivot table that have zero values. After concealing the zero-value rows, your pivot table will seem neater and the data will be suppressed. How to Hide Zero Values in Pivot Table in Excel? ImplementationLet's take a dataset as an example to understand How to Hide Zero Values in a Pivot Table in Excel. This is the dataset that we are going to use in this scenario. The Excel table has some zero values, as you can see. First, you must transform an excel table into a pivot table. You may need to hide them at times to have a clear view of the pivot table. Methods for Hiding Zero-ValuesThere are three different methods for hiding zero values in an Excel pivot table. Table of Content How to Create a Filter Field to Hide Rows with Zero ValuesHow to Hide Pivot Table Zero Values Using Excel's Format Cells Comm
Read More

How to Hide Zero Values in Excel

article_img
Microsoft Excel enables us to format, organize and calculate data in a spreadsheet. It's a great tool for preparing datasets and it makes those datasets easier for users and analysts to analyze the data. Sometimes these datasets contain zero values that are not required to be seen. Excel provides an easy way to hide those zero values without affecting the data and the datasets. Whenever we have a large dataset, many of the data values in the dataset may be zero and as per requirement, we may need to hide those zero values and leave the cells empty. Let's learn how we can Hide Zero Values In Excel. Hiding Zero Values in ExcelLet's assume we have the following dataset, showing the sales of different courses in different cities. Fig 1 - DatasetWe can see that our dataset contains zero(0) elements that we need to remove. This can be easily done by removing each 0 entry one by one for such a small dataset. But If we have a massive dataset with thousands of entries it became very difficult to remove elements manually. How to Automatically Hide Zero Values In CellsIn this method, we will use the options provided by Excel to hide zero values in the cells. This method hides the zero value w
Read More

How to Hide and Unhide Columns in Excel 2024: Easy Steps and Tips

article_img
Want to master Excel and improve your data management skills? Knowing how to hide and unhide columns in Excel can streamline your workflow, especially when dealing with large datasets. Instead of deleting columns, hiding them allows you to focus on essential information. In this 2024 article, you will learn effective methods for hiding and unhiding columns in Excel, ensuring a cleaner and more organized spreadsheet.We'll cover everything from hiding columns in Excel 2016 to using formulas to manage your spreadsheet's visibility. By the end of this article, you'll be able to easily hide and unhide columns in Excel, making your workflow smoother and more organized. Let's get started and explore the various methods and shortcuts to hide columns in Excel.How to Hide Columns in ExcelTable of ContentHow to Hide the Column in ExcelWhat is Hiding a Column in Excel How to Hide a Column Using Ribbon in ExcelHow to Hide Columns in Excel using Shortcut How to Hide Columns Using a Context Menu in ExcelHow to Hide Excel Columns by Setting the Column Width as ZeroHow to Hide Column Using VBA CodeHow to Hide Unused Column in Excel How to Hide and Show Columns using the Group FeatureHow to Hide Col
Read More

Excel: Modifying Columns, Rows, and Cells

article_img
Excel: Modifying Columns, Rows, and Cells - Quick StepsOpen MS ExcelSelect Row, Column or a CellPerform a Right-click >>Perform Actions Start ModifyingExcel is a powerful tool for organizing and managing data, and understanding how to efficiently modify rows, columns, and cells is crucial for anyone using it. Whether you're working with a small spreadsheet or a large dataset, being able to change column widths, row heights, insert new rows or columns, and merge or unmerge cells will help you navigate Excel more effectively. In this guide, we'll walk you through practical steps for modifying rows, columns, and cells, from adjusting the size of rows and columns to hiding or un-hiding them. We’ll also cover how to wrap text and merge cells, which are essential for better presentation and data organization in your spreadsheets.Disclaimer: Always save your work before making modifications to avoid accidental data loss. Table of ContentRow and Column in ExcelHow to Change Column Width in Excel (2 Methods) How to Change Row Height in Excel (2 Methods)Inserting, Deleting, Moving, and Hiding Rows and ColumnsWrapping Text and Merging CellsRow and Column in ExcelBefore going further you
Read More

How to Find the Percentage of Two Cells in Microsoft Excel?

article_img
If you want to find the percentage of two cells in Microsoft Excel, Simply select an empty cell, where you want to display the percentage of the two cells. Type in the following formula in the selected cell : =address of cell1/address of cell2 For example, I want to print out the percentage of C2 and C3, so the formulae will be: =C2/C3, in an empty cell C4. As soon as you click on the return key, You will get your percentage calculated in cell C4. However, if a decimal value is displayed in the cell. Like 0.10, Simply press the shortcut key Ctrl+Shift+% to format as a percent or convert the numeric value into the percentage style and press the Return key. The Decimal value will be converted to a percentage. BeforeAfter You can also go to the Number section under the Home tab and press the % Symbol to convert to percentage format. % symbol under the Number listbox
Read More

How to Sum Diagonal Cells in a range in Excel?

article_img
The calculation of matrices is one of the most difficult numerical computation tasks. You may need to add values diagonally in a table when performing mathematical computations. Excel allows you to sum diagonal numbers without having to add the values one by one. We'll go through how to sum cells diagonally down or diagonally up. Example: The image below shows a matrix & we want to add the elements of the diagonal. Diagonal1 is the right diagonal & Diagonal2 is the left diagonal as its top element is on the left. Conditional Formatting (On Matrix or Table) : To do conditional formatting use the following steps :Step 1: Select the Matrix/Table. Then Go to the home tab & select the conditional formatting option. Step 2: Choose New Rule. Step 3: Select: "Use a formula to determine which cells to format" & in the rule description give the format values for the formula. Here we give 1st cell name of the matrix in the formula, i.e., column(B2) - row(B2) (For diagonal) Step 4: Click on the format. Choose the color, fonts, etc, for formatting & then click on OK. Step 6: Click on Ok. You will get your cells formatted. How to Sum Diagonal Cells in a range in Excel? A ran
Read More

Excel: Formatting Cells

article_img
Excel Formatting ShortcutsIf you have closely followed the previous parts of this tutorial, you already know most of the Excel formatting shortcuts. The table below provides a summary. Shortcut FormatCtrl+Shift+~ General format Ctrl+Shift+! Number format with a thousand separators and two decimal places. Ctrl+Shift+$ Currency format with two decimal places and negative numbers displayed in parentheses Ctrl+Shift+% Percentage format with no decimal places Ctrl+Shift+^ Scientific notation format with two decimal places Ctrl+Shift+# Date format (dd-mmm-yy) Ctrl+Shift+@ Time format (hh: mm AM/PM) Excel opens with all the cells looking the same. Things can get hard to understand if you have a lot of them. Changing Excel's look is as simple as changing the font and size parameters to modify the appearance of your written work. The key points become more apparent, and the material becomes more accessible. Excel also lets you choose whether the numbers are money ($) or percentages (%). Then, it will know just what to display to them. After these easy changes, your Excel file will look better and be easier for everyone to understand. Format Cells in ExcelTable of Content How to Change the F
Read More

Average Cells Based On Multiple Criteria in Excel

article_img
An Average is a number expressing the central or typical value in a set of data, in particular the mode, median, or (most commonly) the mean, which is calculated by dividing the sum of the values in the set by their number. The basic formula for the average of n numbers x1,x2,……xn is A = (x1 + x2 ........xn)/ n Excel AVERAGE FunctionIn Excel, there is an average function for this purpose, but it can be calculated manually using SUM and COUNT functions like this = SUM(D1:D5)/COUNT(D1:D5) Where, SUM: This function is used to find the sum of values in the required range of cells. COUNT: This function is used to get the count of the required range of cells containing numeric values. Excel provides a direct function named AVERAGE to calculate the average (or mean) of the numbers in the range specified in the function's argument. In this function, a maximum of 255 arguments can be given (numbers/cell references/ ranges/ arrays or constants). Syntax:= AVERAGE(Num1, [Num2], ...) Where Num1 [Required]: Provide range, cell references, or the first number for calculating the average. Num2, ... [Optional]: Provide additional numbers or a range of cell references for calculating the average. Ex
Read More

How to Expand Cells to Fit the Text Automatically in Excel?

article_img
We all know how useful Excel is to store tabular data. We can do calculations in excel, we can store any information that is in the form of tables, and so on. But there are some common problems that we all face while using Excel. One of the problems that we encounter while entering oversized, overlength data in a cell. Whenever we enter any data that is not fitted in the cell every time we need to resize the column width and that is too frustrating. This article will show you how to make your cells automatically change their width whenever any oversized data is entered. Steps to make Rows/Columns Fit Text Automatically in Excel Initially, we have a table with column names “Name” and “Address". When we enter the data in the cells the data does not get fully fitted in the cells. Now, let's look at the steps to be followed: Step 1: Right-click on the sheet name in the bottom-left corner. Step 2: Now select “View Code”. Step 3: Select “Worksheet” from the drop-down menu as shown in the image. Step 4: You will see a console window with some code. Now, Enter the below code of the line in the console on the second line. Cells.EntireColumn.AutoFit Now close the window from th
Read More
three90RightbarBannerImg