SUMPRODUCT #VALUE! error: why it happens and how to fix it
Updated · Checked on a live sheet · Excel and Google Sheets
The most likely fix
Make every range in SUMPRODUCT start and end on the same rows: SUMPRODUCT(F2:F13, G2:G13), not G2:G10. Microsoft's SUMPRODUCT page: if the arrays don't have the same dimensions, SUMPRODUCT returns #VALUE!.
Fix it yourself
The formula in K1 shows the problem. Edit it to the fixed version and watch the sheet recalculate.
| A | B | C | D | E | F | G | H | I | J | K | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | Date | Customer | Product | Category | Qty | Price | Status | Revenue | #VALUE! | |
| 2 | 1001 | 2 Mar 2026 | Mara Okafor | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 3 | 1002 | 2 Mar 2026 | Jonas Lind | Terracotta pot | Pots | 3 | $12.50 | Shipped | |||
| 4 | 1003 | 3 Mar 2026 | Priya Raman | Snake plant | Plants | 2 | $22.00 | Shipped | |||
| 5 | 1004 | 4 Mar 2026 | Tomás Ruiz | Watering can | Tools | 1 | $18.00 | Pending | |||
| 6 | 1005 | 5 Mar 2026 | Elif Demir | Fern | Plants | 4 | $9.50 | Shipped | |||
| 7 | 1006 | 5 Mar 2026 | Mara Okafor | Potting mix | Soil | 2 | $7.25 | Returned | |||
| 8 | 1007 | 6 Mar 2026 | Kenji Mori | Pruning shears | Tools | 1 | $24.00 | Shipped | |||
| 9 | 1008 | 7 Mar 2026 | Ines Varga | Ceramic pot | Pots | 2 | $19.00 | Pending | |||
| 10 | 1009 | 8 Mar 2026 | Jonas Lind | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 11 | 1010 | 9 Mar 2026 | Sofia Rossi | Fern | Plants | 6 | $9.50 | Shipped | |||
| 12 | 1011 | 10 Mar 2026 | Priya Raman | Potting mix | Soil | 5 | $7.25 | Shipped | |||
| 13 | 1012 | 11 Mar 2026 | Leo Brandt | Snake plant | Plants | 1 | $22.00 | Pending |
Shows the problem
=SUMPRODUCT(F2:F13,G2:G10)Fixed
=SUMPRODUCT(F2:F13,G2:G13)Causes, most likely first
1Ranges of different sizes
SUMPRODUCT multiplies the ranges row by row, so they need the same number of rows and columns. Microsoft's troubleshooting page uses
=SUMPRODUCT(D2:D13,E2:E10)as the example. Here F2:F13 has 12 rows and G2:G10 nine. With matching ranges the total revenue appears: $397.25.Wrong
=SUMPRODUCT(F2:F13,G2:G10)Fixed
=SUMPRODUCT(F2:F13,G2:G13)2Text inside a multiplication
Microsoft's two pages describe text differently, and both matter. The SUMPRODUCT function page says non-numeric entries are treated as zeros, which is what happens when the ranges are separate arguments: a price typed as “n/a” just counts as 0 and lowers the total without a warning. The troubleshooting page says text in the range gives #VALUE!, which is what you get when the ranges are multiplied inside the formula,
SUMPRODUCT(F2:F13*G2:G13): text times a number is #VALUE!. Find the text cell with ISTEXT and fix the data.Wrong
=SUMPRODUCT(F2:F13*G2:G13)Fixed
=SUMPRODUCT(F2:F13,G2:G13)3Conditions that compare text
Conditions like
(B2:B17="North")are fine: they produce TRUE/FALSE, which become 1 and 0 when multiplied. The problem is multiplying the text column itself,B2:B17*E2:E17. Compare first, then multiply:SUMPRODUCT((B2:B17="North")*E2:E17).Wrong
=SUMPRODUCT(B2:B17*E2:E17)Fixed
=SUMPRODUCT((B2:B17="North")*E2:E17)4Whole-column references
SUMPRODUCT(A:A, B:B)isn't an error, but Microsoft advises against full column references for performance: it multiplies over a million rows. Use the real data range.5An error value inside a range
Any error in a range SUMPRODUCT reads, for example #N/A from a lookup column, comes through as the result. That isn't SUMPRODUCT's fault: fix the column that produces the error, or wrap only that column's formula in IFNA so it returns 0 for missing values. Check with
COUNTIF(G2:G13, "#N/A")or by sorting the column.
Stop it happening again
Write every range in a SUMPRODUCT with the same first and last row, and change them together when the data grows. Before relying on a total, check the columns for text with ISTEXT or COUNTA minus COUNT, which counts the non-numbers. Prefer separate arguments (SUMPRODUCT(F2:F13, G2:G13)) when you only multiply columns, and use multiplication inside only for conditions. For totals with simple conditions, SUMIFS is faster and easier for others to read; keep SUMPRODUCT for the weighted sums and calculated conditions it's good at.
Questions
Why is my SUMPRODUCT total lower than expected but not an error?
A text value in one of the ranges counts as zero when the ranges are separate arguments, so that row adds nothing. Find it with =ISTEXT(G5) or by checking COUNT(G2:G13) against the number of rows.
SUMPRODUCT or SUMIFS?
SUMIFS for plain conditions: it's faster and easier to read. SUMPRODUCT when a condition needs a calculation (a month from a date, an OR across columns) or for weighted sums.
Do whole columns cause #VALUE!?
Not by themselves, as long as every range is a whole column (A:A with B:B). Mixing a whole column with a bounded range (A:A with B2:B13) is a size mismatch and gives #VALUE!. Microsoft advises against whole columns in SUMPRODUCT anyway, for speed.
In Google Sheets
Google Sheets' SUMPRODUCT works the same way: the ranges must be the same size, and conditions multiplied inside it become 1s and 0s. We haven't found a Google page that says how Sheets treats text cells inside SUMPRODUCT, so check text cells with ISTEXT before relying on the total there.
Why this happens
SUMPRODUCT is array maths written as one function: it lines up the ranges, multiplies each row, and adds the products. Anything that stops the rows lining up, or puts text into the multiplication, breaks it. For plain conditions SUMIFS is faster and clearer; SUMPRODUCT earns its place for weighted sums and conditions with calculations. See SUMPRODUCT and summary grids and the #VALUE! error page.
Sources
Official documentation the facts on this page were checked against.