Excel SUM formula returns #VALUE! error when calculating students’ grades

WilliamHemsword-4560 0 Reputation points
2026-11-30T06:38:02.5966667+00:00

Hi everyone,

I’m working on a school assignment in Excel where I need to calculate the total scores for each student using the SUM function.

However, I’m getting a #VALUE! error whenever I try to calculate the total. I’ve checked my formula a few times, and it seems to be correct. I also tried changing the cell format to Number, but the issue is still there.

I’m not sure if this is happening because some of the scores were copied from another file and Excel is reading them as text instead of numbers.

Has anyone run into this issue before? Is there an easy way to fix it without having to enter all the scores again?

Any help would be appreciated. Thanks!

Microsoft 365 and Office | Excel | For education | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-11-30T06:38:20.1366667+00:00

    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:

    1. Use SUM over a range instead of adding cells one by one.
      Example: use =SUM(B2:D2) instead of =B2+C2+D2. SUM ignores text values, while =B2+C2+D2 can return #VALUE! if any referenced cell contains text.
    2. 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.
    3. 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.
    4. 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.
    5. 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.
    6. If the range already contains error values such as #VALUE!, AVERAGE or SUM can 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.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.