Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default 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
.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to add same value to every cell...Is that doable? Brita Excel Discussion (Misc queries) 4 November 27th 04 07:33 PM


All times are GMT +1. The time now is 12:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"