Have you often encountered unexpected error messages while entering data or using formulas in Excel? This post explains the causes and solutions for the most common Excel errors in a way that beginners can easily follow.
1. Types of Excel Errors and Their Causes
1-1. #DIV/0!
Cause: Occurs when a number is divided by 0 or a blank cell.
Solution: Check whether the denominator is 0 and add a condition before calculating.
=IF(B1=0, "", A1/B1)
1-2. #VALUE!
Cause: Occurs when you incorrectly calculate cells containing a mix of text and numbers.
Solution: Check the input values to ensure that text is not being passed into the function.
1-3. #REF!
Cause: Occurs when a referenced cell has been deleted.
Solution: Correct or restore the cell reference causing the error in the formula.
1-4. #NAME?
Cause: Occurs when you enter a function name incorrectly or omit quotation marks.
Solution: Enter the function name correctly and use “” for text strings.
1-5. #N/A
Cause: Occurs when a lookup value cannot be found in functions such as VLOOKUP and MATCH.
Solution: Confirm that the value you are looking for is correct and use an error-handling function.
=IFNA(VLOOKUP(A1, B:C, 2, FALSE), "Value not found")
2. Error-Handling Functions to Prevent Errors
2-1. IFERROR
Displays an alternative value when a formula produces an error.
=IFERROR(A1/B1, "Error")
2-2. IFNA
Use this function when you want to handle only #N/A errors.
=IFNA(VLOOKUP(A1, B:C, 2, FALSE), "Not found")
2-3. ISERROR / ISERR
Checks whether a cell contains an error and returns TRUE/FALSE.
3. Practical Tips for Fixing Errors
- Check Automatic Calculation mode: If calculation options are set to Manual, results may not update.
- Check cell formatting: You may be trying to convert a date to a number, or the number may have been entered as text.
- Avoid entering spaces instead of numbers: Spaces are a major cause of errors.
- Hidden columns or rows: Missing cells in a reference range can cause #REF! errors.
4. Frequently Asked Questions (FAQ)
- Q1. Can I hide all errors at once?
Wrap the entire formula with the IFERROR function. - Q2. Can I filter and view only errors?
You can use Conditional Formatting or the=ISERROR()function. - Q3. I get #N/A too often with VLOOKUP.
Check whether the value is correct and whether it contains spaces, then try usingTRIM()andIFNA()together. - Q4. Only a specific cell has an error.
If the cell was copied, the relative reference range may be broken. - Q5. There is no error, but no value is displayed.
Check whether calculation mode is set to Automatic underFormulas > Calculation Options.