View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default SUM+IF Array formula

Hi,

Firstly there's no need for an array, the formula

=SUMPRODUCT((A2:A11=1188)*(B2:B11="Feb")*(C2:C11))

works equally well but note that i've taken the 1188 out of quotes on the
assumption it's a number your looking for and left "Feb" inside quotes once
again assuming it isn't a correctly formatted date. Adapting your formula in
the same way also works array entered.

=SUM(IF((A2:A11=1188)*(B2:B11="Feb"),C2:C11))

but i suggest you stick with sumproduct

Mike


"PFAA" wrote:

I'm using a {=SUM(IF((A2:A11="1188")*(B2:B11="Feb"),C2:C11))}

I need to count the # in Column C when the criteria is met in A and B. This
is an array formula.

And I keep getting 0....

What am I doing wrong?

Thanks,