- Select the cells that contain the error value.
- On the Format menu, click Conditional Formatting.
-
In the box on the left, click Formula Is.
- In the box on the right, type =ISERROR(reference), where reference is a reference to the cell that contains the error value.
-
Click Format, and then click the Font tab.
- Click Format.
- In the Color box, select white.
Display a dash, #N/A, or NA in place of an error value
Use the IF, ISERROR, and NA functions to do this task.
- Select the cell that contain the error value.
- Wrap the following formula around the formula in the cell, where old_formula is the formula that was previously in the cell.
=IF(ISERROR(old_formula),"",old_formula)
Worksheet example
The example may be easier to understand if you copy it to a blank worksheet.
- Create a blank workbook or worksheet.
- Select the example in the Help topic. Do not select the row or column headers.
Selecting an example from Help
- Press CTRL+C.
- In the worksheet, select cell A1, and press CTRL+V.
- To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Tools menu, point to Formula Auditing, and then click Formula Auditing Mode.
|
|
Function details
Hide error values in a PivotTable report
- Click the report.
- On the PivotTable toolbar, click PivotTable, and then click Table Options.
- Do one or more of the following:
Change error display Select the For error values, show check box under Format options. In the box, type the value 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 you want to display in empty cells. To display blank cells, delete any characters in the box. To display zeros, clear the check box.
Hide error indicators in cells
If a cell contains a formula that breaks one of the rules, a triangle appears in the top-left corner of the cell. You can prevent these indicators from being displayed.
Cell with a formula problem
- On the Tools menu, click Options and then click the Error Checking tab.
- Clear the Enable background error checking check box.