SUMPRODUCT Formulas in Microsoft Excel

For the ultimate resource in SUMPRODUCT, see Bob Phillips' site.

Suppose you need to total records based on multiple criteria? For example, in the following, we calculate the total quarterly price of blue cars sold by John.

Use the SUMPRODUCT function as shown below

SUMPRODUCT multiplies corresponding cells in a given set of data.

Let’s go into the formula step-by-step.

In our example, our criteria are (1) Blue cars and (2) sold by John. We need the total sales based on these two criteria.

We want Excel to

  • Select only the rows that meet the above criteria. (B2:B13="blue") and (C2:C13="john")
  • Multiply (PRODUCT) Price per car (D2:D13) by Number of cars sold (E2:E13)
  • Return the total (SUM) as the result of the formula (all the * do the multiplying for us). debuted on May 26, 2005. provides examples of Formulas, Functions and Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Formulas, Functions and Visual Basic procedures on this web site are provided "as is" and we do not guarantee that they can be used in all situations.

Access®, Excel®, FrontPage®, Outlook®, PowerPoint®, Word® are registered trademarks of the Microsoft Corporation.
MrExcel® TM is a registered trademark of Tickling Keys, Inc.

All contents © 1998-2014 by MrExcel Consulting | All rights reserved