Function Problems

Sum All Matching Values in Excel with SUMIFS or FILTER

Rana GarciaRana Garcia Dec 2, 2026 868 views

Question details

Sum transaction amounts across all rows that match a specified name.

Sum All Matching Values in Excel with SUMIFS or FILTER
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.
Before you start

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.

Solution 1Recommended

Use SUMIFS to add all matching transactions

Use SUMIFS when you want a total for a name without listing the individual matching rows.

1
Select a result cell

In Excel, click the cell where you want the total to appear.

2
Enter the SUMIFS formula

Type =SUMIFS('Cash Out'!C72:C138,'Cash Out'!A72:A138,"Royal Mail") and press Enter.

3
Adapt the criteria

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 SUMIFS to add all matching transactions
When there are no matches: SUMIFS returns 0 when no rows meet the specified criterion.
WPS Spreadsheets

Sum Matching Transactions in WPS Spreadsheets

Use SUMIFS in WPS Spreadsheets to total every amount associated with a name in your worksheet.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 2. Select the result cell: Click the cell where you want to display the transaction total.
  3. 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. 4. Save the workbook: Use File > Save or Save As to save the updated workbook.
Add multiple transactions for the same name with SUMIFSOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

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.