[mso] Re: Excel: Selecting colors based on value?

  • From: "Ray Blake" <ray@xxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Sun, 28 Dec 2003 19:17:24 -0000

Robert,

You have to get the hang of two things to make this work:

(1) Most uses for conditional formatting will format a cell based on its
own contents, but it is possible to base it on the value of another
cell, using relative referencing. In the CF dialog, you simply have to
change the reference from 'cell' to 'formula' and then type your formula
in the field which appears. Excel help is quite good on how to do this.

(2) Conditonal formatting can only work on a maximum of 3 conditions, so
you need VBA to do the job for you when you have - say - 18 conditions
to apply. There was a great article in ABC on how to go about this:
http://personal-computer-tutor.com/abc2/v18/chad18.htm

Ray

_____________

This email is from Ray Blake, Head of Software Design, GR Business
Process Solutions. It is confidential and intended for the addressee
only. The contents are private and may be legally privileged. If you
receive this email in error we would be grateful if you would advise the
sender and delete the email from your system.

For more information on the services that we offer please visit us at
our website: - www.grbps.com 



-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Robert Carneal
Sent: 28 December 2003 19:09
To: mso@xxxxxxxxxxxxx
Subject: [mso] Excel: Selecting colors based on value?


I have a range where Column AA is a value 1 through 18 inclusive. Column
AB 
contains color names.  Column AC contains a background of the color
named 
in Column AB.

Example:
1  Black
2  Brown
3  Orange
etc.....
17 Green
18 Red

I am -trying- to find a way that will allow me to a number in Column A,
say 
in cell A5 I have 3 for example, then in cell B5 the background will be 
Orange. I tried conditional formatting but that doesn't seem to work
here.

Thank you.

Robert


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx
or MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the
quotes) in the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will
also allow you to change your email settings to digest or vacation (no
mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group,
send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an
invitation with instructions.  Once you are a member of the files group,
you can go here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: