---
title: "IFERROR in Google Sheets: syntax and examples | ExcelSavvy"
description: "Returns a value you choose when a formula gives any error, and the formula result otherwise. With examples and exercises in Google Sheets."
canonical_url: "https://excelsavvy.com/sheets/functions/iferror"
meta:
  "og:description": "Returns a value you choose when a formula gives any error, and the formula result otherwise. With examples and exercises in Google Sheets."
  "og:image": "https://excelsavvy.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~UmV0dXJucyBhIHZhbHVlIHlvdSBjaG9vc2Ugd2hlbiBhIGZvcm11bGEgZ2l2ZXMgYW55IGVycm9yLCBhbmQgdGhlIGZvcm11bGEgcmVzdWx0IG90aGVyd2lzZS4gV2l0aCBleGFtcGxlcyBhbmQgZXhlcmNpc2VzIGluIEdvb2dsZSBTaGVldHMu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2lmZXJyb3Ii%2Cs_KE7jIBv-bXyOshtX.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "IFERROR in Google Sheets: syntax and examples | ExcelSavvy"
  "twitter:image": "https://excelsavvy.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~UmV0dXJucyBhIHZhbHVlIHlvdSBjaG9vc2Ugd2hlbiBhIGZvcm11bGEgZ2l2ZXMgYW55IGVycm9yLCBhbmQgdGhlIGZvcm11bGEgcmVzdWx0IG90aGVyd2lzZS4gV2l0aCBleGFtcGxlcyBhbmQgZXhlcmNpc2VzIGluIEdvb2dsZSBTaGVldHMu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2lmZXJyb3Ii%2Cs_KE7jIBv-bXyOshtX.png"
---

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

# **IFERROR in Google Sheets**

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

=

