Why it works
- What it does
- SUMIFS cannot compare one column with another row by row. SUMPRODUCT can: multiply the tests, and a row counts only when every test is 1. Watch for text in a date column. Text counts as bigger than any number, so add ISNUMBER to keep it out.
- The shape of the formula
- =SUMPRODUCT((test1)*(test2)*values)
- How to remember it
- Each test is 1 or 0; multiplied, they are AND.
- The usual mistake
- A dash in a date column. “-” is bigger than every date, so it passes “later than promised”.
Keep practicing
- SUMPRODUCT: multiply row by row, then addHow do I get the total value of stock from quantity and unit cost?Open
- SUMIFS: totals with two or more conditionsHow do I total spend for one budget and one item type?Open
- SUMPRODUCT with OR: count a row onceHow do I total returns that match one rule or another, without counting any twice?Open
Updated