SUMPRODUCT Excel Not Working? Fix Common Errors

Errors & fixes · Updated November 2, 2026

SUMPRODUCT Excel Not Working? Fix Common Errors

If SUMPRODUCT is not working, first check that every range has the same number of rows and columns, then look for errors, text stored as numbers, or criteria that do not match the data. In Microsoft Excel for Microsoft 365 on Windows, testing the formula with one condition at a time is often the quickest way to find the cause.

What SUMPRODUCT does

SUMPRODUCT multiplies corresponding items in one or more arrays and adds the products. It is commonly used to calculate totals such as quantity multiplied by price, or to add values only when several conditions are met. Unlike a formula entered as a traditional array formula, SUMPRODUCT normally works by itself; you do not need to press Ctrl+Shift+Enter.

For a basic example, suppose A2:A5 contains quantities 2, 3, 4, and 5, while B2:B5 contains unit prices 10, 12, 8, and 6. With quantities in A2:A5 and prices in B2:B5, enter =SUMPRODUCT(A2:A5,B2:B5). The result is 118: 2×10 + 3×12 + 4×8 + 5×6.

The function can also combine conditions with values. That flexibility is useful, but it makes a formula sensitive to range sizes, data types, and the exact logic of each condition. A formula that looks plausible can return zero or an error if one of those pieces is off.

Check range sizes and references first

Each array used in a SUMPRODUCT calculation should have matching dimensions. For example, a range with five rows cannot be paired with one that has four. Excel commonly reports #VALUE! when arrays in the calculation have incompatible dimensions.

Check the first and last row of every referenced range. If the data runs from row 2 through row 100, using A2:A100 in one part and B2:B99 in another leaves the arrays misaligned. Also look for an accidental reference to a header row in just one range. When copying a formula, confirm that relative references have not shifted unexpectedly; use dollar signs for references that should stay fixed when copied.

Avoid using entire-column references in complex SUMPRODUCT formulas when a realistic data boundary is available. A calculation over a million rows can be needlessly slow. Use a consistent range that covers the actual records, or use an Excel Table so references can expand as rows are added. Table references can make formulas easier to maintain, though the formula still needs logically compatible arrays.

Debug criteria and multiplication logic

In a conditional SUMPRODUCT formula, a comparison such as “region equals East” produces TRUE or FALSE values. Multiplying conditions converts TRUE to 1 and FALSE to 0, so only rows that satisfy every condition contribute to the total. If no row satisfies all conditions, the result is zero; that may be correct even when each condition matches some rows individually.

Suppose A2:A6 contains East, East, West, East, West; B2:B6 contains Tea, Tea, Tea, Coffee, Tea; and C2:C6 contains 12, 8, 10, 15, 7. With regions in A2:A6, products in B2:B6, and amounts in C2:C6, use =SUMPRODUCT((A2:A6="East")*(B2:B6="Tea")*C2:C6). The result is 20, from the two East-and-Tea rows: 12 + 8.

If that formula returns zero unexpectedly, check the source values for extra spaces, different spelling, or a different data type. “East ” with a trailing space is not an exact match for “East.” A useful debugging approach is to temporarily evaluate one condition at a time, or filter the source data to see whether any records meet all conditions together.

For a count rather than a sum, the same condition logic can work without a values range. With regions in A2:A6 and amounts in C2:C6, the formula =SUMPRODUCT((A2:A6="East")*(C2:C6>10)) returns 1 for the sample data: only the East row with amount 12 is greater than 10. This is a count of matching rows, not a count of unique values.

Find text values, blanks, and numbers stored as text

Cells that look numeric may actually contain text, often because data was imported from another system or entered with an apostrophe. This can cause arithmetic expressions to behave differently from what you expect. In SUMPRODUCT, nonnumeric entries supplied directly as array arguments are treated as zero, but calculations performed on text values can produce an error or fail to match the intended result.

Check a suspicious cell by selecting it and examining its alignment and number format, but do not rely on appearance alone: formatting can make text look like a number. You can also test a small sample with Excel’s ISNUMBER function. To repair a whole imported column, select the affected cells and use Data > Text to Columns, then complete the wizard with the appropriate settings. Make a copy first if the data has important formatting or mixed content.

Blanks are another source of confusion. A blank amount contributes nothing to a total, but a condition that tests for an empty cell may match both truly empty cells and cells containing a formula that returns an empty string, depending on the comparison used. If blank handling matters, inspect the underlying cells and decide whether a formula-generated empty string should count as blank for your task.

Handle errors and date criteria

An error value in a referenced cell can pass through the calculation and make the final result an error, such as #N/A or #DIV/0!. Find the source by checking the referenced ranges for errors and inspecting any formulas that feed them. Wrapping a calculation in error handling without understanding the cause can hide bad source data, so correct the underlying error when possible.

