Sum All Matching Values in Excel with SUMIFS or FILTER
Question details
Sum transaction amounts across all rows that match a specified name.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains multiple transactions for the same name, and the user wants their combined amount.
- Observed behavior
- XLOOKUP returns only one matching result rather than adding all matching rows.
Check that the Cash Out sheet has names in A72:A138 and numeric amounts in C72:C138. If your data is elsewhere, adjust both ranges so they cover the same rows.
Use SUMIFS to add all matching transactions
Use SUMIFS when you want a total for a name without listing the individual matching rows.
In Excel, click the cell where you want the total to appear.
Type =SUMIFS('Cash Out'!C72:C138,'Cash Out'!A72:A138,"Royal Mail") and press Enter.
Replace "Royal Mail" with another name, or replace it with a cell reference such as E2. Adjust the sheet name and ranges if your data is in different locations.

Use SUM with FILTER to add matching values
Use this option in Microsoft 365 when you want to filter matching amounts and sum the results.
Sum Matching Transactions in WPS Spreadsheets
Use SUMIFS in WPS Spreadsheets to total every amount associated with a name in your worksheet.
- 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Select the result cell: Click the cell where you want to display the transaction total.
- 3. Enter SUMIFS: Enter =SUMIFS('Cash Out'!C72:C138,'Cash Out'!A72:A138,"Royal Mail") and press Enter. Change the ranges and name to match your data.
- 4. Save the workbook: Use File > Save or Save As to save the updated workbook.

Frequently Asked Questions
Why doesn't XLOOKUP add every matching row?
XLOOKUP returns a matching result rather than automatically summing all matches. Use SUMIFS with the amount range, name range, and desired name to calculate the total.
Can I use a cell instead of typing the name in the formula?
Yes. If the name is in E2, use =SUMIFS('Cash Out'!C72:C138,'Cash Out'!A72:A138,E2). Changing E2 updates the total.
Why does SUMIFS return zero?
Zero can mean there are no matching names, the matching amounts total zero, or amounts are stored as text. Check the spelling in the name range and verify that the amount cells contain numbers.
Can I sum matches using more than one condition?
Yes. Add another criteria range and criterion to SUMIFS. For example, add a date range and date condition after the name criterion to restrict the total to certain transactions.




