
Use the ISERROR function to mark errors
In this example, the value in column B is divided by the value in
column A, and the result is displayed in column C. If the result of
this operation is invalid, an error appears in column C. Use the
ISERROR function in combination with conditional formatting to
shade each cell that contains an error.
4
To detect and shade errors:
1. In a worksheet, enter numbers in cells A2:B11, as shown in
Figure 10-24.
2. Select cells C2:C11 and type the formula =B2/A2.
3. Press <Ctrl+Enter>.
4. Select cells C2:C11.
5. On the Format menu, click Conditional Formatting.
6. Select Formula Is and type the following formula:
=ISERROR(B2/A2) ...