Date filters can fail when the dates are stored as text or when the end-date condition accidentally excludes the final day. Excel stores valid dates as serial numbers, so comparisons work when the cells contain real Excel dates. Suppose A2:A4 contains January 5, January 31, and February 1, 2026, as real dates, and B2:B4 contains 40, 60, and 90. With dates in A2:A4 and amounts in B2:B4, use =SUMPRODUCT((A2:A4>=DATE(2026,1,1))*(A2:A4<DATE(2026,2,1))*B2:B4). It returns 100, including the two January amounts and excluding February 1.

Using a less-than comparison for the first day of the next month is a reliable way to include every time on the last day of the month. If the date cells contain text, convert them to actual dates before relying on date comparisons. A cell that merely displays a date may still hold text rather than an Excel date value.

Check formula syntax, separators, and calculation settings

Use parentheses around each condition and verify that every opening parenthesis has a matching closing one. In the examples here, commas separate function arguments. Excel’s argument separator depends on regional settings, so some installations require semicolons instead. If a formula is rejected at entry, check the separator used by another working formula in that workbook or system.

Also confirm that the cell is not formatted as Text, and that the formula begins with an equals sign. If Excel displays the formula characters instead of a result, change the cell format to General and re-enter the formula. Check whether Show Formulas is enabled if formulas are visible across the worksheet instead of their calculated values.

If the formula is correct but its result does not update after source values change, check Formulas > Calculation Options > Automatic. In Manual calculation mode, Excel may not recalculate immediately. Pressing F9 recalculates open workbooks on Windows; keyboard behavior can differ on Mac depending on the keyboard and macOS settings. Excel for the web recalculates formulas in the workbook, but its interface and available controls differ from desktop Excel.

When SUMPRODUCT is not the best choice

SUMPRODUCT is useful when a calculation combines multiplication with several conditions, or when a single formula is preferable to helper columns. It is not automatically the clearest or fastest choice for every total. For straightforward conditional sums, SUMIFS is often easier to read and maintain. For conditional counts, COUNTIFS may express the intent more directly.

Choose based on the calculation:

  • Use SUMPRODUCT for pairwise multiplication or a total that needs flexible array-based condition logic.
  • Use SUMIFS when you are summing a range based on conventional criteria and want a purpose-built function.
  • Use COUNTIFS when you need to count records matching multiple criteria.
  • Use a helper column when it makes a complicated calculation easier for other people to audit.

SUMPRODUCT is available in older Excel versions as well as Microsoft 365, so basic formulas are widely compatible. Newer functions such as FILTER can offer another way to inspect or extract matching rows, but FILTER requires Excel 2021 or Microsoft 365. Do not replace a working formula with a newer function if the workbook must be opened in an older Excel version.

A practical troubleshooting sequence

Work from the simplest possible calculation toward the full formula. This helps distinguish a syntax problem from a data problem and prevents a complicated formula from hiding the actual cause.

  1. Confirm the formula starts with an equals sign and uses the argument separator expected by your Excel settings.
  2. Compare the dimensions of every referenced range, including the first and last row.
  3. Test the basic multiplication or sum using a small set of known numeric values.
  4. Check the source ranges for error values, numeric text, unexpected blanks, and stray spaces.
  5. Add one condition at a time and verify that it matches the records you expect.
  6. Check calculation mode if results do not refresh after editing the source data.

For a large workbook, copy the formula to a scratch area and reduce each range to a few representative rows. A small test is easier to verify by hand. Once the test returns the expected result, expand the references consistently and check that the final range includes every intended record.

Frequently Asked Questions

Why does SUMPRODUCT return #VALUE!?
Common causes include arrays with different dimensions, incompatible values in an arithmetic expression, or an error already present in a referenced cell. Check the range boundaries first, then inspect the source cells for errors and text values.

Does SUMPRODUCT need Ctrl+Shift+Enter?
No. SUMPRODUCT normally evaluates its array calculations without Ctrl+Shift+Enter, including in Microsoft 365. Enter it as a regular formula and use parentheses to make the condition logic clear.

Why does SUMPRODUCT return zero when matching rows exist?
The rows may not satisfy all conditions at the same time, or a value may contain extra spaces, different spelling, or text in place of a number. Test each condition separately and inspect the exact source values.

Can SUMPRODUCT count matching rows?
Yes. Multiply TRUE/FALSE condition tests together and use the resulting 1s and 0s to count rows that meet all the tests. For ordinary multi-criteria counts, COUNTIFS is often simpler.

Why does my SUMPRODUCT formula show instead of calculating?
The cell may be formatted as Text, the formula may not begin with an equals sign, or Show Formulas may be turned on. Change the cell to General and re-enter the formula, then check the worksheet display setting.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Errors & fixes

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.