Sumif with multiple variables

G

Guest

My data is arranged in three columns: Col a is my inventory
count date, Col b is a code letter (a,b,c or blank), col c is my
sales.
col a col b col c
s04 a 10
f04 b 12
s05 c 13
f04 a 10
s04 a 12
f04 (blank) 9

I need to sumif all numbers in column c where column a and
column b match (for example: col a has 2 s04 where col b has
an A so I need the total of 10+12. I suppose I could
concatenate A+B, and then sumif on that, but is there a
better way? Thanks for any help.
 
G

Guest

Try something like this:

D1: =SUMPRODUCT((A1:A100="s04")*(B1:B100="a")*C1:C100)

Change range references to suit your situation.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro
 

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

Similar Threads

Numbers from first column 5
Sum 7
SumIF Formula 6
SumIf formula from one column based on criteria from two other col 10
move blank data 10
Sumif question 1
Nested IF conditions 3
League table 3

Top