How to Sum US Dollar Values by Mapping Name in Excel
Question details
The user needs to calculate the total of US dollar values associated with a specific mapping name or category.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Aggregating financial data or expenses based on a matching category or mapping name located in a separate column.
- Observed behavior
- The goal is to accurately sum currency values based on criteria using formula functions, avoiding calculation errors caused by manually typed dollar signs.
Ensure that your US dollar values are stored as actual numbers with a currency format applied, rather than text strings containing manually typed dollar signs or commas.
Use the SUMIF Function to Total Values
The SUMIF function is the most straightforward method to sum values in a range that meet a single specific criterion, such as a mapping name.
The SUMIF function checks a criteria range for a specific value and then sums the corresponding cells in a secondary range.
Click on the blank cell where you want the total sum to appear.
Type the formula =SUMIF(E2:E15, "ADMINISTRATIVE EXPENSES", D2:D15) into the cell. Replace E2:E15 with the range containing your mapping names, "ADMINISTRATIVE EXPENSES" with the specific name you want to match, and D2:D15 with the range containing your numeric dollar amounts.
Press the Enter key to execute the formula and display your total.

Use the SUMPRODUCT Function as an Alternative
SUMPRODUCT can also be used to sum values based on a condition, which is particularly useful if you need to build more complex array formulas later.
Sum Data by Category Easily in WPS Office
WPS Office provides powerful spreadsheet functions that are fully compatible with Excel, including SUMIF and SUMPRODUCT, helping you manage financial records and map data seamlessly.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your workbook containing the mapping names and dollar values.
- 2. Apply the SUMIF formula: Select a blank cell and enter your =SUMIF() formula, referencing your mapping name column and dollar value column.
- 3. Format as Currency: Select your numerical values, right-click to choose 'Format Cells', and select 'Currency' to ensure accurate mathematical calculations.

Frequently Asked Questions
Why is my SUMIF formula returning zero even though the mapping name exists?
This usually happens if the US dollar values were entered manually with a dollar sign ($) or commas, converting them into text strings. To fix this, remove the typed symbols, ensure the cells contain raw numbers, and apply the Currency format from the cell formatting menu.
Can I reference a cell instead of typing the mapping name inside the formula?
Yes, instead of hardcoding 'ADMINISTRATIVE EXPENSES' inside the formula, you can click on a cell containing that text (e.g., =SUMIF(E2:E15, F2, D2:D15)). This makes your formula dynamic, updating automatically if the cell value changes.
How do I sum dollar values using multiple mapping conditions?
If you need to sum values based on more than one mapping name or condition, use the SUMIFS function instead of SUMIF. SUMIFS allows you to specify multiple criteria ranges and corresponding criteria.




