Beruflich Dokumente
Kultur Dokumente
com
The Excel Sumproduct Quick Start Guide©
SUMPRODUCT CRITERIA
John Franco
www.Excel-Spreadsheet-Authors.com 2 | Page
The Excel Sumproduct Quick Start Guide©
by John Franco
© 2010 by Excel-Spreadsheet-Authors.com
Notice of Rights
Notice of Liability
The author and publisher have made every effort to ensure the accuracy
of the information herein. However, the information contained in this book
is sold without warranty, either express or implied. Neither the authors
and Excel-Spreadsheet-Authors.com, nor its dealers or distributors, will
be held liable for any damages to be caused either directly or indirectly by
the instructions contained in this book, or by the software or hardware
products described herein.
Trademark Notice
www.Excel-Spreadsheet-Authors.com 3 | Page
The Excel Sumproduct Quick Start Guide©
TOC
TOC ................................................................................................ 4
Introduction ..................................................................................... 5
www.Excel-Spreadsheet-Authors.com 4 | Page
The Excel Sumproduct Quick Start Guide©
Introduction
At first glance, the Excel SUMPRODUCT function can only help you
multiplying corresponding arrays, and returning the sum of those
products into a cell.
You will be impressed once you know the potential of the not-so-
exploited SUMPRODUCT function.
With a few tricks, here is what else you can do with it…
If you take into account the Excel help…It says that the syntax is
SUMPRODUCT(array1,array2,array3, ...) where: Array1, array2, array3,
... are 2 to 255 arrays whose components you want to multiply and then
add.
www.Excel-Spreadsheet-Authors.com 5 | Page
The Excel Sumproduct Quick Start Guide©
The formula will retrieve the cells of the attribute column after all criteria
columns are true: SUMPRODUCT(1*1*attribute)
=SUMPRODUCT((EXACT($B$2:$B$7,A2))*$C$2:$C$7)
=SUMPRODUCT((MONTH($B$2:$B$7)=A2)*$C$2:$C$7)
=SUMPRODUCT(($A$2:$A$8>=DATEVALUE("05/01/2009"))*
($A$2:$A$8<=DATEVALUE("05/31/2009"))*($D$2:$D$8=B$14)*$
B$2:$B$8)
=SUMPRODUCT(($A$2:$A$8>=10000)*
($A$2:$A$8<=50000)*($D$2:$D$8=B$14)*$B$2:$B$8)
Remember that the attribute column (bold array) can only be numeric.
www.Excel-Spreadsheet-Authors.com 6 | Page
The Excel Sumproduct Quick Start Guide©
Or…
Conclusion:
Add SUMPRODUCT to your toolbox and you will have one single function
that allows you to do multiple things.
Moreover, you will have almost the same functionality of Array Formulas
without pressing the CTRL + SHIFT + ENTER.
John Franco
www.Excel-Spreadsheet-Authors.com
www.Excel-Spreadsheet-Authors.com 7 | Page
The Excel Sumproduct Quick Start Guide©
SUMPRODUCT will help you to work with Excel Tables that have multiple
and complicated criteria.
You can directly calculate the Total cost without inserting either column F
or formulas =D2*E2 and then =SUM(F2:F22).
Now, let’s see the 7 hidden formulas (all the examples refer to the above
table)…
www.Excel-Spreadsheet-Authors.com 8 | Page
The Excel Sumproduct Quick Start Guide©
It converts the TRUEs and FALSEs that result after evaluating the column
condition to 1s and 0s so they can be considered by SUMPRODUCT.
B2 = FALSEB3 = TRUE…
Then you convert those TRUE/FALSE to 1/0 so the formula can add them
www.Excel-Spreadsheet-Authors.com 9 | Page
The Excel Sumproduct Quick Start Guide©
The above formulas will compute “Smith” and “smith” as separate entries.
=SUMPRODUCT((B2:B22=”Jones”)*(C2:C22=”Pencil”)*F2:F22) that
results in 658.58.
Search the number of units that Jones sold on 7/29/2006, the formula
would be this one…
=SUMPRODUCT((A2:A22=DATEVALUE(“7/29/2006″))*(B2:B22=”Jones”)
*D2:D22) that results in 21
Important reminder
Excel-Sumproduct-Quick-Start-Guide_bonus-example-1.xls
Excel-Sumproduct-Quick-Start-Guide_bonus-example-2.xls
Excel-Sumproduct-Quick-Start-Guide_bonus-example-3.xls
Excel-Sumproduct-Quick-Start-Guide_bonus-example-4.xls
www.Excel-Spreadsheet-Authors.com 10 | P a g e
The Excel Sumproduct Quick Start Guide©
The haystack…
SUMPRODUCT((criteria
How to… column 1 = criteria
1)*attribute column)
At the Backend (haystack)
Notes
www.Excel-Spreadsheet-Authors.com 11 | P a g e
The Excel Sumproduct Quick Start Guide©
The haystack…
How to…
Notes
www.Excel-Spreadsheet-Authors.com 12 | P a g e
The Excel Sumproduct Quick Start Guide©
The haystack…
SUMPRODUCT((criteria
How to… column 1 = criteria
1)*attribute column)
At the Backend (haystack)
Notes
www.Excel-Spreadsheet-Authors.com 13 | P a g e
The Excel Sumproduct Quick Start Guide©
The haystack…
SUMPRODUCT((criteria
How to… column 1 = criteria
1)*attribute column)
At the Backend (haystack)
Notes
Always cross check with a total sum (see C4 in the frontend). You can
use a Filter to sum with multiple criteria (sometimes the items are not
properly taken into account due to spaces or wrong spelling)
www.Excel-Spreadsheet-Authors.com 14 | P a g e
The Excel Sumproduct Quick Start Guide©
Delete duplicates from the index column. For example, you cannot
have more than one “Susan” in the Name column. Here are several
options to delete duplicates:
Be sure that the Index column is the leftmost one for VLOOKUP
Formulas. To move it proceed this way: Cut the column, right click
on the leftmost column header and choose Insert Cut Cells
Delete leading and trailing spaces from the index column. Use the
function TRIM or the Text to Columns command
www.Excel-Spreadsheet-Authors.com 15 | P a g e
The Excel Sumproduct Quick Start Guide©
John Franco
Excel-Spreadsheet-Authors.com
www.Excel-Spreadsheet-Authors.com 16 | P a g e
The Excel Sumproduct Quick Start Guide©
About John
John Franco is a native of Ecuador, he is a Civil Engineer
and a Bachelor in Applied Linguistics with focus on creating
systems for work, his long term objective in life is helping
others to gain momentum in the application of ideas.
During that time, He had an Excel Maven Boss; Nilton Teti, one of
those old-time-Excel-geniuses who makes precious models, uses just the
keyboard and hates BI corporate packages. His almost “religious fervor”
for Excel, and his amazing knowledge, was the source of John’s great
interest in Spreadsheets.
During all these years John really experienced the professional benefits of
using Excel to accomplish his duties; he says to you that: “being skilled
in Excel gives you a tremendous advantage at the office and in
your career!”
Having always been very entrepreneurial in his nature, he quit his job at
Norberto Odebrecht in order to devote his full passion and knowledge of
advanced Excel methods to others around the world who can benefit from
it.
www.Excel-Spreadsheet-Authors.com 17 | P a g e