SUMIF with multiple criteria

R

ricky

I'm new to excel...but I know SUMIF checks an array for a particular
value and adds up the cells in a corresponding array for matches. Say
I have three columns A=Salesperson, B=Item Sold, C=Amount. I want to
sum up the total amount that salesman i sold of item j. I know how to
find the total for all things a particular salesman sold, and i can
find the total for all sales of a particular item, but how do i find a
total of all sales by a salesman of a particular item? I know there
are ways to implement this with filters and tons of other ways, but
with the way the data is available to me, some kind of modified sumif
strategy would be best
 
T

T. Valko

Try this:

A1:A10 = names
B1:B10 = item sold
C1:C10 = amount

=SUMPRODUCT(--(A1:A10="name"),--(B1:B10="item"),C1:C10)

Better to use cells to hold the criteria:

E1 = Joe
F1 = book

=SUMPRODUCT(--(A1:A10=E1),--(B1:B10=F1),C1:C10)
 
R

ricky

Thanks so much. I had tried sumproduct but was comparing the whole
columns as I don't know how many records there might be in the
future...I guess that was my problem. Got it now...stupid Office 03
guess I should upgrade
 
G

Guest

You could use A1:A65535

ricky said:
Thanks so much. I had tried sumproduct but was comparing the whole
columns as I don't know how many records there might be in the
future...I guess that was my problem. Got it now...stupid Office 03
guess I should upgrade
 

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


Top