Division by zero
| A | B | |
|---|---|---|
| 1 | Total | Count |
| 2 | 10 | 0 |
Formula: D2: =ISERROR(A2/B2)
Result: TRUE
Dividing by zero produces #DIV/0!, so ISERROR reports TRUE.
ISERROR with worked examples you can test in the live grid. The argument details are in the Excel guide.
The arguments and common errors are covered in the ISERROR Excel guide; check the function help in Google Sheets for its own argument list.
| A | B | |
|---|---|---|
| 1 | Total | Count |
| 2 | 10 | 0 |
Formula: D2: =ISERROR(A2/B2)
Result: TRUE
Dividing by zero produces #DIV/0!, so ISERROR reports TRUE.
| A | B | |
|---|---|---|
| 1 | Total | Count |
| 2 | 10 | 4 |
Formula: D2: =ISERROR(A2/B2)
Result: FALSE
The division returns 2.5, so there is no error.
| A | |
|---|---|
| 1 | Name |
| 2 | Ana |
| 3 | Ben |
| 4 | Cara |
Formula: C2: =ISERROR(MATCH("Zed",A2:A4,0))
Result: TRUE
The name is not in the list, so MATCH gives #N/A and ISERROR turns it into TRUE.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =ISERROR(B3/D3)
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | Score | Extra credit | Attempts | Result | |
| 2 | Ann | 92 | Yes | 2 | TRUE | |
| 3 | Bob | 74 | No | 0 | ||
| 4 | Cy | 58 | Yes | 3 | ||
| 5 | Dee | 81 | No | 1 | ||
| 6 | Eli | 66 | 2 |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page