Function Problems

Use SUMIFS in WPS Spreadsheets to Sum Values by Two Criteria

Nimra MalikNimra Malik Nov 12, 2026 869 views

Question details

The user needs to add values from one column only when two other columns meet specified text criteria.

Product
Microsoft Excel or WPS Spreadsheets
Device & OS
not provided
Scenario
Records must be filtered by a word in one column and another word in a second column before values in a third column are totaled.
Observed behavior
The required result is a single sum based on two matching conditions, without using nested XLOOKUP formulas.
Before you start

Identify the column containing the values to add and the two columns containing the criteria. Confirm that the criteria cells, such as D451 and B451, contain the exact text you want to match.

Solution 1Recommended

Use SUMIFS to sum values that match two criteria

Use this formula when one value column must be totaled only for rows matching criteria in two separate columns.

SUMIFS uses the syntax SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2). The sum range and each criteria range must cover the same rows.

1
Select the result cell

Open the worksheet in WPS Spreadsheets and click the cell where you want the conditional total to appear.

2
Enter the SUMIFS formula

Type =SUMIFS($Z:$Z,$E:$E,D451,$B:$B,B451), using column Z for values to add, column E for the first condition, and column B for the second condition.

3
Adjust the references

Replace $Z:$Z, $E:$E, $B:$B, D451, and B451 with the actual sum range, criteria ranges, and criteria cells in your worksheet.

4
Confirm the formula

Press Enter to calculate the total. The result includes only rows where both criteria match their corresponding cells.

Use matching-sized ranges: For better performance in large worksheets, use bounded ranges such as $Z$2:$Z$1000 instead of entire-column references, and make sure all ranges begin and end on the same rows.

Calculate Two-Criteria Totals with SUMIFS in WPS Spreadsheets

WPS Spreadsheets lets you enter SUMIFS formulas to total values that meet multiple conditions, with a familiar spreadsheet interface and strong Microsoft Excel file compatibility.

  1. 1. Open your spreadsheet: Launch WPS Office, choose Spreadsheets, and open the workbook containing your records.
  2. 2. Select the result cell: Click the cell where the two-criteria total should appear.
  3. 3. Enter the formula: Type =SUMIFS($Z:$Z,$E:$E,D451,$B:$B,B451), then replace the sample references with your actual ranges and criteria cells.
  4. 4. Confirm and review: Press Enter and check that the returned total includes only rows meeting both conditions.
Create two-condition totals without nested lookup formulas.Use cell references or fixed text criteria in SUMIFS.Work with Microsoft Excel .xlsx files while preserving familiar formulas.Use a lightweight spreadsheet editor for everyday data analysis.
microsoft office alternative - wps office

Frequently Asked Questions

What does the SUMIFS formula do with two criteria?

SUMIFS adds numbers from a sum range only when every supplied condition is met. For example, =SUMIFS($Z:$Z,$E:$E,D451,$B:$B,B451) checks columns E and B before adding values from column Z.

Can I use words directly instead of cell references in SUMIFS?

Yes. Put text criteria in quotation marks, such as =SUMIFS($Z$2:$Z$1000,$E$2:$E$1000,"North",$B$2:$B$1000,"Completed").

Why does SUMIFS return zero?

Check that the criteria text matches the worksheet values, including spelling and extra spaces, and confirm that the sum range and criteria ranges have the same dimensions.

Should I use whole-column references in a large workbook?

Whole-column references such as $Z:$Z are convenient, but bounded ranges such as $Z$2:$Z$1000 can improve calculation performance in large WPS Spreadsheets or Excel workbooks.