Function Problems

Sum Values with Multiple Criteria Using Excel SUMIFS

Natalie TaylorNatalie Taylor Nov 18, 2026 870 views

Question details

Sum values in one column when a name matches and a number in another column falls within an inclusive range.

Sum Values with Multiple Criteria Using Excel SUMIFS
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user wants to total values on Sheet1 for a name listed on Sheet2, including only rows with numbers from 70 through 74.
Observed behavior
The desired result is a total of matching values, including rows where the number is exactly 70 or 74.
Before you start

Confirm that Sheet1 column A contains names, column D contains values to sum, and column Z contains numeric criteria. Put the name to match in Sheet2 cell A3, or adjust the formula to match your workbook.

Solution 1Recommended

Use SUMIFS to match a name and an inclusive numeric range

Apply a name criterion and separate lower and upper bounds to sum qualifying rows.

1
Select the result cell

Open Sheet2 and select an empty cell, such as B3.

2
Enter the formula

Type =SUMIFS(Sheet1!$D:$D,Sheet1!$A:$A,Sheet2!$A3,Sheet1!$Z:$Z,">=70",Sheet1!$Z:$Z,"<=74") and press Enter.

3
Check the total

Review the result in B3. Excel adds values from Sheet1 column D only when the name in column A matches Sheet2!A3 and the number in column Z is between 70 and 74, inclusive.

Use SUMIFS to match a name and an inclusive numeric range
Copy the formula for other names: Drag the fill handle down from B3 to calculate totals for names in subsequent rows of Sheet2. If no rows match, SUMIFS returns 0.
WPS Spreadsheets

Calculate the same SUMIFS total in WPS Spreadsheets

Use SUMIFS in WPS Spreadsheets to total values by name and an inclusive numeric range across sheets.

  1. 1. Open the workbook: Open your Excel workbook in WPS Spreadsheets and check the names and values on Sheet1.
  2. 2. Select a result cell: On Sheet2, enter the name to match in A3 and select an empty cell such as B3.
  3. 3. Enter SUMIFS: In B3, enter =SUMIFS(Sheet1!$D:$D,Sheet1!$A:$A,Sheet2!$A3,Sheet1!$Z:$Z,">=70",Sheet1!$Z:$Z,"<=74") and press Enter.
  4. 4. Save the result: Check the total, then use File > Save or Save As to save the workbook.
Apply multiple SUMIFS criteria in one formulaOpen and save Microsoft Excel XLSX filesUse a familiar spreadsheet interfaceWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Does the formula include 70 and 74?

Yes. The criteria ">=70" and "<=74" include both endpoints. Use ">70" and "<74" if you want to exclude them.

Why does SUMIFS return 0?

SUMIFS returns 0 when no rows meet all criteria. Check the name in Sheet2!A3, the numbers in Sheet1 column Z, and the values in column D.

Can I put the range limits in cells?

Yes. If the lower and upper limits are in Sheet2 cells C3 and D3, replace the fixed criteria with ">="&Sheet2!C3 and "<="&Sheet2!D3 in the SUMIFS formula.

Can I use a smaller range instead of entire columns?

Yes. Replace the full-column references with equally sized ranges, such as Sheet1!$D$2:$D$1000, Sheet1!$A$2:$A$1000, and Sheet1!$Z$2:$Z$1000.