Formula Errors

Fix Excel SUM #REF! Error Caused by a Defined Name

Khadija KhanKhadija Khan Nov 25, 2026 870 views

Question details

The user needs to fix an Excel SUM formula that returns #REF! even though adding the same cells individually works.

Fix an Excel SUM #REF! Error Caused by a Defined Name
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.
Before you start

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.

Solution 1Recommended

Remove the conflicting SUM defined name

Use this solution when a defined name called Sum conflicts with the SUM function.

1
Open Name Manager

In Excel 2010, open the affected workbook and select Formulas > Name Manager.

2
Find the conflicting name

Look for a defined name called Sum. Check its Scope and Refers To values, and review any formulas that may depend on it.

3
Delete the name if unused

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.

4
Test the formula

Close Name Manager, re-enter =SUM(D10:F10) in the result cell, and press Enter.

Remove the conflicting SUM defined name
If Sum is a table name: Select a cell in the table, open Table Tools > Design, and change the Table Name to a descriptive name that does not conflict with a function. Review formulas that refer to the table before making the change.
Free Microsoft Office alternative

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.

Create and edit SUM formulas in WPS SpreadsheetOpen and save compatible Microsoft Excel XLSX filesUse a familiar spreadsheet interface for an easier transitionWork with a free, lightweight office suite
microsoft office alternative - wps office

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.