View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mwear mwear is offline
external usenet poster
 
Posts: 10
Default Sumif for groups and subgroups / Excel 2003

Ah, yes. I figured it out. I had forgotten to limit the sum column.

Thanks so much for your help.

"Mike H" wrote:

Sumproduct does it for me

=SUMPRODUCT((A1:A5=123)*(B1:B5="Group A")*(C1:C5))

Mike

"mwear" wrote:

I'm trying to sum a row if it meets two different criteria. Here's an
example. Here I would try and add column C if column A was 123 and column B
was group A. Or something similar. I tried to used sumproduct (reading
other responses to similar questions) but I get #NUM! error. Any ideas?

A B C
1 123 group A 5
2 456 group D 10
3 123 group B 14
4 456 group A 7
5 123 group C 6