Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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") -- Regards Frank Kabel Frankfurt, Germany "Michael" schrieb im Newsbeitrag om... 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 -- Message posted from http://www.ExcelForum.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=COUNTIF(A1:C1,"5")
-- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Michael" wrote in message om... 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 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think you could just use countif(A1:A3,"5")
It shouldnt matter if your using conditional formatting or not. -----Original Message----- 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 . |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 On 26 May 2004 07:35:47 -0700, (Michael) wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need to add same value to every cell...Is that doable? | Excel Discussion (Misc queries) |