How to Fix DSUM When a Named Range Is Not Recognized in Excel
Question details
The user needs to resolve an issue where the DSUM function fails to recognize a named range, preventing the formula from calculating the sum of a database.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Using the DSUM function with a named range for database calculations.
- Observed behavior
- The DSUM formula fails or returns an error because the specified named range is not recognized, often due to an invalid name, incomplete database range, or mismatched criteria.
Before troubleshooting the DSUM formula, ensure that the workbook containing the named range is currently open and that the named range hasn't been accidentally deleted.
Verify and Update the Named Range in Name Manager
Check if the named range exists, follows Excel naming rules, and refers to the correct database area.
The most common cause for an unrecognized named range is that it was deleted, misspelled in the formula, or violates standard naming conventions.
Go to the 'Formulas' tab on the Excel ribbon and click on 'Name Manager' in the Defined Names group.
Search for the named range used in your DSUM formula (e.g., 'Rawdataupdated'). If it is missing, you will need to recreate it.
Select the named range and look at the 'Refers to' field at the bottom. Ensure it highlights the entire database, including the column headers.
If you need to edit or recreate the name, ensure it starts with a letter or underscore, contains no spaces, and does not conflict with standard cell references.

Match Field Names and Criteria Headers Exactly
Ensure the field and criteria headers exactly match the source database to prevent calculation failures.
Use WPS Spreadsheet to Manage Database Functions Flawlessly
WPS Spreadsheet fully supports advanced database functions like DSUM and provides an intuitive Name Manager to help you organize and apply named ranges without errors.
- 1. Open Your Workbook: Launch WPS Spreadsheet and open your existing database file.
- 2. Define the Range: Navigate to the Formulas tab and click Name Manager to create or verify your database named range.
- 3. Apply DSUM Formula: Type =DSUM() into your target cell, selecting your verified named range, field, and criteria to get instant results.

Frequently Asked Questions
Why does my DSUM formula return a #NAME? error?
A #NAME? error in DSUM usually indicates that Excel cannot find the named range you referenced. Check the Name Manager under the Formulas tab to ensure the name is spelled correctly and exists in the current workbook.
Can I use a dynamic named range with DSUM?
Yes, you can use dynamic named ranges created with OFFSET or INDEX functions as the database argument in a DSUM formula. This ensures the calculation updates automatically as new rows of data are added.
Why does my DSUM formula return 0 instead of the expected sum?
This typically happens if the field name argument does not match any column header in the database, or if the criteria range is set up incorrectly. Double-check that your criteria headers are perfectly identical to your database headers, with no hidden spaces.




