ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUM+IF Array formula (https://www.excelbanter.com/excel-worksheet-functions/189485-sum-if-array-formula.html)

PFAA

SUM+IF Array formula
 
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,




Mike H

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,




Bob Phillips

SUM+IF Array formula
 
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)



"PFAA" wrote in message
...
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,







All times are GMT +1. The time now is 10:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com