How to Use SUMIF to Add Amounts by Name in Excel
Question details
The user wants to know the correct syntax and argument order for the SUMIF function to calculate total amounts associated with a specific name.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating total sales, expenses, or other amounts assigned to a specific individual in a dataset.
- Observed behavior
- The user needs the correct formula structure to successfully sum values based on a text condition without encountering errors.
Ensure your data is organized in clear columns without merged cells, with one column containing the names and another containing the numeric amounts you want to sum.
Using the SUMIF Function with Text Criteria
Apply the standard SUMIF formula to sum values based on an exact name match.
The SUMIF function evaluates a range of cells against a single criterion and sums the corresponding values in a related range. The correct syntax is =SUMIF(criteria_range, criteria, sum_range).
Click on the cell where you want the total calculated amount to appear.
Type `=SUMIF(` to begin writing the function.
Select the range of cells containing the names (for example, A2:A100), and then type a comma `,`.
Type the specific name enclosed in double quotation marks (for example, `"Carolyn"`), followed by another comma `,`.
Select the range of cells containing the numeric amounts you want to add up (for example, B2:B100).
Type a closing parenthesis `)` and press Enter to calculate the result.

Easily Calculate Data with SUMIF in WPS Spreadsheet
WPS Spreadsheet provides full support for advanced formulas like SUMIF, making it easy to analyze data, calculate totals by name, and manage your finances. It is a highly capable and free alternative that works seamlessly with your existing data.
- 1. Open your dataset: Launch WPS Spreadsheet and open the document containing your names and amounts.
- 2. Access the formula tool: Click on the cell where you want the result, then navigate to the Formulas tab on the top ribbon.
- 3. Insert the SUMIF function: Click 'Insert Function', search for 'SUMIF' in the dialog box, and click OK.
- 4. Fill in the arguments: Use the visual prompt box to select your Range (the names), type your Criteria (e.g., "Carolyn"), and select your Sum_range (the amounts).
- 5. Calculate the total: Click OK to apply the function and instantly view the summed amount.

Frequently Asked Questions
Why is my SUMIF formula returning 0?
A SUMIF formula might return 0 if the text in your criteria doesn't exactly match the text in your criteria range (for instance, due to hidden extra spaces), or if the amounts in your sum range are formatted as text instead of numbers.
Can I use a cell reference instead of typing the name in the SUMIF formula?
Yes. Instead of typing "Carolyn" in the formula, you can click on a cell that contains the name (e.g., D2). The formula would then be =SUMIF(A2:A100, D2, B2:B100). This makes it easier to change the name you are searching for dynamically without editing the formula.
How do I use SUMIF for partial name matches?
You can use wildcard characters like the asterisk (*). For example, to sum amounts for any name starting with "Carol", use the criteria "Carol*". The formula would be =SUMIF(A2:A100, "Carol*", B2:B100).




