Totals and counts function

SUMPRODUCT

Multiply two columns row by row, then add the answers.

Purpose

Multiply two columns row by row and total the answers

Returns

One number: the sum of each row's product

Syntax

=SUMPRODUCT(column1, column2, [column2], ...)

ArgumentRequiredWhat goes here
column1RequiredThe first column to multiply, like C2:C7.
column2RequiredThe column to multiply it against, the same height, like D2:D7.
column2OptionalThe column to multiply it against, the same height, like D2:D7.

How to use SUMPRODUCT

SUMPRODUCT multiplies the columns together one row at a time and adds up the results. It does in one formula what a helper column of multiplications and a SUM underneath it would do in two steps.

The columns have to be the same length. That is the only rule and it is the one that gets broken.

In accounting its real job is weighting. An average of days overdue treats a two hundred pound invoice and a twenty thousand pound one as equally important, and weighting by amount says how old the money is rather than how old the invoices are.

That weighted figure, days sales outstanding, is the one that gets reported, and it is SUMPRODUCT divided by SUM.

Examples

Every result below is worked out by the same evaluator that marks your answers, on the sheet shown here.

Payables ageing — October.xlsxSheet1
Harbour Foods payables at 31 October 2026, with supplier terms alongside
ABCDEFGH
1InvoiceSupplierStatusDays overdueAmountSupplierTerms (days)
2INV-8801Brightwell PaperOverdue12940Ashgrove Catering30
3INV-8802Calder UtilitiesQueried471180Brightwell Paper30
4INV-8803Meridian FreightOverdue632450Calder Utilities14
5INV-8804Ashgrove CateringOn terms0405Meridian Freight45
6INV-8805Brightwell PaperOverdue38760Thornbury Print60
7INV-8806Thornbury PrintOverdue911320
8INV-8807Meridian FreightOn terms0580
9INV-8808Calder UtilitiesOverdue24215
FormulaResult
=SUMPRODUCT(D2:D9,E2:E9)Every row's days multiplied by its amount, added up. Not a figure anyone reports on its own.375250
=ROUND(SUMPRODUCT(D2:D9,E2:E9)/SUM(E2:E9),1)Divided by the total, it becomes weighted average days overdue. This is the number that goes in the report.47.8
=ROUND(AVERAGE(D2:D9),1)The unweighted average of the same column, for comparison. The gap between the two is the whole argument for weighting.34.4

Notes

  • The columns must be the same length or the formula refuses.
  • SUMPRODUCT will also count rows meeting conditions, by multiplying tests together. COUNTIFS says the same thing far more legibly.
Practise SUMPRODUCT in Unit 11

A reference tells you what it does. A unit makes you use it.