Use Excel SUMIFS to Filter Two Columns and Total a Third
Question details
Total amounts in one column only when a name and a status in two other columns both match specified criteria.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains amounts, names, and statuses in separate columns, and the user wants a conditional total.
- Observed behavior
- The desired total includes only rows where both the name and status match the specified values.
Check the worksheet name and identify the amount, name, and status columns. In the example below, the sheet is named Individual YTD, with amounts in column B, names in column D, and statuses in column E.
Use SUMIFS to match a name and status
Use SUMIFS when each row must meet both conditions before its amount is included.
In Excel, click the empty cell where you want the conditional total to appear.
Type =SUMIFS('Individual YTD'!B:B,'Individual YTD'!D:D,"Name",'Individual YTD'!E:E,"Lost") into the cell or formula bar.
Replace "Name" with the name you want to match and "Lost" with the desired status. Adjust the sheet name and column references if your data is arranged differently.
Press Enter. Excel adds the amounts in column B only for rows where column D matches the name and column E matches the status.

Calculate a two-condition total in WPS Spreadsheet
Use SUMIFS in WPS Spreadsheet to total amounts only when both the name and status match your criteria.
- 1. Open your workbook: Open WPS Spreadsheet and select Open to load your Excel workbook.
- 2. Choose a result cell: Click an empty cell where you want the total to appear.
- 3. Enter the formula: In the cell or formula bar, type =SUMIFS('Individual YTD'!B:B,'Individual YTD'!D:D,"Name",'Individual YTD'!E:E,"Lost"). Replace the sheet name, columns, and criteria as needed.
- 4. Calculate: Press Enter to display the total for rows matching both criteria.

Frequently Asked Questions
What is the difference between SUMIF and SUMIFS?
SUMIF evaluates one condition, while SUMIFS can evaluate multiple conditions. For a name and status, use SUMIFS with the amount range first, followed by each criteria range and criterion.
Can I use cells for the name and status criteria?
Yes. If the name is in H2 and the status is in I2, use =SUMIFS('Individual YTD'!B:B,'Individual YTD'!D:D,H2,'Individual YTD'!E:E,I2).
Why does SUMIFS return zero when I expect a total?
Check that the name and status match the source cells, including any extra spaces, and that the amounts are stored as numbers. Also verify that the formula references the correct sheet and columns.
Can I limit the formula to a specific range of rows?
Yes. For example, use =SUMIFS('Individual YTD'!B2:B100,'Individual YTD'!D2:D100,"Name",'Individual YTD'!E2:E100,"Lost"). Keep all ranges the same size and aligned to the same rows.




