How to correct a #VALUE! error in the SUMPRODUCT function

Applies To
Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac

This article covers common scenarios that cause the #VALUE! error when working with SUMPRODUCT.

Problem: The array arguments don't have the same dimension

All of the array arguments should have the same dimension. If they don't, you get the #VALUE! error. For example, if Array 1 refers to a range of three rows and two columns, then Array 2 must also correspond to a similar range.

Screenshot that shows the SUMPRODUCT formula that causes an error is =SUMPRODUCT(D2:D13,E2:E10) - E10 needs to b changed to E13 in order to match the first range.

  • =SUMPRODUCT(D2:D13,E2:E10)

Fails because the referenced ranges don't have the same number of rows (13 in the first range, but only 10 in the second).

Solution: Change the formula to:

  • =SUMPRODUCT(D2:D13,E2:E13)

So that both ranges have the same starting and ending row numbers, and retry the formula.

Screenshot that shows the resolve the #VALUE! error in the data to resolve the SUMPRODUCT error.

Problem: One or more cells in the range contain text

If one or more cells in the referenced range contain text or are formatted as a Text data type, you get the #VALUE! error. The text could be the result of a calculation from another formula, or the cell might not be formatted correctly.

Screenshot that shows the formula in cell E15 shows a #VALUE! errror because there is a #VALUE! error in column E.

Solution: Check for any cell that contains text or is formatted as text and set it to the correct data type.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in Communities.

See also

How to correct a #VALUE! error

SUMPRODUCT function

Overview of formulas in Excel

How to avoid broken formulas in Excel

Detect errors in formulas in Excel

All Excel functions (alphabetical)

All Excel functions (by category)