Is this doable using Excel?

M

Michael

Hi everyone,

Say I have this in an excel sheet:

3.5 12.4 6.3

Using "Conditional Fromat" I color cells with red when a value is > 5.
So, in this case, both 12.4 and 6.3 will be in red.

Now, suppose in a 4th column, I want to count the # of red-colored
cells so things will look like this:

3.5 12.4 6.3 2

How can I do this in excel?

Thanks alot,
Mike
 
F

Frank Kabel

Hi
1. Conditional format:
- select the cells and goto 'Format - Conditional Format'
- enter this condition (larger than 5)

2. For this just refer to the condition and enter the following formula
=COUNTIF(A1:C1,">5")
 
B

Bob Phillips

=COUNTIF(A1:C1,">5")

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
C

Cindy

I think you could just use countif(A1:A3,">5")
It shouldnt matter if your using conditional formatting
or not.
 
M

martinjw

No VBA necessary, the simplest solution would be to populate the fourt
column with this:

=COUNTIF(E10:G10,">5")

We're not counting red cells, but we are using the same criteria a
your conditional format
 
G

Gord Dibben

Michael

Instead of counting the red cells, count the condition that turned them red.

=COUNTIF(A8:C8,">5")

You need VBA code to count the red cells and CF colors don't count easily.

See Chip Pearson's site for working with CF colored cells.

http://www.cpearson.com/excel/CFColors.htm

Gord Dibben Excel MVP
 
Top