How to Fix #REF! Errors in Excel SUMPRODUCT Named Ranges
Question details
The user needs to resolve a #REF! error occurring in a SUMPRODUCT formula used to count monthly records based on 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 begin troubleshooting, make sure you have not recently deleted or moved any source data tables or worksheets that your SUMPRODUCT formula relies on.
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.
Navigate to the 'Formulas' tab on the Excel ribbon and click on 'Name Manager'.
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.
Select the invalid named ranges and click the 'Delete' button to remove them from your workbook.
Click 'New' in the Name Manager to recreate the named ranges, ensuring they point to unique, valid cell references in your current worksheet.
Select the cell containing your SUMPRODUCT formula, press Enter to recalculate, and verify that the #REF! error is resolved.
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. Open your file: Launch WPS Spreadsheet and open the workbook containing the #REF! error.
- 2. Access the Name Manager: Go to the 'Formulas' tab and click on 'Name Manager'.
- 3. Update named ranges: Delete any broken definitions and assign your names to the correct data ranges.
- 4. Verify your calculation: Check your SUMPRODUCT monthly count to ensure the formula now calculates correctly.

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.




