ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   =COUNT(IF problem, please help (https://www.excelbanter.com/excel-programming/433882-%3Dcount-if-problem-please-help.html)

Mike Halsey

=COUNT(IF problem, please help
 
Hi,

I'm trying to get a traffic-light report to count the number of learners I
have on each of our contracts by their assigned traffic light status, but
it's not working :(

I've written this formula to count the number of learners with a traff-light
status of "red" AND the contract stating "learning world" but it's not
working.

=COUNT(IF((LEARNERS!C6:C299="RED")*(LEARNERS!D6:D2 99="LEARNING WORLD"),1))

Does anybody know why please?

Thanks in advance,

Mike

Patrick Molloy[_2_]

=COUNT(IF problem, please help
 
Your formula is fine. enter it as an array formula

ie SHIFT+CTRL+ENTER

"Mike Halsey" wrote:

Hi,

I'm trying to get a traffic-light report to count the number of learners I
have on each of our contracts by their assigned traffic light status, but
it's not working :(

I've written this formula to count the number of learners with a traff-light
status of "red" AND the contract stating "learning world" but it's not
working.

=COUNT(IF((LEARNERS!C6:C299="RED")*(LEARNERS!D6:D2 99="LEARNING WORLD"),1))

Does anybody know why please?

Thanks in advance,

Mike


RonaldoOneNil

=COUNT(IF problem, please help
 
=SUMPRODUCT(--(LEARNERS!C6:C299="RED"),--(LEARNERS!D6:D299="LEARNING WORLD"))

"Mike Halsey" wrote:

Hi,

I'm trying to get a traffic-light report to count the number of learners I
have on each of our contracts by their assigned traffic light status, but
it's not working :(

I've written this formula to count the number of learners with a traff-light
status of "red" AND the contract stating "learning world" but it's not
working.

=COUNT(IF((LEARNERS!C6:C299="RED")*(LEARNERS!D6:D2 99="LEARNING WORLD"),1))

Does anybody know why please?

Thanks in advance,

Mike


Lars-Åke Aspelin[_2_]

=COUNT(IF problem, please help
 
On Mon, 21 Sep 2009 03:28:23 -0700, Mike Halsey
wrote:

Hi,

I'm trying to get a traffic-light report to count the number of learners I
have on each of our contracts by their assigned traffic light status, but
it's not working :(

I've written this formula to count the number of learners with a traff-light
status of "red" AND the contract stating "learning world" but it's not
working.

=COUNT(IF((LEARNERS!C6:C299="RED")*(LEARNERS!D6:D 299="LEARNING WORLD"),1))

Does anybody know why please?

Thanks in advance,

Mike



This formula has to be confirmed by CTRL+SHIFT+ENTER rather than just
ENTER.

The formula can be simplified to
=SUM((LEARNERS!C6:C15="RED")*(LEARNERS!D6:D15="LEA RNING WORLD"))

Remember to confirm by CTRL+SHIFT+ENTER.

You can also try this formula that can be confirmed by just ENTER:

=SUMPRODUCT((LEARNERS!C6:C15="RED")*(LEARNERS!D6:D 15="LEARNING
WORLD"))

Hope this helps / Lars-Åke.


All times are GMT +1. The time now is 02:28 PM.

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