A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Yes. This usually happens when one or more cells in the range contain text, hidden spaces, or another error value instead of a true number.
A reliable way to fix it:
- Use
SUMover a range instead of adding cells one by one.
Example: use=SUM(B2:D2)instead of=B2+C2+D2.SUMignores text values, while=B2+C2+D2can return#VALUE!if any referenced cell contains text. - Find the exact cell causing the error.
Select the cell with#VALUE!, then go to Formulas > Evaluate Formula > Evaluate. Excel will step through the formula so the problem cell can be identified. - Remove hidden spaces or characters from the referenced cells.
- Select the cells or the whole column used in the total.
- Go to Home > Find & Select > Replace.
- In Find what, type one space.
- Leave Replace with empty.
- Select Replace All.
- If cells still look blank but continue causing errors, clear hidden characters:
- Go to Home > Sort & Filter > Filter.
- Open the filter arrow for the column.
- Clear Select all and select Blanks.
- Select any unnamed checkboxes if shown.
- Select the returned blank-looking cells and press Delete.
- Clear the filter.
- Check whether some numbers are stored as text.
Numbers stored as text can cause formula problems later. Converting those cells to real numbers is recommended. - If the range already contains error values such as
#VALUE!,AVERAGEorSUMcan also return#VALUE!. In that case, use:=SUM(IF(ISERROR(B2:D2),"",B2:D2))- In Microsoft 365, enter the formula and press Enter.
- In non-Microsoft 365 versions, enter it as an array formula with Ctrl+Shift+Enter.
If the goal is only to avoid the visible error, IFERROR can hide it, but that does not fix the underlying problem. That approach is not recommended unless the formula is already known to be correct.
- SUM function | Microsoft Support
- # VALUE is Excel's way of saying, "There's something wrong with the way your formula is typed. Or, there's something wrong with the cells you are referencing." The error is very general, and it can be hard to find the exact cause of it. The information on this page shows common problems and solutions for the error.
- # VALUE is Excel's way of saying, "There's something wrong with the way your formula is typed. Or, there's something wrong with the cells you are referencing." The error is very general, and it can be hard to find the exact cause of it. The information on this page shows common problems and solutions for the error.
- How to correct a #VALUE! error in AVERAGE or SUM functions | Microsoft Support
- Correcting a #Value! error when words are sometimes used instead of numbers - Microsoft Q&A