How I use SUMIF & AND

  • Thread starter Thread starter rajgopal
  • Start date Start date
R

rajgopal

How can I use SUMIF & AND to calculate the values? Here is the issue:

_Column_A___Column_B____Column_C_
east Type A 10
east Type B 15
west Type A 14
west Type B 6
north Type A 12

How can I sum "east" " type A"
 
=SUMPRODUCT(--(A1:A5="east"),--(B1:B5="type A"),C1:C5)

OR

=SUMPRODUCT(--(A1:A5=E1),--(B1:B5=F1),C1:C5)

...where E1 contains your first criteria, and F1 contains your second.

Hope this helps
 
rajgopal, try something like this, this is an array formula enter with
(ctrl+shift+enter)



=SUM(IF((A2:A10="east")*(B2:B10="type A"),C2:C10))

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 2003
** remove news from my email address to reply by email **
 

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

Sumif And Countif 7
Count Numbers 4
Dynamic drop down list 2
Multiples conditions in an array 3
Questionnaire using Excel 3
if function help 3
sumif functions based on multiple data 2
Trailing 3 month sales 9

Back
Top