ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   COUNT IF - Conditional Formatting (https://www.excelbanter.com/excel-discussion-misc-queries/247046-count-if-conditional-formatting.html)

KC

COUNT IF - Conditional Formatting
 
I need a formula for the following:

If Col D = SW and Col E = France, then count how many green cells are in Col
O. (Column O has conditional formatting of Green, Yellow & Red based on a %,
but I don't want to count the %, just want to count the instances of Green).

Thanks very much!


PhilosophersSage

COUNT IF - Conditional Formatting
 
Try
=IF(AND(D2="SW",E2="France"),COUNTIF($O2:$O99, "75%"),"")
Where 75% is the condition of green, you can also specify ranges for D2 and
E2 but all in range must meet chriteria.

If this helps click YES.

"KC" wrote:

I need a formula for the following:

If Col D = SW and Col E = France, then count how many green cells are in Col
O. (Column O has conditional formatting of Green, Yellow & Red based on a %,
but I don't want to count the %, just want to count the instances of Green).

Thanks very much!


KC

COUNT IF - Conditional Formatting
 
Below is the cell I ended up with, however it doesn't work. I tried it on
each county and all returned blank except for Italy and the answer shoud have
been 5, but it returned 176. I also tried putting a range for Col D & E, but
then I got a Do I have something wrong here? What I do know is that there
are a total of 176 100% in the entire column.

=IF(AND('Power CFUs'!$D:$D=$A5,'Power CFUs'!$E:$E=$B5),COUNTIF('Power
CFUs'!$O$6:$O$735,"100%"),"")

"PhilosophersSage" wrote:

Try
=IF(AND(D2="SW",E2="France"),COUNTIF($O2:$O99, "75%"),"")
Where 75% is the condition of green, you can also specify ranges for D2 and
E2 but all in range must meet chriteria.

If this helps click YES.

"KC" wrote:

I need a formula for the following:

If Col D = SW and Col E = France, then count how many green cells are in Col
O. (Column O has conditional formatting of Green, Yellow & Red based on a %,
but I don't want to count the %, just want to count the instances of Green).

Thanks very much!



All times are GMT +1. The time now is 09:49 PM.

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