Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
StephanieH
 
Posts: n/a
Default Conditional Formatting

Is this possible with Conditional Formatting, or would I have to write it in
VBA? (I can't guarantee the end user will enable the macro).

For a specified range
If the cell is empty, no formatting
If the cell equals "SAT" or "NI" then set background as green
If the cell equals "UNSAT" or UNACC" then set background as red.


  #2   Report Post  
RagDyer
 
Posts: n/a
Default

Say your range was A1:A10
Select the range, with the focus in A1, then:

<Format <ConditionalFormat,
Click "Formula Is", and enter this:

=OR(A1="Sat",A1="Ni")

Click of <Format, and choose you pattern color, then <OK,

Then click on <Add for your second condition,
Click "Formula Is", and enter this:

=OR(A1="UnSat",A1="UnAcc")

Click of <Format, and choose you second pattern color, then <OK <OK

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"StephanieH" wrote in message
...
Is this possible with Conditional Formatting, or would I have to write it

in
VBA? (I can't guarantee the end user will enable the macro).

For a specified range
If the cell is empty, no formatting
If the cell equals "SAT" or "NI" then set background as green
If the cell equals "UNSAT" or UNACC" then set background as red.



  #3   Report Post  
eider
 
Posts: n/a
Default

Because your entries for green and red each fall together within the
alphabet, yo can set condition one as Cell value is between Sat and NI and
condition 2 as Cell value is between Unacc and Unsat


"StephanieH" wrote:

Is this possible with Conditional Formatting, or would I have to write it in
VBA? (I can't guarantee the end user will enable the macro).

For a specified range
If the cell is empty, no formatting
If the cell equals "SAT" or "NI" then set background as green
If the cell equals "UNSAT" or UNACC" then set background as red.


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
Conditional Formatting Error ddate Excel Worksheet Functions 0 May 5th 05 09:00 PM
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM
Determine cells that drive conditional formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 7th 05 01:08 AM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


All times are GMT +1. The time now is 01:54 PM.

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"