Fix Excel SUM #REF! Error Caused by a Defined Name
Question details
The user needs to fix an Excel SUM formula that returns #REF! even though adding the same cells individually works.

- Product
- Microsoft Excel 2010
- Device & OS
- not provided
- Scenario
- The user enters =SUM(D10:F10) to add values across a row.
- Observed behavior
- The SUM formula returns #REF!, and Excel highlights an unrelated table when the function is entered.
Check whether the cells in D10:F10 contain errors, and confirm that adding them individually works. Before deleting a defined name, check what it refers to and whether other formulas use it.
Remove the conflicting SUM defined name
Use this solution when a defined name called Sum conflicts with the SUM function.
In Excel 2010, open the affected workbook and select Formulas > Name Manager.
Look for a defined name called Sum. Check its Scope and Refers To values, and review any formulas that may depend on it.
Select the Sum defined name, click Delete, and confirm the deletion if it is safe to remove. Deleting a name used elsewhere can break formulas that depend on it.
Close Name Manager, re-enter =SUM(D10:F10) in the result cell, and press Enter.

Work with SUM formulas in WPS Spreadsheet
WPS Office is a free, lightweight alternative with a familiar interface for working with spreadsheets. Open compatible Excel files and continue editing formulas as you migrate from Microsoft Office; it does not repair Excel's defined-name settings.

Frequently Asked Questions
Why does SUM return #REF! when adding the cells individually works?
A defined name or table called Sum may conflict with the SUM function. Open Formulas > Name Manager and look for that name, then check whether it can safely be removed.
What happens if I delete a defined name?
Formulas that rely on the name can stop working. In Formulas > Name Manager, inspect the name's scope and reference and review its uses before deleting it.
How do I change a table named Sum in Excel 2010?
Click a cell in the table, open Table Tools > Design, and enter a different name in the Table Name box. Check formulas that refer to the table before changing its name.
What should I check if SUM still returns #REF!?
Inspect D10:F10 for errors and check the formula for references to deleted cells. Also reopen Formulas > Name Manager to look for other invalid or conflicting names.




