View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Sumif with 2 criteria

SUMIF can only have 1 criteria. The AND funciton won't work with it. Try
this instead:

=SUMPRODUCT(--(a1:a4="Auto"),--(b1:b4="Insurance"),--(c1:c4))

HTH,
Elkar


"Mike" wrote:

Okay, I've done my research, but I can't find the answer to this... I want to
do a sumif with two different criteria, each criteria is in a different
column (like a category, then a sub-category). I've tried the
sumproduct(--..., but I couldn't make it work.

Each number is attached to a category and sub category:

Auto Gas 130
Auto Insurance 25
Food Groceries 200
Auto Insurance 50

So, this is what i've tried: =sumif(a1:b4,and("Auto","Insurance"),c1:c4)

Please help!