Google Sheets IFERROR function is a common spreadsheet function to clean up formula results. It’s so simple to use and a must to know logical function. You just need to understand the usage of this formula clean up logical function in Google Sheets. So it will be handy for you in certain scenarios. Though it’s a standalone function, it always uses together with other functions.
Where to Use Google Sheets IFERROR Function
It’s common that a formula returns error value possibly due to the invalid values in the precedent cells or the cells that affect the formula.
If you are unsure about such error values, it’s a better idea to avoid error in formula output by adding IFERROR function with the formula.
How to Use Google Sheets IFERROR Function
There are two arguments in this function.
- Value: You can replace this value part with any other formula. If the other formula returns a value other than erro, IFERROR also returns that value.
- Value If Error: If the other formula returns an error, you can replace that error. You an possibly return values like 0 or message like “Invalid entry”.
Examples to the Usage of Google Sheets IFERROR Function
Here is one common scenario in Google Sheets, where you can see error in formula results.
The error occurs due to the division formula and 0 values in the precedent cells. As you know the Function DIVIDE parameter 2 cannot be zero. In this case you can use Google Sheets IFERROR formula as below.
This formula returns an empty cell instead of error message.
This formula returns the text “No Sales” in Cell K6.
If error function will be more useful when using with Array Formula in Google Sheets.