# Why does my formula show an error in Google Sheets?

A Google Sheets formula shows an error when it cannot return a result: #DIV/0! means it divided by zero, #N/A from VLOOKUP means the value was not found, #VALUE! often means text where a number was needed, and #REF!, #NAME? and #NUM! flag other problems. Click the cell, check the formula and the cells it uses, or wrap it in IFERROR. ProfitDrawer's bookkeeping spreadsheets use IF and IFERROR tests so empty rows show blanks, not errors.

**Error values Sheets uses** (ERROR.TYPE returns these numbers):

| Error | No. | Common cause |
|---|---|---|
| #NULL! | 1 | other error |
| #DIV/0! | 2 | the divisor is 0 |
| #VALUE! | 3 | wrong type of input, for example text given to DATE |
| #REF! | 4 | a reference problem |
| #NAME? | 5 | a name Sheets does not recognize |
| #NUM! | 6 | a number out of range, for example a year above 10,000 in DATE |
| #N/A | 7 | a lookup value was not found |

**Fixing it:**

1. Click the cell and read the formula in the formula bar. Referenced cells are highlighted in color.
2. Check that those cells hold numbers or dates, not text, and that lookup values are spelled the same.
3. If Sheets shows a **Formula correction** box, click **Accept** or **Dismiss**.

**Hide expected errors:** `=IFERROR(B2/C2, "")` shows a blank instead of an error. Google notes IFERROR catches every error, so make sure that is what you want; it can hide real mistakes. `IF(C2=0,"",B2/C2)` handles only the divide-by-zero case.

- Source: [ERROR.TYPE function: Google Docs Editors Help](https://support.google.com/docs/answer/3238305)
- Updated: 2026-10-29
- Published: 2026-10-29
- Category: Google Sheets and Excel how-tos
- Canonical: https://profitdrawer.com/answers/why-does-my-formula-show-an-error-in-google-sheets.html
- Publisher: ProfitDrawer (https://profitdrawer.com)
