Function Problems

Simplify SUMIFS for Multiple Products and Prices in WPS Office Spreadsheets

Chanuka GeekiyanageChanuka Geekiyanage Nov 13, 2026 869 views

Question details

The user needs a compact Excel/WPS formula to sum prices for one or more products when the price must be 20 or 50, without writing several SUMIFS formulas.

Simplify SUMIFS for Multiple Products and Prices in WPS Office Spreadsheets
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
A product and price table contains products in column A and prices in column B, and the user wants totals for selected products with prices of 20 or 50.
Observed behavior
Manually adding multiple SUMIFS formulas is repetitive, long, and harder to maintain when criteria change.
Before you start

Confirm that product names in column A and prices in column B are clean and consistent: no extra spaces, no text-formatted numbers, and no merged cells inside the data range, because SUMIFS criteria must match exactly.

Solution 1Recommended

Use SUM(SUMIFS(...)) with array constants for one or more products

Best when you want a single compact formula that totals Product A alone or Products A and B together for prices 20 or 50.

Wrapping SUMIFS in SUM lets WPS Spreadsheets evaluate the array criteria and return one grand total without stacking separate SUMIFS formulas.

1
Select the result cell

Click an empty cell where you want the total to appear in WPS Spreadsheets.

2
Enter the single-product formula

Type =SUM(SUMIFS(B2:B12,A2:A12,"Product A",B2:B12,{20,50})) and press Enter.

3
Enter the multi-product formula when needed

Type =SUM(SUMIFS(B2:B12,A2:A12,{"Product A","Product B"},B2:B12,{20,50})) and press Enter to total Products A and B together.

4
Adjust ranges and criteria

Replace B2:B12, A2:A12, the product names, and {20,50} with your actual data range and target values.

Use SUM(SUMIFS(...)) with array constants for one or more products
Compact formula result: The returned total matches the value you would get by adding separate SUMIFS formulas for each product and price combination.
WPS Spreadsheets solution

Simplify SUMIFS array formulas in WPS Office Spreadsheets

Use one SUM(SUMIFS(...)) array-constant formula in WPS Office Spreadsheets to total prices for multiple products and price values such as 20 or 50, without stacking multiple SUMIFS formulas.

  1. 1. Open WPS Spreadsheets: Launch WPS Office and open the .xlsx workbook that contains products in column A and prices in column B.
  2. 2. Click the target cell: Select an empty cell where you want the compact SUMIFS total to appear.
  3. 3. Enter the compact formula: Type =SUM(SUMIFS(B2:B12,A2:A12,"Product A",B2:B12,{20,50})) and press Enter, replacing the range and criteria with your data.
  4. 4. Extend for multiple products: Use {"Product A","Product B"} as the product criteria when you need both products in the same formula.
  5. 5. Verify the total: Compare the result with a manual sum or filtered selection to confirm the compact formula returns the expected total.
Replace multiple SUMIFS formulas with one compact SUM(SUMIFS(...)) expressionHandle one or more product criteria and price values such as 20 or 50Full .xlsx and .xls compatibility with Microsoft Excel filesFree, familiar spreadsheet interface in WPS OfficeNo VBA or helper columns required
microsoft office alternative - wps office

Frequently Asked Questions

How do I sum Product A prices that are 20 or 50 in WPS Spreadsheets?

Click an empty cell and enter =SUM(SUMIFS(B2:B12,A2:A12,"Product A",B2:B12,{20,50})), then press Enter. Adjust B2:B12 and A2:A12 to match your data.

Can I use one SUMIFS formula to total multiple products at once?

Yes. Use an array constant for the product criteria: =SUM(SUMIFS(B2:B12,A2:A12,{"Product A","Product B"},B2:B12,{20,50})).

Do I need to press Ctrl+Shift+Enter for this SUM(SUMIFS(...)) formula?

In WPS Spreadsheets and modern Excel versions, normal Enter is usually enough because SUM aggregates the array result. If your version does not calculate correctly, press Ctrl+Shift+Enter to enter it as an array formula.

Why does my SUM(SUMIFS(...)) formula return 0 or an error?

Check that product names match exactly, prices are numeric rather than text, and your regional settings use commas or semicolons correctly for list separators.