SUMPRODUCT Function in WPS Spreadsheet: Formula, Examples & Troubleshooting
Learn the SUMPRODUCT formula in WPS Spreadsheet: multiply aligned values row by row and sum the results, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: SUMPRODUCT multiplies corresponding numeric entries and adds the products. It is useful for weighted totals, explicit numeric inclusion masks and multi-array calculations, provided the ranges have matching shapes and aligned records.
Availability and version history
- Introduced: documented by 2020-09-18 in WPS Academy; original introduction is not established.
- Availability: The historical article does not specify an edition. Current function-specific documentation covers WPS on Windows.
- Scope: exact supported build ranges and equivalent behavior in other WPS clients remain unverified.
- Checked: October 14, 2026. Product-specific references and independent arithmetic/text models; no native WPS execution.
Syntax and arguments
=SUMPRODUCT(array1, [array2], ...)
Supply one or more arrays or ranges. The current Windows reference describes corresponding-element multiplication followed by addition, and the historical Academy article requires the arrays to have the same dimensions. The controls use actual numbers. No maximum argument count or complete mixed-data coercion table is established here.
Examples use English function names and comma argument separators; adapt separators for the workbook locale. Expected results are independent calculations, not captured application output.
Set up the original controls
Keep the original A1:F9 transaction fixture below. Amount is the original column label; multiplying it by Units is an arithmetic demonstration, not proof that Amount is a unit price or that the result is valid revenue.
| Row | A · Item | B · Team | C · Status | D · Amount | E · Units | F · Agent |
|---|---|---|---|---|---|---|
| 1 | Item | Team | Status | Amount | Units | Agent |
| 2 | Pen | East | Paid | 120 | 12 | Ana |
| 3 | Pad | West | Pending | 75 | 5 | Bo |
| 4 | Box | East | Paid | 210 | 7 | Ana |
| 5 | Tape | North | Paid | 90 | 0 | Cy |
| 6 | Folder | West | Paid | 150 | 3 | Bo |
| 7 | Pen | East | Pending | 60 | 8 | Dee |
| 8 | Pad | West | Paid | 125 | 12 | Ana |
| 9 | Box | North | Pending | 80 | 4 | Cy |
Example 1: original control
=SUMPRODUCT(D2:D9,E2:E9)
Expected result: 6035. The eight amount×unit products add to 6035.
Example 2: original comparison
=SUMPRODUCT(D2:D4,E2:E4)
Expected result: 3285. First three products are 1440+375+1470 = 3285.
Example 3: inspect every original product
The eight products from D2:D9 and E2:E9 are 1440, 375, 1470, 0, 450, 480, 1500 and 320. Their total is 6035, and the first three total 3285.
For an audit, put =D2*E2 in G2 and copy it through G9, then sum G2:G9. The expected total is the same. This helper-column method reveals an incorrect pairing or unexpected data type before it is hidden inside one result.
Advanced example: calculate a real weighted unit price
Create a separate fixture in J2:K4:
| Row | J: unit price | K: quantity |
|---|---|---|
| 2 | 2.5 | 4 |
| 3 | 4 | 3 |
| 4 | 6 | 2 |
=SUMPRODUCT(J2:J4,K2:K4)
=SUMPRODUCT(J2:J4,K2:K4)/SUM(K2:K4)
Expected results are 34 and 3.777778, with the second displayed to six decimal places. Products are 10, 12 and 12; total quantity is 9. Keep the unrounded quotient for subsequent calculations.
The simple average of the three prices is 4.166667. It gives each row equal weight rather than each purchased unit. Neither average is universally preferable; the interpretation follows the weighting question.
Advanced example: use explicit numeric inclusion flags
For the same three rows, put 1, 0 and 1 in L2:L4. Then:
=SUMPRODUCT(J2:J4,K2:K4,L2:L4)
Expected result: 22, from 10 + 0 + 12. These are deliberately typed numeric flags, so the example does not depend on unverified Boolean or text conversion rules.
Changing the middle flag to 1 restores 34. Setting it to 2 gives 46, because it doubles that row’s contribution. A flag column intended as a yes/no policy therefore needs validation to zero or one; SUMPRODUCT cannot distinguish a deliberate weight from an accidental flag of 2.
Advanced example: same shape does not guarantee correct alignment
Reverse only the quantity column to 2, 3 and 4 while leaving prices unchanged. The new products are 5, 12 and 24, for a total of 41.
Both ranges still have three rows, so a dimension check cannot detect the lost price/quantity relationship. Sort entire records together, and inspect row keys when combining imported ranges.
Restore the original quantities before rechecking the 34 total. Do not repair a misaligned calculation by changing the expected answer.
Advanced example: signed adjustments and zero denominators
With quantities 4, -1 and 2, the product total is 18: 10 - 4 + 12. Signed arithmetic can represent an explicitly defined adjustment, but negative weights should not silently be interpreted as ordinary purchased-unit weighting.
For a weighted-average formula, inspect the total weight separately. All-zero quantities make the denominator zero. Report that the weighted average is undefined for that input instead of presenting a fallback zero as a measured average.
Data types, dimensions and source scope
The current WPS FAQ recommends checking range dimensions and unusable cell content when #VALUE! appears, and checking numeric-looking text when a result is unexpected. It does not establish every exact error or coercion outcome.
The current introduction includes an Excel comparison that mentions nonnumeric values being treated as zero. That is not adopted as a WPS rule. Empty cells, numeric text, Boolean arrays, mixed errors, implicit array broadcasting and maximum range limits remain outside the certified examples.
The 2020 Academy article describes logical-array conditions, but these worked masks use explicit numeric values so their multiplication is transparent. For criteria matching, SUMIF and SUMIFS have separate product-specific guides.
Related guides and verification
Microsoft Excel | Google Sheets | LibreOffice Calc | Apache OpenOffice Calc | Zoho Sheet
- WPS Academy: SUMPRODUCT, 2020-09-18 (Chinese).
- Current Windows introduction.
- Current Windows faq.
- Editorial testing standards.
Evidence level: Complete article and product-specific references reviewed. Original title, publication date, two worked formulas and input fixtures are preserved. Additional calculations and displayed strings are independently modeled; native precision, performance and workbook interchange have not been tested.