How to use the IFERROR function (Excel + Google Sheets)

Discover how to use IF ERROR in Excel or in Google Sheets in 4 easy steps! No more errors on your documents or dashboards with the IF ERROR function.

What is IFERROR and what is the IFERROR formula?

The IFERROR function, or IF ERROR function, returns a custom value when a formula results in an error. If the formula contains no error, it will return the result of the formula.

The function has 2 arguments, which are both required in Excel: value and value_if_error. The IF ERROR function has 2 arguments, which are both required in Excel: value and value_if_error.
Syntax of the function: =IFERROR(value, value_if_error)

value – the argument checked for error.
value_if_error – the custom value returned when there is an error. Errors evaluated when using the IFERROR function: NULL!, N/A, REF!, VALUE!, DIV/0!, NUM! or NAME?.

How to use IFERROR in Microsoft Excel?

If you want clean reports with no ugly error values, use the IF ERROR formula for the errors mentioned above.

Using the IF ERROR function is easy if you follow these 4 steps:
• type =IFERROR( in the selected cell
• in place of value, select the cell you want to check or enter a formula
=IFERROR(value,
• in place of value_if_error, type within ” ” the custom value you wish to appear when there is an error
=IFERROR(value, value_if_error)
• press Enter

Notes

– If you use “” as the value_if_error argument or if it’s empty, nothing will be displayed when an error is detected. You may see a warning message on the left corner of the cell.
– If value is empty, the system does not consider it as an error and 0 will be displayed.
– If value is a formula, the IFERROR function will return the formula’s results if any.

Examples

Return your custom value instead of an Error message

In this example, value_if_error is “Invalid name”.

Return a blank cell instead of an Error message

Using IFERROR with a formula

In this example, the IF ERROR function is combined with VLOOKUP; value_if_error is “Not found”.

How to use IFERROR in Google Spreadsheet?

If you use Google Sheets instead of Microsoft Excel, you’ll discover it’s quite similar…
Follow the same 4 steps we shared previously for a clean document!

type =IFERROR( in the selected cell
in place of value, select the cell you want to check or enter a formula
=IFERROR(value,
in place of value_if_error, type within ” ” the custom value you wish to appear when there is an error
=IFERROR(value, value_if_error)
press Enter

Syntax of the IFERROR formula: =IFERROR(value, value_if_error)

In Google sheets (Gsheets), value_if_error is optional and blank by default. If you wish to display an empty cell instead of an Error message, simply use this syntax:
=IFERROR(value)

Note that =IFERROR(value,) will result with an empty cell too in case of errors in value.

Notes

• If you use “” as the value_if_error argument or if it’s empty, nothing will be displayed when an error is detected.
• The system will show an empty cell instead of an Error message if you forget to add ” ” around your value_if_error.
• If value is empty, the system does not consider it as an error and nothing will be displayed.
• If value is a formula, the IFERROR function will return the formula’s results if any.

Examples

Return your custom value instead of an Error message

In this example, value_if_error is “Incorrect value”.

Return a blank cell instead of an Error message – Example 1

In this example, we use =IFERROR(value).

Return a blank cell instead of an Error message – Example 2

In this example, we use =IFERROR(value,).

Return a blank cell instead of an Error message – Example 3

In this example, we use =IFERROR(value, value_if_error); value_if_error is “”.

So if you are tired of handling out reports or dashboards with error values everywhere, now, you know how to modify them!

Advertising
Analytics

Categories

AllAdvertisingFormatsPlatformsKPI'sAd News

What is O&O Advertising?

Discover one more important jargon term used in Programmatic Advertising: O&O advertising. Get familiar with O&O formats and advantages.

Read More

Best DSPs for Programmatic Advertising

Ted Jordan shares his list of best DSPs for Programmatic Advertising so you don’t have to lose time searching the internet to find the right Demand-Side Platform for your campaigns.

Read More
What is Programmatic Advertising?

What is Programmatic Advertising?

Understand what programmatic advertising is and how it works to increase your ROI and become a programmatic specialist.

Read More
Programmatic Advertising: What is a SSP?

Supply-Side Platforms (SSPs) Explained

SSPs basics in advertising: learn what Supply-Side Platforms are used for and who use them. Get familiar with more programmatic advertising technical terms.

Read More
Programmatic Advertising: What is a DSP?

What are DSPs?

A DSP is a great tool to use but what does DSP stand for in marketing? What are some Demand-Side Platforms examples? Today, we answer your questions!

Read More

Advertising News – 09 June 2024

This week, we'll explore Google's latest algorithm update and it's massive impact on independent websites, the newly passed media Freedom Act in the EU aimed at protecting journalists, and a...

Read More

Categories

AllFunctionsToolsShortcut Keys
Split Semicolon Separated Value in Excel

How to split semicolon separated values in Excel

Split semicolon separated values in Excel into columns and rows, or convert columns to semicolon separated values, like an Excel Master!

Read More

How to change shapes in Excel column charts

Learn how to easily change the columns shape in your Excel charts so your colleagues and customers will remember your impacting graphs.

Read More

How to use the LEFT, RIGHT and MID functions

Learn how to extract text in Excel with the LEFT, RIGHT and MID functions. Plenty of examples to learn from and functions are explained with simple words. If you start...

Read More

Excel IF statement: how to use it for 3 conditions

Learn how to use the Excel IF statement with multiple conditions and combine it with OR and/or AND functions!

Read More
Using Text to Column to Extract texts on Excel

Excel: How to split text into columns

If you need to extract data in Excel, you may want to use the Text to Columns tool. With only 3 steps, it's really easy to split text into columns.

Read More
Absolute Referencing in Excel

Locking cells: what’s the Excel dollar sign shortcut?

The Excel absolute reference shortcut will become one of your favourites to save time! Switch from relative to absolute references in seconds using this trick.

Read More