logo
search
Excel Error Codes

How to Fix #REF! Errors in Excel SUMPRODUCT Named Ranges

Kushani NimanthikaKushani Nimanthika Oct 22, 2026 869 views

Question details

The user needs to resolve a #REF! error occurring in a SUMPRODUCT formula used to count monthly records based on named ranges.

Fixing #REF! Errors in Excel Monthly Record Counts via Named Ranges
Product
Microsoft 365 Excel
Device & OS
not provided
Scenario
Counting records by month using the SUMPRODUCT function and custom named ranges.
Observed behavior
The formula returns a #REF! error because the named ranges are pointing to deleted tables, sheets, or previous trackers.
Before you start

Before you begin troubleshooting, make sure you have not recently deleted or moved any source data tables or worksheets that your SUMPRODUCT formula relies on.

Solution 1Recommended

Recreate Invalid Named Ranges via the Name Manager

Clear out broken references from previous tables or trackers by updating your named ranges in the Name Manager tool.

When column names are reused from previous tables or an older tracker, the Name Manager may retain references to deleted sheets or ranges. This invalid reference triggers a #REF! error inside your SUMPRODUCT formula.

1
Open the Name Manager

Navigate to the 'Formulas' tab on the Excel ribbon and click on 'Name Manager'.

2
Identify broken references

Look through the list of named ranges (such as A_RCVD, S_RCVD) and check the 'Refers To' column. Identify any names that display a #REF! error.

3
Delete obsolete names

Select the invalid named ranges and click the 'Delete' button to remove them from your workbook.

4
Define new named ranges

Click 'New' in the Name Manager to recreate the named ranges, ensuring they point to unique, valid cell references in your current worksheet.

5
Recalculate the formula

Select the cell containing your SUMPRODUCT formula, press Enter to recalculate, and verify that the #REF! error is resolved.

Validation check: Recalculating the SUMPRODUCT formula after resetting the named ranges ensures all arrays conform to the exact same size, preventing further calculation errors.
Efficient Data Management

Easily Resolve Formula Errors with WPS Spreadsheet

WPS Spreadsheet provides a highly intuitive Name Manager and comprehensive support for complex formulas like SUMPRODUCT. Fix reference errors seamlessly within a familiar, user-friendly interface.

  1. 1. Open your file: Launch WPS Spreadsheet and open the workbook containing the #REF! error.
  2. 2. Access the Name Manager: Go to the 'Formulas' tab and click on 'Name Manager'.
  3. 3. Update named ranges: Delete any broken definitions and assign your names to the correct data ranges.
  4. 4. Verify your calculation: Check your SUMPRODUCT monthly count to ensure the formula now calculates correctly.
Fully compatible with Microsoft Excel formulas and named ranges.Intuitive Name Manager interface for rapid troubleshooting of cell references.Free, lightweight, and fast data processing for large worksheets.
microsoft office alternative - wps office

Frequently Asked Questions

What does a #REF! error mean in a SUMPRODUCT formula?

A #REF! error indicates that the SUMPRODUCT formula is trying to calculate using a cell reference or named range that is no longer valid. This usually happens when rows, columns, or sheets containing the referenced data have been deleted.

How do I find which named range is causing the #REF! error?

Go to the Formulas tab and open the Name Manager. Review the 'Refers To' column for each named range. Any entry showing '#REF!' has lost its original data source and needs to be updated or recreated.

Can I edit an existing named range instead of deleting it?

Yes, you can select the named range in the Name Manager, click Edit, and manually change the cell reference to point to the correct data. However, deleting and recreating the name is often faster if multiple ranges are corrupted from an old tracker.