A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

change color of cell if an X exists in range



 
 
Thread Tools Display Modes
  #1  
Old June 10th, 2004, 04:38 AM
*k*
external usenet poster
 
Posts: n/a
Default change color of cell if an X exists in range

how do i change the color of a cell (red or black) depending on if an
X is present in a range of cells please?

a b c d
1 tim
2 pete x
3 jo x

for example how to make tim black and pete in red because of c2 and jo
in red because of d3

thanks

K
  #2  
Old June 10th, 2004, 06:43 AM
David McRitchie
external usenet poster
 
Posts: n/a
Default change color of cell if an X exists in range

Hi Karen,

Select Column A or Select all cells (Ctrl+A) depending
on which cells you want to be colored.

As long as Row 1 has the active cell then\

Format, Conditional Formatting
C.F. Formula Is: =COUNTIF($B1:$G1,"x")
then click on the formatting button, patterns (tab), choose color

More information on Conditional Formatting in
Conditional Formatting
http://www.mvps.org/dmcritchie/excel...t.htm#multiple
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"*k*" wrote in message news
how do i change the color of a cell (red or black) depending on if an
X is present in a range of cells please?

a b c d
1 tim
2 pete x
3 jo x

for example how to make tim black and pete in red because of c2 and jo
in red because of d3

thanks

K


  #3  
Old June 10th, 2004, 08:25 AM
*k*
external usenet poster
 
Posts: n/a
Default change color of cell if an X exists in range

excellent, thanks i will go have a look :-) appreciate the help.
K

On Thu, 10 Jun 2004 01:43:15 -0400, "David McRitchie"
wrote:

Hi Karen,

Select Column A or Select all cells (Ctrl+A) depending
on which cells you want to be colored.

As long as Row 1 has the active cell then\

Format, Conditional Formatting
C.F. Formula Is: =COUNTIF($B1:$G1,"x")
then click on the formatting button, patterns (tab), choose color

More information on Conditional Formatting in
Conditional Formatting
http://www.mvps.org/dmcritchie/excel...t.htm#multiple
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"*k*" wrote in message news
how do i change the color of a cell (red or black) depending on if an
X is present in a range of cells please?

a b c d
1 tim
2 pete x
3 jo x

for example how to make tim black and pete in red because of c2 and jo
in red because of d3

thanks

K



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.