COUNT and SUM with multiple criteria

K

KiltedPhotography

Two seperate functions I'm having problems creating.

First, I need a COUNT of the number of cells meeting TWO sets of criteria.
For example, "column A=final" AND "column B=14".

Seperately, I also need a sum of values in "column C" for the same
conditions above.
 
J

JLatham

To get a count of the NUMBER OF ROWS that have both "final" in column A AND
14 in column B:
=SUMPRODUCT(--(A1:A4="final"),--(B1:B4=14))

To get a total of the values in rows in column C where the above AND
condition is met:
=SUMPRODUCT(--(A1:A4="final"),--(B1:B4=14),C1:C4)

Those formulas assume data in rows 1 through 4, change the first
(1)/last(4) values to match the rows in use on your worksheet. Example: your
data goes from row 2 through row 29, the second formula would become:
=SUMPRODUCT(--(A2:A29="final"),--(B2:B29=14),C2:C29)
 
D

Dave Peterson

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top