Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pfa pfa is offline
external usenet poster
 
Posts: 14
Default Change background color using conditional formatting

I have a question about conditional formatting. I have cells beginning with
the text "no exceptions noted", and others beginning with the text
"exceptions noted". For "no exceptions noted" I would like conditional
formatting to change the cell to a red background color and, for the other, a
green background color. I tried using conditional formating with cell value
equal to each of the texts (and changing the result to the appropriate
background color) but it didn't work.
Any suggestions?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Change background color using conditional formatting

You have to watch for Excel being helpful at times.

Select your cells and FormatCFCell value is:equal to no exceptions noted

Do not add any quotes or Excel will double them up.

Add condition 2 which is:equal to exceptions noted

Ok your way out. If no joy, go back in and see if Excel has added too many
quotes.

The dialog box should contain only ="no exceptions noted"


Gord Dibben MS Excel MVP

On Mon, 20 Aug 2007 13:52:05 -0700, pfa wrote:

I have a question about conditional formatting. I have cells beginning with
the text "no exceptions noted", and others beginning with the text
"exceptions noted". For "no exceptions noted" I would like conditional
formatting to change the cell to a red background color and, for the other, a
green background color. I tried using conditional formating with cell value
equal to each of the texts (and changing the result to the appropriate
background color) but it didn't work.
Any suggestions?

Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Change background color using conditional formatting

If you have any leading or trailing spaces in those cells, or other
text, then you will have to select Formula Is instead of Cell Content
Is and then enter these formulae as appropriate:

1st CF: =LEFT(TRIM(B2),19)="no exceptions noted" --set patterns
to red
2nd CF: =LEFT(TRIM(B2),16)="exceptions noted" --set patterns to
green

Ensure that Excel does not add extra quote marks to the formulae.

Hope this helps.

Pete


On Aug 20, 9:52 pm, pfa wrote:
I have a question about conditional formatting. I have cells beginning with
the text "no exceptions noted", and others beginning with the text
"exceptions noted". For "no exceptions noted" I would like conditional
formatting to change the cell to a red background color and, for the other, a
green background color. I tried using conditional formating with cell value
equal to each of the texts (and changing the result to the appropriate
background color) but it didn't work.
Any suggestions?

Thanks!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Change background color using conditional formatting

As ever, the statement "it didn't work" is not a desparately useful input to
our crystal balls. The best suggestion I can make is that you describe in
more detail exactly what symptoms you are getting.

Copy from the Conditional Formatting dialogue to the newsgroup the formulae
that you are using. [Don't retype them; just copy and paste.]

At that stage you may, of course, see that the formulae aren't what you
intended, but that Excel has inserted quote marks or absolute references
that you hadn't intended. This problem can usually be avoided by starting
your formula with the equals sign, and not letting Excel put that in for
you.

If you are happy with the formulae, tell us what values are in the relevant
cells, what answer you expected, and what answer you got.

One point in your description is that you said that you had cells BEGINNING
with the relevant text, but then you said that your CF had "cell value equal
to" the text. If you want a response for text BEGINNING with your specified
text, don't you need something like
Formula Is =LEFT(A1,19)="no exceptions noted" ?
--
David Biddulph

"pfa" wrote in message
...
I have a question about conditional formatting. I have cells beginning with
the text "no exceptions noted", and others beginning with the text
"exceptions noted". For "no exceptions noted" I would like conditional
formatting to change the cell to a red background color and, for the
other, a
green background color. I tried using conditional formating with cell
value
equal to each of the texts (and changing the result to the appropriate
background color) but it didn't work.
Any suggestions?

Thanks!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pfa pfa is offline
external usenet poster
 
Posts: 14
Default Change background color using conditional formatting

Thanks to all for your suggestions. Because the cell in question begins with
the text I mentioned, I had to change the CF from Cell Value to Formula Is,
and use the LEFT function, in order to produce the desired result. Again,
thanks to all.

"David Biddulph" wrote:

As ever, the statement "it didn't work" is not a desparately useful input to
our crystal balls. The best suggestion I can make is that you describe in
more detail exactly what symptoms you are getting.

Copy from the Conditional Formatting dialogue to the newsgroup the formulae
that you are using. [Don't retype them; just copy and paste.]

At that stage you may, of course, see that the formulae aren't what you
intended, but that Excel has inserted quote marks or absolute references
that you hadn't intended. This problem can usually be avoided by starting
your formula with the equals sign, and not letting Excel put that in for
you.

If you are happy with the formulae, tell us what values are in the relevant
cells, what answer you expected, and what answer you got.

One point in your description is that you said that you had cells BEGINNING
with the relevant text, but then you said that your CF had "cell value equal
to" the text. If you want a response for text BEGINNING with your specified
text, don't you need something like
Formula Is =LEFT(A1,19)="no exceptions noted" ?
--
David Biddulph

"pfa" wrote in message
...
I have a question about conditional formatting. I have cells beginning with
the text "no exceptions noted", and others beginning with the text
"exceptions noted". For "no exceptions noted" I would like conditional
formatting to change the cell to a red background color and, for the
other, a
green background color. I tried using conditional formating with cell
value
equal to each of the texts (and changing the result to the appropriate
background color) but it didn't work.
Any suggestions?

Thanks!




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
can I configure Conditional formatting to change color weekly? Joe Excel Discussion (Misc queries) 4 February 21st 07 09:48 PM
How can I change cell color using conditional formatting Brian Excel Discussion (Misc queries) 1 September 17th 06 01:38 PM
how can I conditionally change font color, or background color? MOHA Excel Worksheet Functions 3 August 21st 06 06:57 PM
change color of text in cell without conditional formatting sumGirl Excel Discussion (Misc queries) 3 August 16th 06 01:56 PM
Cell color change without using conditional formatting Trese Excel Discussion (Misc queries) 2 August 26th 05 06:00 PM


All times are GMT +1. The time now is 02:08 AM.

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

About Us

"It's about Microsoft Excel"