Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
meandmyhorse
 
Posts: n/a
Default Conditional Formatting - Formulas


I have searched all over and can't find an answer to this....

I want to color a cell depending on variables. I have 5 variables, so
unfortunately, conditional formatting won't work, what I did was create
an IF statement to get the variables down to 3 in the adjacent cell.
But when I go back in to conditional formatting, what formula do I use
to look at the adjacent cell?

i.e. Depending on what number is typed in A1...A2 can equal G, Y, or
R. I can build the three conditional formats to color G,Y,R the way I
want...but I can't figure out what the formula is to look at A2 to
determine it's value.

Cell A1 Cell A2
11455 G

Or is there another way to utilize conditional formatting when I have
the following variables...

11001 = R

10001 - 11000 = Y
6700 - 10000 = G
4500- 6699 = Y
<4499 = R

Mucho Gracia to anyone who might be able to help!!! :)


--
meandmyhorse
------------------------------------------------------------------------
meandmyhorse's Profile: http://www.excelforum.com/member.php...o&userid=31689
View this thread: http://www.excelforum.com/showthread...hreadid=513872

  #2   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Conditional Formatting - Formulas

Actually, you won't need anything in Column B. All of your conditions can be
met just with Conditional Formatting in Column A.

Use these 3 formulas:

=OR(A1<=4499,A1=11001)

=OR(AND(A1=4500,A1<=6699),AND(A1=10001,A1<=11000 ))

=AND(A1=6700,A1<=10000)

HTH,
Elkar

"meandmyhorse" wrote:


I have searched all over and can't find an answer to this....

I want to color a cell depending on variables. I have 5 variables, so
unfortunately, conditional formatting won't work, what I did was create
an IF statement to get the variables down to 3 in the adjacent cell.
But when I go back in to conditional formatting, what formula do I use
to look at the adjacent cell?

i.e. Depending on what number is typed in A1...A2 can equal G, Y, or
R. I can build the three conditional formats to color G,Y,R the way I
want...but I can't figure out what the formula is to look at A2 to
determine it's value.

Cell A1 Cell A2
11455 G

Or is there another way to utilize conditional formatting when I have
the following variables...

11001 = R

10001 - 11000 = Y
6700 - 10000 = G
4500- 6699 = Y
<4499 = R

Mucho Gracia to anyone who might be able to help!!! :)


--
meandmyhorse
------------------------------------------------------------------------
meandmyhorse's Profile: http://www.excelforum.com/member.php...o&userid=31689
View this thread: http://www.excelforum.com/showthread...hreadid=513872


  #3   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default Conditional Formatting - Formulas

It seems to me that you have used CF only with the Cell Value Is
option. There is a Formula Is choice where you enter a formula that
evaluates to true/false. This feature is the one of choice when we want
to base formatting on the values of other cells.

In there you can use the formulas suggested by Elkar.

HTH
Kostis Vezerides

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
enhanced conditional formatting Stuart Excel Discussion (Misc queries) 13 November 13th 05 07:20 PM
Conditional Formatting - Can I select a select with Conditional Formatting? Greegan Excel Worksheet Functions 5 October 31st 05 02:19 PM
Putting Excel formatting and/or formulas into CSV file Frank D. Nicodem, Jr. Excel Discussion (Misc queries) 1 July 11th 05 10:18 PM
Conditional Formatting Inspirz Excel Discussion (Misc queries) 0 June 22nd 05 05:36 PM
conditional formatting on a PivotTable? confused Charts and Charting in Excel 0 June 13th 05 04:15 PM


All times are GMT +1. The time now is 08:28 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"