Why it works
- What it does
- SUMPRODUCT multiplies two ranges row by row and adds the results, so quantity × cost for every item becomes one figure without a helper column. A double minus in front of a range turns digits stored as text into numbers on the way.
- The shape of the formula
- =SUMPRODUCT(--quantities, prices)
- How to remember it
- Product per row, sum at the end: the name says it in order.
- The usual mistake
- Leaving quantities stored as text. SUMPRODUCT treats them as 0 and those items are valued at nothing.
Keep practicing
Updated