In this article:

IFERROR Google Sheets: Everything you Need to Know

Google Sheets IFERROR Function

IFERROR is used to replace the error code with a statement, so that if one occurs, it makes troubleshooting easier. 

IFERROR function example

IFERROR Syntax

=IFERROR(reference,[value_if_error])

Where:

reference

Can either be the reference to a cell or include a whole formula inside, hiding the errors.

[value_if_error]

If an error occurs, this will be displayed as the value. If you leave this blank, the output will be blank as well.

If the reference does not produce an error, the function will display the value as is. 

IF ERROR EXAMPLES

Interpret #N/A from VLOOKUP as “Value not found”

IFERROR interprets VLOOKUP output #N/A as “Value not found”.

If you place VLOOKUP formula inside IFERROR, the error won’t even show up in the sheet.

VLOOKUP formula inside IFERROR, error hidden

Indicate #VALUE as improper data type

IFERROR was used to convert #VALUE to “Improper data type”.

You can also wrap it around the original formula to hide the error and save space in your sheet:

Division formula inside IFERROR, error hidden

IFERROR Disadvantages

Cannot distinguish between different types of Google Sheets errors

The formula will still display the same message even if a different error appears:

Same message appears for different error type

Here, the formula is programmed to interpret #VALUE! (improper data type) but the real error code is #DIV/O! (division by zero). 

If you need to be able to know which is which, you can combine ERROR.TYPE with IF and SWITCH , as in this example:

Solution that can identify error type

This determines the type of error and displays the appropriate message. Click here to learn more about this technique.

Hiding errors

If you need to hide the error, you can use this function by only adding the reference inside it:

=IFERROR(reference)

This is not recommended; there are functions and formulas that also set blank values as valid output for a specific input value. This will hinder your ability to spot issues in your Google Sheets dashboard

Related IF Functions 

IF: Allows you to check for specific conditions across a dataset

SUMIF: Use to sum numbers if they meet a certain condition..

SUMIFS: Sums data from cells that meet multiple criteria

COUNTIF: count data if it fulfils certain criteria

COUNTIFS: Count data that fulfils two or more criteria.

COUNT IF Not Null: Count cells if they contain data

IFS: Allows you to check for multiple if conditions in a single statement

IF THEN: Evaluates data against a condition and take a corresponding action when the result is TRUE. 

IF AND: Combining the IF and AND functions allows you to include multiple conditions that must be met to return a TRUE result.

IF ELSE: Evaluates a condition, and takes one action when the result is TRUE and a different one when the result is FALSE.

Multiple IF: Learn how to use multiple if statements in a single formula


IF OR: Evaluates multiple conditions and produces a TRUE result when any of them are met.

IF Contains: Returns cells that contain a particular text. 

AVERAGEIF: Calculate an average for numbers within a data range if they meet the provided criteria. 

Use our invoice reminder software to easily set up custom reminders from your spreadsheet in just a few clicks. 

If you want to learn how to send email reminders from Google Sheets, we also suggest checking out our detailed guide. 

Automate repetitive tasks with Lido

Save hours on repetitive and tedious work. Lido is a new spreadsheet that connects your spreadsheets, forms, PDFs, and email inbox.

Trigger
Action
Select trigger
When a cell value in Google Sheets changes
Check Google Sheets for today's date
When a new row is added to Google Sheets
On new Google Form submission
Send me a daily reminder
On new Typeform submission
When a cell value in database changes
Check database for today's date
When a new row is added in database
When a new HubSpot customer is created
Select action
ADDCALENDAREVENT
Creates a one- or multiple-day calendar event with optional attendees
ADDHUBSPOT
Adds an object to Hubspot
ADDSLACKCHANNEL
Create a Slack channel, and optionally add a topic or members
CALLURL
Makes any HTTP request
CREATEGOOGLEDOC
Replaces [@column_name] values in a Google Doc with the corresponding table row's values
CREATEPDF
Replaces [@column_name] values in a Google Doc with the corresponding table row's values, then export it as a PDF
FETCH
Makes any HTTP request and returns the response
INSERTROWS
Inserts given array below defined values in given worksheet
SENDGMAIL
Sends an email using your Google account
SENDOUTLOOK
Sends an email using your Microsoft Outlook account
SENDSLACK
Sends a Slack message
SENDSMS
Sends an SMS message using your Twilio account
UPDATECELL
Updates cells with given values
UPDATEHUBSPOT
Updates a property of a Hubspot object
Trigger is required
Action is required
Get started