---
title: "IFERROR in Google Sheets: practice exercises | PracticeExcel"
description: "Practice IFERROR in Google Sheets: replace #N/A and other errors with a value of your own, in exercises that are checked as you type."
canonical_url: "https://practiceexcelonline.com/sheets/practice/iferror"
locale: en
meta:
  "og:description": "Practice IFERROR in Google Sheets: replace #N/A and other errors with a value of your own, in exercises that are checked as you type."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBpbiBHb29nbGUgU2hlZXRzOiBwcmFjdGljZSBleGVyY2lzZXM%2Cdescription_~UHJhY3RpY2UgSUZFUlJPUiBpbiBHb29nbGUgU2hlZXRzOiByZXBsYWNlICNOL0EgYW5kIG90aGVyIGVycm9ycyB3aXRoIGEgdmFsdWUgb2YgeW91ciBvd24sIGluIGV4ZXJjaXNlcyB0aGF0IGFyZSBjaGVja2VkIGFzIHlvdSB0eXBlLg%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJDb2RlIiwiQ291bnRyeSIsIkNvZGUiLCJDb3VudHJ5Il19LHsibiI6MiwiY2VsbHMiOlsiREsiLCJEZW5tYXJrIiwiSVMiLCIiXX0seyJuIjozLCJjZWxscyI6WyJTRSIsIlN3ZWRlbiIsIiIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIk5PIiwiTm9yd2F5IiwiIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiRkkiLCJGaW5sYW5kIiwiIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiREUiLCJHZXJtYW55IiwiIiwiIl19XSwidGFyZ2V0IjpbMSwzXX19%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvaWZlcnJvciI%2Cs_BsK8qB32JnwZKkFX.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "IFERROR in Google Sheets: practice exercises | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZFUlJPUiBpbiBHb29nbGUgU2hlZXRzOiBwcmFjdGljZSBleGVyY2lzZXM%2Cdescription_~UHJhY3RpY2UgSUZFUlJPUiBpbiBHb29nbGUgU2hlZXRzOiByZXBsYWNlICNOL0EgYW5kIG90aGVyIGVycm9ycyB3aXRoIGEgdmFsdWUgb2YgeW91ciBvd24sIGluIGV4ZXJjaXNlcyB0aGF0IGFyZSBjaGVja2VkIGFzIHlvdSB0eXBlLg%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJDb2RlIiwiQ291bnRyeSIsIkNvZGUiLCJDb3VudHJ5Il19LHsibiI6MiwiY2VsbHMiOlsiREsiLCJEZW5tYXJrIiwiSVMiLCIiXX0seyJuIjozLCJjZWxscyI6WyJTRSIsIlN3ZWRlbiIsIiIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIk5PIiwiTm9yd2F5IiwiIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiRkkiLCJGaW5sYW5kIiwiIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiREUiLCJHZXJtYW55IiwiIiwiIl19XSwidGFyZ2V0IjpbMSwzXX19%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvaWZlcnJvciI%2Cs_BsK8qB32JnwZKkFX.png"
---

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

# **IFERROR practice in Google Sheets**

IFERROR returns its first argument, or a value of your choice if the first argument is an error. In Google Sheets it works as in Excel and is most often wrapped around a lookup.

[**Start the first exercise**](https://practiceexcelonline.com/sheets/practice/iferror/iferror-vlookup)

IFERROR(

1. [**1****Hide #N/A with IFERROR**IS is not in the table, so a plain VLOOKUP shows #N/A. In E2, wrap VLOOKUP(D2,A2:B6,2,FALSE) in IFERROR to show "Unknown" instead.](https://practiceexcelonline.com/sheets/practice/iferror/iferror-vlookup)
2. [**2****Avoid #DIV/0! with IFERROR****Premium**The lamp has not sold yet, so B2/C2 gives #DIV/0!. In D2, wrap B2/C2 in IFERROR to show 0 instead.](https://practiceexcelonline.com/sheets/practice/iferror/iferror-div0)
3. [**3****Catch only "not found" with IFNA****Premium**E-109 is a new hire who isn't in the list yet. In E2, look up the department for D2 with VLOOKUP and wrap it in IFNA to show "Not listed" instead of #N/A.](https://practiceexcelonline.com/sheets/practice/iferror/ifna-vlookup-not-found)

## **Functions in this topic**

- [**IFERROR**](https://practiceexcelonline.com/sheets/functions/iferror)

## **Questions**

<details>

<summary>

### Can I leave out the second argument of IFERROR in Google Sheets?

</summary>

Yes. Google Sheets then shows an empty cell instead of the error. Writing "" as the second argument gives the same result and works in Excel too.

</details>

```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/practice/iferror#webpage","description":"Practice IFERROR in Google Sheets: replace #N/A and other errors with a value of your own, in exercises that are checked as you type.","name":"IFERROR in Google Sheets: practice exercises","url":"https://practiceexcelonline.com/sheets/practice/iferror","@type":["WebPage","CollectionPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/iferror#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/sheets/practice/iferror#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/iferror"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/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: practice exercises","position":3}]},{"@id":"https://practiceexcelonline.com/sheets/practice/iferror#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"Can I leave out the second argument of IFERROR in Google Sheets?","acceptedAnswer":{"@type":"Answer","text":"Yes. Google Sheets then shows an empty cell instead of the error. Writing \"\" as the second argument gives the same result and works in Excel too."}},{"@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"}]}
```

## Sitemap

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