ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Countif cell color is Red? (https://www.excelbanter.com/excel-worksheet-functions/12709-countif-cell-color-red.html)

JohnG

Countif cell color is Red?
 
I think I have an easy problem to solve, but I'm no excel guru.
If I have a row of cells, (basically 52 one for each week), in some there is
a conditional format to make the cell red. I am trying to count the number
of red cells in that row. Any quick formula I can insert in a cell like
countif ....?? Thanks



JulieD

Hi John

Chip Pearson has some code on his website to do this
http://www.cpearson.com/excel/colors.htm

it's about the third article down, "Counting cells with a specific color"

Cheers
JulieD

"JohnG" wrote in message
...
I think I have an easy problem to solve, but I'm no excel guru.
If I have a row of cells, (basically 52 one for each week), in some there
is a conditional format to make the cell red. I am trying to count the
number of red cells in that row. Any quick formula I can insert in a cell
like countif ....?? Thanks




JE McGimpsey

If you're using a conditional format, use a formula with the same
conditional as the CF...

In article ,
"JohnG" wrote:

I think I have an easy problem to solve, but I'm no excel guru.
If I have a row of cells, (basically 52 one for each week), in some there is
a conditional format to make the cell red. I am trying to count the number
of red cells in that row. Any quick formula I can insert in a cell like
countif ....?? Thanks


JohnG

Thank you.
Added a module, which I never have done before, and it works great.
Appreciate such a quick response. Have a great day !

"JohnG" wrote in message
...
I think I have an easy problem to solve, but I'm no excel guru.
If I have a row of cells, (basically 52 one for each week), in some there
is a conditional format to make the cell red. I am trying to count the
number of red cells in that row. Any quick formula I can insert in a cell
like countif ....?? Thanks




JulieD

you're welcome and thanks for the feedback

"JohnG" wrote in message
...
Thank you.
Added a module, which I never have done before, and it works great.
Appreciate such a quick response. Have a great day !

"JohnG" wrote in message
...
I think I have an easy problem to solve, but I'm no excel guru.
If I have a row of cells, (basically 52 one for each week), in some there
is a conditional format to make the cell red. I am trying to count the
number of red cells in that row. Any quick formula I can insert in a cell
like countif ....?? Thanks






JE McGimpsey

Hmm...

That doesn't work when the color is applied using CF...

In article ,
"JulieD" wrote:

Chip Pearson has some code on his website to do this
http://www.cpearson.com/excel/colors.htm

it's about the third article down, "Counting cells with a specific color"


JulieD

Hi JE

you're absolutely correct - sorry, John ... Chip has notes on working with
CF, but i'ld recommend the method suggested by JE McGimpsey about using the
formula/criteria that you're using to generate the conditional formatting in
the first place.

Cheers
JulieD

"JE McGimpsey" wrote in message
...
Hmm...

That doesn't work when the color is applied using CF...

In article ,
"JulieD" wrote:

Chip Pearson has some code on his website to do this
http://www.cpearson.com/excel/colors.htm

it's about the third article down, "Counting cells with a specific color"





All times are GMT +1. The time now is 07:00 AM.

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