An Excel expression error means Excel cannot evaluate part of a formula, usually because of a typo, a mismatched parenthesis, a wrong argument type, or a reference to something that no longer exists. The fastest fix is to open the formula in the Formula Bar, check each function's arguments against the on-screen tooltip, and use Evaluate Formula (Formulas > Evaluate Formula) to step through the calculation until the error appears. Most expression errors are resolved by correcting syntax, matching data types, or repairing broken references.
What You'll Need
- Excel for Windows, Excel for Mac, or Excel for the web (menu labels can differ slightly by version, platform, and region).
- The workbook containing the formula that shows the error.
- Permission to edit the sheet if it is shared or protected.
Step-by-Step
- Identify the exact error. Click the cell with the problem. Excel shows a small warning icon next to it; hover over the icon to read the error name (for example #VALUE!, #REF!, #NAME?, #DIV/0!, #N/A, or #NUM!). The error name tells you which category of problem you have.
- Read the formula in the Formula Bar. Press F2 (Windows) or Ctrl+U (Mac) to edit in place, or click the Formula Bar directly. Check for obvious typos: missing commas between arguments, unmatched parentheses, quotation marks around text, and function names spelled correctly.
- Use the function tooltip. While editing, Excel displays a tooltip listing each argument in order. Click an argument name in the tooltip to highlight that part of the formula. Confirm you have supplied the right number and type of arguments.
- Step through with Evaluate Formula. Go to Formulas > Evaluate Formula. Click Evaluate repeatedly. Excel underlines the part it is about to calculate and shows the result. The step where the error appears is the part to fix.
- Check for broken references. If the error is #REF!, a referenced cell, row, column, or sheet was deleted. Use Ctrl+Z to undo the deletion if possible, or update the formula to point to the correct range. On the Home tab, use Find & Select > Go To Special > Formulas to locate other cells with errors.
- Match data types. #VALUE! often means you are doing math on text. Check whether numbers are stored as text (they align left by default). Convert them with Text to Columns (Data > Text to Columns) or by multiplying by 1, and remove stray spaces with TRIM.
- Fix #NAME? errors. This usually means a function name is misspelled or a named range does not exist. Go to Formulas > Name Manager to confirm the name exists and is spelled the same way in the formula.
- Handle #DIV/0! and #N/A. For #DIV/0!, check that the divisor is not zero or blank; wrap the formula in IFERROR to display a friendly value. For #N/A, confirm lookup values exist in the source range and that the lookup range is sorted correctly if you use an approximate match.
- Recalculate if needed. Press F9 (Windows) or Cmd+= (Mac) to force a recalculation. If the workbook is set to manual calculation, go to Formulas > Calculation Options and choose Automatic.
- Test the corrected formula. Copy the formula to a blank cell with simple test values to confirm it works, then replace the original. Save the workbook.
Common Mistakes
- Using a comma as a separator when your region uses a semicolon (or vice versa). Excel's list separator follows your system regional settings.
- Forgetting that text inside a formula must be in double quotation marks, while cell references must not be.
- Assuming a green triangle warning is always an error; it can be a consistency check or a number stored as text.
- Deleting rows or columns that other formulas depend on, which produces #REF! errors.
- Typing a space or hidden character into a number or function name.
- Mixing absolute and relative references incorrectly when copying formulas, causing unexpected results rather than clear errors.
Tips
- Use IFERROR to replace common errors with a blank or a message, but do not hide errors you still need to fix.
- Press Ctrl+` (grave accent) to toggle showing formulas instead of results, which makes syntax problems easier to spot.
- Use the F4 key to cycle a reference between relative, absolute, and mixed when copying formulas.
- Keep formulas short and break long ones into helper columns; this makes errors easier to isolate.
- Use named ranges for frequently referenced cells to reduce #REF! and #NAME? mistakes.
- When sharing workbooks, check that everyone uses the same regional settings for list separators.
Troubleshooting
If the error persists after checking syntax, try these in order:
- Press Ctrl+Z to undo recent changes and see whether the error disappears.
- Copy the formula to a new blank workbook to rule out workbook-specific corruption or circular references.
- Check for circular references: Formulas > Error Checking > Circular References. Excel lists the cells involved.
- If the workbook is protected, unprotect the sheet (Review > Unprotect Sheet) before editing formulas.
- If the file was created in another program, open it in Excel and re-save it as .xlsx to refresh formula parsing.
- As a last resort, close and reopen Excel, or restart the device; this clears temporary calculation glitches.
Frequently Asked Questions
What does #VALUE! mean in Excel?
#VALUE! means a formula is using the wrong type of data, such as adding text to a number or passing text where a number is required. Check the cell contents and convert text-formatted numbers to real numbers.
Why do I get #NAME? when the function looks correct?
#NAME? usually means Excel does not recognise a function name or a defined name. Check spelling, confirm the function exists in your Excel version, and verify named ranges in Name Manager.
How do I find all errors in a large workbook?
Use Home > Find & Select > Go To Special > Formulas and select Errors. Excel highlights every cell containing an error so you can review them one by one.
Can I hide errors without fixing them?
Yes, IFERROR or IFNA can display a blank or custom message, but hiding errors can mask real data problems. Fix the cause first, then use error handling for presentation.
Why does a formula work in one cell but not another?
Relative references shift when copied. Check whether the formula uses relative references that now point to empty or wrong cells; use absolute references ($A$1) where needed.
Does Excel for the web handle formulas the same way?
Most common functions behave the same, but some newer or legacy functions may not be available. Check the function list for your version, and avoid features not supported in the web app if you need cross-platform compatibility.