SUM+IF Array formula

P

PFAA

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,
 
M

Mike H

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
 
B

Bob Phillips

Is it meant to be

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

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Top