---
title: "IFERROR function in Excel: syntax and examples | PracticeExcel"
description: "How to use IFERROR in Excel and Google Sheets: replace #N/A, #DIV/0! and other errors with your own value."
canonical_url: "https://practiceexcelonline.com/functions/iferror"
locale: en
meta:
  "og:description": "How to use IFERROR in Excel and Google Sheets: replace #N/A, #DIV/0! and other errors with your own value."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBJRkVSUk9SIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiByZXBsYWNlICNOL0EsICNESVYvMCEgYW5kIG90aGVyIGVycm9ycyB3aXRoIHlvdXIgb3duIHZhbHVlLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9mdW5jdGlvbnMvaWZlcnJvciI%2Cs_pKmZ0so08MNZO2cb.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "IFERROR function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBJRkVSUk9SIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiByZXBsYWNlICNOL0EsICNESVYvMCEgYW5kIG90aGVyIGVycm9ycyB3aXRoIHlvdXIgb3duIHZhbHVlLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9mdW5jdGlvbnMvaWZlcnJvciI%2Cs_pKmZ0so08MNZO2cb.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **The IFERROR function**

Returns a value you choose when a formula gives any error, and the formula result otherwise.

=

IFERROR(

## **Syntax**

```
IFERROR(value, value_if_error)
```

<dl><dt>**value **</dt>
<dd>The formula to check.</dd>
<dt>**value_if_error **</dt>
<dd>What to show instead of an error, such as 0 or "Not found".</dd></dl>

## **Examples**

B1`=IFERROR(<sup>1</sup>10/0,<sup>2</sup>0)`

|  | A | B |
| --- | --- | --- |
| 1 |  | **0** |

**In plain words:** <sup>1</sup>Divide 10 by 0, and <sup>2</sup>if that gives an error, show 0 instead.

D1=IFERROR(VLOOKUP("Kiwi",A2:B4,2,FALSE),"Not found")

|  | A | B | C | D |
| --- | --- | --- | --- | --- |
| 1 | Fruit | Price |  | **Not found** |
| 2 | Apple | 4 |  | |
| 3 | Pear | 6 |  | |
| 4 | Plum | 5 |  | |

## **Practice IFERROR**

- [**1****Hide #N/A with IFERROR**→](https://practiceexcelonline.com/practice/iferror/iferror-vlookup)

## **Read the guide**

- [**Excel for job interviews: what gets tested and how to prepare**](https://practiceexcelonline.com/learn/excel-for-job-interviews)
- [**VLOOKUP vs XLOOKUP vs INDEX MATCH: which lookup to use**](https://practiceexcelonline.com/learn/vlookup-vs-xlookup-vs-index-match)
- [**Excel for finance and accounting: the skills you actually use**](https://practiceexcelonline.com/learn/excel-for-finance)
- [**Excel IF formulas: from one condition to many**](https://practiceexcelonline.com/learn/excel-if-function)

## **Questions**

<details>

<summary>

### Should I use IFERROR or IFNA?

</summary>

IFNA only catches #N/A, the error a lookup gives when nothing matches. IFERROR also hides real mistakes such as #REF! or #NAME?, so prefer IFNA around lookups.

</details>

## **Related functions**

- [**IFNA**](https://practiceexcelonline.com/functions/ifna)
- [**XLOOKUP**](https://practiceexcelonline.com/functions/xlookup)
- [**VLOOKUP**](https://practiceexcelonline.com/functions/vlookup)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/functions/iferror#webpage","description":"How to use IFERROR in Excel and Google Sheets: replace #N/A, #DIV/0! and other errors with your own value.","name":"IFERROR function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/iferror","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/functions/iferror#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/functions/iferror#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/iferror"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/iferror#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"IFERROR function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/iferror#article","description":"How to use IFERROR in Excel and Google Sheets: replace #N/A, #DIV/0! and other errors with your own value.","headline":"IFERROR function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBJRkVSUk9SIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiByZXBsYWNlICNOL0EsICNESVYvMCEgYW5kIG90aGVyIGVycm9ycyB3aXRoIHlvdXIgb3duIHZhbHVlLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9mdW5jdGlvbnMvaWZlcnJvciI%2Cs_pKmZ0so08MNZO2cb.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/iferror#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/iferror#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/functions/iferror#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"Should I use IFERROR or IFNA?","acceptedAnswer":{"@type":"Answer","text":"IFNA only catches #N/A, the error a lookup gives when nothing matches. IFERROR also hides real mistakes such as #REF! or #NAME?, so prefer IFNA around lookups."}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBJRkVSUk9SIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiByZXBsYWNlICNOL0EsICNESVYvMCEgYW5kIG90aGVyIGVycm9ycyB3aXRoIHlvdXIgb3duIHZhbHVlLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9mdW5jdGlvbnMvaWZlcnJvciI%2Cs_pKmZ0so08MNZO2cb.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBJRkVSUk9SIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiByZXBsYWNlICNOL0EsICNESVYvMCEgYW5kIG90aGVyIGVycm9ycyB3aXRoIHlvdXIgb3duIHZhbHVlLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9mdW5jdGlvbnMvaWZlcnJvciI%2Cs_pKmZ0so08MNZO2cb.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