IFERROR(

## **In Google Sheets**

IFERROR works the same way in Google Sheets. There you may also leave out the second argument, which gives an empty cell.

## **How to use IFERROR**

IFERROR is a safety net under a formula. It runs the formula you give it, and if the result is an error such as #N/A, #DIV/0! or #VALUE!, it shows your replacement instead. No error means no change: you get the normal result.

Use it where an error is expected and ugly: a lookup for an item that is not on the price list, an average over a month with no sales, or a percentage change from zero. `**=IFERROR(VLOOKUP(A2,Prices!A:B,2,FALSE),"Not found")**` shows a readable message instead of #N/A, and `**=IFERROR(B2/C2,0)**` keeps a total row from filling up with #DIV/0!.

The second argument can be a number, text in quotes, two double quotes `**""**` for a cell that looks empty, or another formula, such as a second lookup in a different table. Wrap only the part that may fail, not the whole formula: a wide net also hides real mistakes like a misspelled function name or a deleted column. If you only expect "no match" from a lookup, IFNA catches just #N/A and lets other errors through. For division by zero, a test like `**=IF(C2=0,0,B2/C2)**` is more honest, because it handles exactly that case.

## **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 |  | |

## **Common IFERROR mistakes**

- IFERROR shows "Not found" for everything, even values that exist

  The formula inside is wrong, and IFERROR hides it. A typo in the range or a column number that is too high both end up as the fallback text. Remove IFERROR for a moment to see the real error, fix it, and consider IFNA so that only #N/A is replaced.
- My average is too low after adding IFERROR

  A replacement of `**0**` counts as a real value in AVERAGE. Return `**""**` instead, as in `**=IFERROR(B2/C2,"")**`, because AVERAGE skips text.
- I still see #N/A in my total

  IFERROR only fixes the cell it sits in. A SUM over a range that contains one error returns that error. Wrap the formulas that produce the errors, not the formula that adds them up.

## **Practice IFERROR**

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

## **Related functions**

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

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://excelsavvy.com/#identity","@type":"Organization","name":"ExcelSavvy","url":"https://excelsavvy.com/","logo":{"@id":"https://excelsavvy.com/#logo"}},{"@id":"https://excelsavvy.com/#website","@type":"WebSite","inLanguage":"en-US","name":"ExcelSavvy","url":"https://excelsavvy.com/","alternateName":["Excel Savvy","ExcelSavvy.com","PracticeExcel","Practice Excel Online"],"publisher":{"@id":"https://excelsavvy.com/#identity"},"workTranslation":[{"@id":"https://excelopgaver.dk/#website"},{"@id":"https://excelpraxis.de/#website"}]},{"@id":"https://excelsavvy.com/sheets/functions/iferror#webpage","@type":"WebPage","dateModified":"2026-11-16","description":"Returns a value you choose when a formula gives any error, and the formula result otherwise. With examples and exercises in Google Sheets.","name":"IFERROR in Google Sheets: syntax and examples","url":"https://excelsavvy.com/sheets/functions/iferror","breadcrumb":{"@id":"https://excelsavvy.com/sheets/functions/iferror#breadcrumb"},"isPartOf":{"@id":"https://excelsavvy.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://excelsavvy.com/sheets/functions/iferror"]}],"primaryImageOfPage":{"@id":"https://excelsavvy.com/#logo"}},{"@id":"https://excelsavvy.com/sheets/functions/iferror#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://excelsavvy.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://excelsavvy.com/sheets","position":2},{"@type":"ListItem","name":"IFERROR in Google Sheets: syntax and examples","position":3}]},{"@id":"https://excelsavvy.com/sheets/functions/iferror#article","dateModified":"2026-11-16","description":"Returns a value you choose when a formula gives any error, and the formula result otherwise. With examples and exercises in Google Sheets.","headline":"IFERROR in Google Sheets: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://excelsavvy.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~UmV0dXJucyBhIHZhbHVlIHlvdSBjaG9vc2Ugd2hlbiBhIGZvcm11bGEgZ2l2ZXMgYW55IGVycm9yLCBhbmQgdGhlIGZvcm11bGEgcmVzdWx0IG90aGVyd2lzZS4gV2l0aCBleGFtcGxlcyBhbmQgZXhlcmNpc2VzIGluIEdvb2dsZSBTaGVldHMu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2lmZXJyb3Ii%2Cs_KE7jIBv-bXyOshtX.png","@type":["Article","TechArticle"],"author":{"@id":"https://excelsavvy.com/#identity"},"image":{"@id":"https://excelsavvy.com/#/schema/image/1"},"isPartOf":{"@id":"https://excelsavvy.com/sheets/functions/iferror#webpage"},"mainEntityOfPage":{"@id":"https://excelsavvy.com/sheets/functions/iferror#webpage"},"publisher":{"@id":"https://excelsavvy.com/#identity"}},{"@id":"https://excelsavvy.com/#logo","@type":"ImageObject","caption":"ExcelSavvy","contentUrl":"https://excelsavvy.com/brand/practiceexcel/icon-512.png?v=3","inLanguage":"en-US","url":"https://excelsavvy.com/brand/practiceexcel/icon-512.png?v=3"},{"@id":"https://excelsavvy.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://excelsavvy.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~UmV0dXJucyBhIHZhbHVlIHlvdSBjaG9vc2Ugd2hlbiBhIGZvcm11bGEgZ2l2ZXMgYW55IGVycm9yLCBhbmQgdGhlIGZvcm11bGEgcmVzdWx0IG90aGVyd2lzZS4gV2l0aCBleGFtcGxlcyBhbmQgZXhlcmNpc2VzIGluIEdvb2dsZSBTaGVldHMu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2lmZXJyb3Ii%2Cs_KE7jIBv-bXyOshtX.png","inLanguage":"en-US","url":"https://excelsavvy.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~UmV0dXJucyBhIHZhbHVlIHlvdSBjaG9vc2Ugd2hlbiBhIGZvcm11bGEgZ2l2ZXMgYW55IGVycm9yLCBhbmQgdGhlIGZvcm11bGEgcmVzdWx0IG90aGVyd2lzZS4gV2l0aCBleGFtcGxlcyBhbmQgZXhlcmNpc2VzIGluIEdvb2dsZSBTaGVldHMu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2lmZXJyb3Ii%2Cs_KE7jIBv-bXyOshtX.png"}]}
```

## Sitemap

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