How to Use Excel SUMIFS Formula to Total Amounts by Account Number
Question details
The user needs to calculate the total transaction amounts associated with specific account numbers when the account numbers and transaction amounts are stored in separate columns.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Summarizing financial or transaction data by specific account numbers for reporting or analysis purposes.
- Observed behavior
- The user requires a formula or method to conditionally sum values from an amount column based on matching criteria in an account number column.
Ensure that your account numbers and transaction amounts are organized in separate columns, and verify that there are no merged cells within your data ranges to ensure accurate formula calculations.
Calculate Totals Using the SUMIFS Function
The standard and most efficient method for summing values conditionally based on specific account numbers.
The SUMIFS function adds all arguments that meet multiple criteria. Even with a single criterion like an account number, SUMIFS is highly recommended for its flexibility.
Locate the column containing your account numbers (e.g., Column H) and the column containing your transaction amounts (e.g., Column I).
Click on an empty cell where you want the total to appear (e.g., C2), ideally next to the specific account number you want to summarize (e.g., in B2).
Type the formula =SUMIFS(I:I,H:H,B2) and press Enter. This tells Excel to sum values in column I where column H matches the value in cell B2.
Click the small square at the bottom-right corner of the cell containing your formula and drag it down to calculate totals for other account numbers in your list.

Summarize Amounts Using a PivotTable
An excellent alternative when you need a quick overview of all account totals without writing any formulas.
Effortlessly Summarize Data with WPS Spreadsheet
WPS Spreadsheet provides powerful data analysis tools, fully supporting standard Excel functions like SUMIFS and dynamic arrays to help you summarize account data quickly and accurately.
- 1. Open your data file: Launch WPS Spreadsheet and open the document containing your transaction data.
- 2. Select the result cell: Click the cell where you wish to calculate the total for a specific account.
- 3. Input the formula: Type =SUMIFS( and select your sum range (amounts), criteria range (account numbers), and your specific account number cell.
- 4. Calculate: Press Enter to instantly view your calculated total, and drag the fill handle to apply it to other accounts.

Frequently Asked Questions
Can I use SUMIF instead of SUMIFS for a single account number condition?
Yes, if you only have one condition, both SUMIF and SUMIFS will work. However, SUMIFS is generally recommended as best practice because the syntax order allows you to easily add more conditions later without rewriting the entire formula.
Why is my SUMIFS formula returning 0 instead of the actual total?
This typically happens if the data types don't match. For example, your account numbers might be stored as text in the data column but as numbers in your criteria cell. Check for leading or trailing spaces, and ensure both ranges share the same cell formatting.
How do I use SUMIFS with partial account numbers?
You can use wildcard characters in your criteria. For example, if you want to sum amounts for all accounts starting with '100', you can use the formula =SUMIFS(I:I,H:H,"100*"). The asterisk (*) represents any sequence of characters.




