A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
#VALUE! usually means the formula is referring to text, spaces, or hidden characters instead of clean numeric values.
Try this in order:
- Select the cell that shows
#VALUE!. - Go to Formulas > Evaluate Formula > Evaluate.
- This shows which part of the formula is failing.
- If one referenced cell contains a hidden space or text, Excel will stop there.
Then clean the referenced cells:
- Select the cells used by that formula.
- Go to Home > Find & Select > Replace.
- In Find what, type one space.
- In Replace with, leave it empty.
- Select Replace All.
If the error remains, check for hidden non-space characters:
- Turn on a filter with Home > Sort & Filter > Filter.
- Open the filter arrow, clear Select all, then select Blanks.
- Select any blank-looking cells or unnamed checkboxes that appear, then press Delete.
- Clear the filter.
If a cell looks numeric but is actually text, retype that value, or use CLEAN or REPLACE, then copy the result and use Home > Paste > Paste Special > Values.
If the formula is using operators like + or *, and some referenced cells may contain text, use functions instead where possible:
- Instead of
=A2+B2+C2, use=SUM(A2:C2) - Instead of
=A2*B2, use=PRODUCT(A2,B2)
If only the display needs to hide the error, IFERROR can replace #VALUE!, but this only hides the problem and does not fix it.
References: