---
title: "IFERROR in Google Sheets: syntax and examples | PracticeExcel"
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://practiceexcelonline.com/sheets/functions/iferror"
locale: en
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://practiceexcelonline.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 | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.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://practiceexcelonline.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.

## **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/sheets/practice/iferror/iferror-vlookup)

## **Related functions**

- [**IFNA**](https://practiceexcelonline.com/functions/ifna)
- [**XLOOKUP**](https://practiceexcelonline.com/sheets/functions/xlookup)
- [**VLOOKUP**](https://practiceexcelonline.com/sheets/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/sheets/functions/iferror#webpage","@type":"WebPage","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://practiceexcelonline.com/sheets/functions/iferror","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/functions/iferror#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/functions/iferror"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/functions/iferror#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://practiceexcelonline.com/sheets","position":2},{"@type":"ListItem","name":"IFERROR in Google Sheets: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/sheets/functions/iferror#article","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://practiceexcelonline.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://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/sheets/functions/iferror#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/sheets/functions/iferror#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@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_~SUZFUlJPUiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~UmV0dXJucyBhIHZhbHVlIHlvdSBjaG9vc2Ugd2hlbiBhIGZvcm11bGEgZ2l2ZXMgYW55IGVycm9yLCBhbmQgdGhlIGZvcm11bGEgcmVzdWx0IG90aGVyd2lzZS4gV2l0aCBleGFtcGxlcyBhbmQgZXhlcmNpc2VzIGluIEdvb2dsZSBTaGVldHMu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~SUZFUlJPUih2YWx1ZSwgdmFsdWVfaWZfZXJyb3Ip%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2lmZXJyb3Ii%2Cs_KE7jIBv-bXyOshtX.png","inLanguage":"en-US","url":"https://practiceexcelonline.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://practiceexcelonline.com/sitemap.md) for all pages.
