Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Data Validation/Conditional Formating

Hi All,

I have created a data validation table with conditional formatting, so that
when I select an item, the fill colour of of the cell also changes e.g. when
selecting "YES" from the drop-down menu, it enters the word "YES" and the
fill of the cell changes to green. The same with selecting "NO", it enters
the word "NO" and changes the cell fill colour to red.

I am using Excel 2003 which only allows me to have three (3) conditional
formats per cell.

I want to select any one of a number of items from the data validation list
to allow the one colour e.g.

"YES"
"YES - BUT"
"NO"
"NO - BUT"

I want to conditional format the cell that by selecting either "YES" or "YES
- BUT" it changes the cell fill colour to green and if selecting "NO" or "NO
- BUT" it changes the cell fill colour to red.

The problem is, four choices and only three cell conditions.

Does anyone know the formula to be able to select either item to produce the
cell fill colour i.e. ="YES" or "YES - BUT" produces a green cell fill colour.

Many Thanks.
-
ray963
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 105
Default Data Validation/Conditional Formating

Hi.
Use the formulas :
=LEFT(A1,3)="YES"
and
=LEFT(A1,2)="NO"
admitting A1 is the cell to format, and use formula instead of cell
value for the conditinal formatting.
HTH
Daniel
Hi All,

I have created a data validation table with conditional formatting, so that
when I select an item, the fill colour of of the cell also changes e.g. when
selecting "YES" from the drop-down menu, it enters the word "YES" and the
fill of the cell changes to green. The same with selecting "NO", it enters
the word "NO" and changes the cell fill colour to red.

I am using Excel 2003 which only allows me to have three (3) conditional
formats per cell.

I want to select any one of a number of items from the data validation list
to allow the one colour e.g.

"YES"
"YES - BUT"
"NO"
"NO - BUT"

I want to conditional format the cell that by selecting either "YES" or "YES
- BUT" it changes the cell fill colour to green and if selecting "NO" or "NO
- BUT" it changes the cell fill colour to red.

The problem is, four choices and only three cell conditions.

Does anyone know the formula to be able to select either item to produce the
cell fill colour i.e. ="YES" or "YES - BUT" produces a green cell fill
colour.

Many Thanks.
-
ray963



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Data Validation/Conditional Formating

condition 1
=OR($A$2="YES",$A$2="YES-BUT") choose format | ok

condition 2
=OR($A$2="No",$A$2="No-BUT") choose format | ok


On Nov 18, 3:45*pm, ray963 wrote:
Hi All,

I have created a data validation table with conditional formatting, so that
when I select an item, the fill colour of of the cell also changes e.g. when
selecting "YES" from the drop-down menu, it enters the word "YES" and the
fill of the cell changes to green. The same with selecting "NO", it enters
the word "NO" and changes the cell fill colour to red.

I am using Excel 2003 which only allows me to have three (3) conditional
formats per cell.

I want to select any one of a number of items from the data validation list
to allow the one colour e.g.

"YES"
"YES - BUT"
"NO"
"NO - BUT"

I want to conditional format the cell that by selecting either "YES" or "YES
- BUT" it changes the cell fill colour to green and if selecting "NO" or "NO
- BUT" it changes the cell fill colour to red.

The problem is, four choices and only three cell conditions.

Does anyone know the formula to be able to select either item to produce the
cell fill colour i.e. ="YES" or "YES - BUT" produces a green cell fill colour.

Many Thanks.
-
ray963


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Data Validation/Conditional Formating

Thanks muddan madhu,

Your recommendation worked perfectly for that cell.

However, I require the "Data Validation/Conditional Formatting" that we just
created for that cell to be copied and pasted to multiple cells underneath
that cell.

When I do that and select an item in cell A2 it changes all the other cell
colours below it.

With your recommendation of:

condition 1
=OR($A$2="YES",$A$2="YES-BUT") choose format ok

.....I understand the $A relates to column A and $2 refers to the cell row.

How can I adjust this formular so that I can copy and special paste it to
multiple cells below it in the column without interfering with the other
cells.

--
ray963


"muddan madhu" wrote:

condition 1
=OR($A$2="YES",$A$2="YES-BUT") choose format | ok

condition 2
=OR($A$2="No",$A$2="No-BUT") choose format | ok


On Nov 18, 3:45 pm, ray963 wrote:
Hi All,

I have created a data validation table with conditional formatting, so that
when I select an item, the fill colour of of the cell also changes e.g. when
selecting "YES" from the drop-down menu, it enters the word "YES" and the
fill of the cell changes to green. The same with selecting "NO", it enters
the word "NO" and changes the cell fill colour to red.

I am using Excel 2003 which only allows me to have three (3) conditional
formats per cell.

I want to select any one of a number of items from the data validation list
to allow the one colour e.g.

"YES"
"YES - BUT"
"NO"
"NO - BUT"

I want to conditional format the cell that by selecting either "YES" or "YES
- BUT" it changes the cell fill colour to green and if selecting "NO" or "NO
- BUT" it changes the cell fill colour to red.

The problem is, four choices and only three cell conditions.

Does anyone know the formula to be able to select either item to produce the
cell fill colour i.e. ="YES" or "YES - BUT" produces a green cell fill colour.

Many Thanks.
-
ray963



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 formating for data in 2 columns ldenning Excel Worksheet Functions 3 September 30th 08 05:34 PM
Conditional Formating working when data is entered later ConnieH Excel Worksheet Functions 1 March 19th 07 08:40 PM
Conditional Formating based on data in an entire row ked Setting up and Configuration of Excel 1 January 9th 07 06:35 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Conditional Formating on calculated data in a pivot table David Excel Worksheet Functions 1 March 13th 05 03:16 PM


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

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"