Whenever Excel is unable to perform a calculation or action correctly, the application displays an error message in the cell itself. An error message always starts with a hash sign (#).
- #NA: The formula can’t find what it’s supposed to look for.
- #VALUE!: An argument has the wrong type.
- #REF!: A formula refers to an invalid cell.
- #DIV/0!: Appears when the formula tries to divide by a cell that is either blank or has the value zero.
- #NUM!: The formula contains numeric values that aren’t valid.
- #NAME?: Usually appears when the name of a function is misspelled.
- #NULL!: Appears when you specify intersecting points that don’t actually exist.
In most cases, you respond to these errors by trying to resolve the underlying problem. But other times you might be expecting these errors and don’t want to resolve them directly. That’s where the IFERROR function comes in. It allows you to replace the displayed error value with a custom message or another value, for example.
This will keep your worksheets clearer and ensure that further calculations are not disrupted. If you’ve specified a range of cells in another formula and that range contains an error value, it’s possible that this formula will also generate an error. To avoid this situation, you can use IFERROR to enter a value so that the formula will work properly.