![]() |
Is this doable using Excel?
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 |
Is this doable using Excel?
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 |
Is this doable using Excel?
=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 |
Is this doable using Excel?
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 . |
Is this doable using Excel?
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 |
Is this doable using Excel?
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 |
All times are GMT +1. The time now is 01:20 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com