formulastreak

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.

F2:F13 has 12 rows but G2:G10 only 9 · edit K1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultK1 = #VALUE!
ABCDEFGHIJK
1OrderDateCustomerProductCategoryQtyPriceStatusRevenue#VALUE!
210012 Mar 2026Mara OkaforMonsteraPlants1$34.00Shipped
310022 Mar 2026Jonas LindTerracotta potPots3$12.50Shipped
410033 Mar 2026Priya RamanSnake plantPlants2$22.00Shipped
510044 Mar 2026Tomás RuizWatering canTools1$18.00Pending
610055 Mar 2026Elif DemirFernPlants4$9.50Shipped
710065 Mar 2026Mara OkaforPotting mixSoil2$7.25Returned
810076 Mar 2026Kenji MoriPruning shearsTools1$24.00Shipped
910087 Mar 2026Ines VargaCeramic potPots2$19.00Pending
1010098 Mar 2026Jonas LindMonsteraPlants1$34.00Shipped
1110109 Mar 2026Sofia RossiFernPlants6$9.50Shipped
12101110 Mar 2026Priya RamanPotting mixSoil5$7.25Shipped
13101211 Mar 2026Leo BrandtSnake plantPlants1$22.00Pending

Shows the problem

=SUMPRODUCT(F2:F13,G2:G10)

Fixed

=SUMPRODUCT(F2:F13,G2:G13)

Causes, most likely first

  1. 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)
  2. 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)
  3. 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)
  4. 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.

  5. 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.

Practise this in 5 minutes

SUMPRODUCT is taught in Lesson 49: Summary grids and SUMPRODUCT (Unit 15, Reporting patterns), on a live sheet with instant feedback. Pro

Open “Summary grids and SUMPRODUCT”

Get the formulastreak newsletter

Bite-sized formula tips you can use at work the next day, plus a heads-up when new free tools and lessons land. It arrives now and then, never in a flood.

No spam, unsubscribe in one click. We store your email, this consent and when you gave it. Details in our privacy policy.

Need a quick reference? The formula cheat sheet is free to read and print.