# ISERROR formula generator

> Describe what you need and get a ISERROR formula for Excel and Google Sheets, run on real data before you copy it. Plus 4 tested ISERROR examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/iserror · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

ISERROR returns TRUE for any error value, such as #N/A, #VALUE!, #REF!, #DIV/0! or #NAME?.

Describe the task at [ISERROR formula generator](https://spreadsheetpractice.com/tools/formula-generator/iserror) and get a ISERROR formula for Excel and Google Sheets, tested on real data.

## Tested ISERROR examples

### Count cells with errors

`=SUMPRODUCT(--ISERROR(D2:D9))`

Excel. Result on the sample sheet: 3. [See it and try it](https://spreadsheetpractice.com/formulas/count-cells-with-errors)

### Check if a cell contains an error

`=IF(ISERROR(D2),"Fix row","OK")`

Excel. Result on the sample sheet: 6 rows (E2:E7). [See it and try it](https://spreadsheetpractice.com/formulas/check-if-a-cell-contains-an-error)

### Sum if a cell does not contain specific text

`=SUMIF(A2:A9,"<>*"&E1&"*",B2:B9)`

Excel. Result on the sample sheet: $291.85. [See it and try it](https://spreadsheetpractice.com/formulas/sum-if-cell-does-not-contain-text)

### Check if an email address is valid

`=REGEXTEST(A2,"^[^@\s]+@[^@\s]+\.[A-Za-z]{2,}$")`

Excel. Result on the sample sheet: 7 rows (B2:B8). [See it and try it](https://spreadsheetpractice.com/formulas/check-if-email-address-is-valid)

## Questions

### What does the ISERROR formula generator do?

You describe the task in plain English, and it writes the formula, using ISERROR where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does ISERROR do?

ISERROR returns TRUE for any error value, such as #N/A, #VALUE!, #REF!, #DIV/0! or #NAME?.

### Can I learn to write ISERROR formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the ISERROR function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
