![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Can we change cell color programatically?
Hi all
I'm using Excel 2003. Does Excel allow me to change the fill-color of a cell based upon the contents of that cell? For example: If the formula of a cell calculates its value to be less then, say, 100, I'd like to fill-color that cell to Green. Otherwise I'd like to color that cell with no color. Is this possible? Thanks -Mike |
|
|||
|
Re: Can we change cell color programatically?
Take a look at Format|Conditional formatting.
You can specify up to 3 rules (and formats) as well as the "normal" format. Mike wrote: > > Hi all > > I'm using Excel 2003. > Does Excel allow me to change the fill-color of a cell based upon the > contents of that cell? > > For example: If the formula of a cell calculates its value to be less then, > say, 100, I'd like to fill-color that cell to Green. Otherwise I'd like to > color that cell with no color. > > Is this possible? > > Thanks > > -Mike -- Dave Peterson |
|
|||
|
Re: Can we change cell color programatically?
Check out Conditional Formatting on the Format menu.
-- Jim "Mike" <Mike@discussions.microsoft.com> wrote in message news:223C405C-3072-40BD-BCAA-CE0D78D5DDC7@microsoft.com... | Hi all | | I'm using Excel 2003. | Does Excel allow me to change the fill-color of a cell based upon the | contents of that cell? | | For example: If the formula of a cell calculates its value to be less then, | say, 100, I'd like to fill-color that cell to Green. Otherwise I'd like to | color that cell with no color. | | Is this possible? | | Thanks | | -Mike |
|
|||
|
Re: Can we change cell color programatically?
Thanks Dave and Jim for your help. :-)
This almost seems to work. It allows me to do what I want if I hard-code a specific value into the conditional formatting setup. However, it does not seem to allow me to specify that the conditional format should be based off of the value within a particular cell, which is what I'd really like for it to do. For example. I've specified cell E5 to contain a value of 145. If I then specify in the conditional format: "Cell Value Is greater than or equal to 145" Excel behaves how I want. However, Excel does not seem to allow me to reference cell E5 (instead of the hard-coded number 145) in the conditional formatting. Is there some what to specify a particular cell reference in the conditional formatting? Thanks again :-) -Mike "Jim Rech" wrote: > Check out Conditional Formatting on the Format menu. > > -- > Jim > "Mike" <Mike@discussions.microsoft.com> wrote in message > news:223C405C-3072-40BD-BCAA-CE0D78D5DDC7@microsoft.com... > | Hi all > | > | I'm using Excel 2003. > | Does Excel allow me to change the fill-color of a cell based upon the > | contents of that cell? > | > | For example: If the formula of a cell calculates its value to be less > then, > | say, 100, I'd like to fill-color that cell to Green. Otherwise I'd like to > | color that cell with no color. > | > | Is this possible? > | > | Thanks > | > | -Mike > > > |
|
|||
|
Re: Can we change cell color programatically?
Ooops. Just figured it out.
Silly me... I just needed to supply =$E$5 for the condition and it all works great. Thanks so much for your help. :-) -Mike "Mike" wrote: > Thanks Dave and Jim for your help. :-) > > This almost seems to work. It allows me to do what I want if I hard-code a > specific value into the conditional formatting setup. > However, it does not seem to allow me to specify that the conditional format > should be based off of the value within a particular cell, which is what I'd > really like for it to do. > > For example. I've specified cell E5 to contain a value of 145. If I then > specify in the conditional format: "Cell Value Is greater than or equal to > 145" Excel behaves how I want. > However, Excel does not seem to allow me to reference cell E5 (instead of > the hard-coded number 145) in the conditional formatting. > > Is there some what to specify a particular cell reference in the conditional > formatting? > > Thanks again :-) > > -Mike > > "Jim Rech" wrote: > > > Check out Conditional Formatting on the Format menu. > > > > -- > > Jim > > "Mike" <Mike@discussions.microsoft.com> wrote in message > > news:223C405C-3072-40BD-BCAA-CE0D78D5DDC7@microsoft.com... > > | Hi all > > | > > | I'm using Excel 2003. > > | Does Excel allow me to change the fill-color of a cell based upon the > > | contents of that cell? > > | > > | For example: If the formula of a cell calculates its value to be less > > then, > > | say, 100, I'd like to fill-color that cell to Green. Otherwise I'd like to > > | color that cell with no color. > > | > > | Is this possible? > > | > > | Thanks > > | > > | -Mike > > > > > > |
|
|||
|
Re: Can we change cell color programatically?
Change the drop down on the left of the Conditional Formatting dialog to
"Formula is". Now if you wanted the active cell to change format when E5 is 145 the formula you enter is =E5=145. Think of the formula you enter as a true/false. If it evaluates to True you get the format, else you don't. -- Jim "Mike" <Mike@discussions.microsoft.com> wrote in message news:2D330E46-E915-41C3-99BB-46BECFE65860@microsoft.com... | Thanks Dave and Jim for your help. :-) | | This almost seems to work. It allows me to do what I want if I hard-code a | specific value into the conditional formatting setup. | However, it does not seem to allow me to specify that the conditional format | should be based off of the value within a particular cell, which is what I'd | really like for it to do. | | For example. I've specified cell E5 to contain a value of 145. If I then | specify in the conditional format: "Cell Value Is greater than or equal to | 145" Excel behaves how I want. | However, Excel does not seem to allow me to reference cell E5 (instead of | the hard-coded number 145) in the conditional formatting. | | Is there some what to specify a particular cell reference in the conditional | formatting? | | Thanks again :-) | | -Mike | | "Jim Rech" wrote: | | > Check out Conditional Formatting on the Format menu. | > | > -- | > Jim | > "Mike" <Mike@discussions.microsoft.com> wrote in message | > news:223C405C-3072-40BD-BCAA-CE0D78D5DDC7@microsoft.com... | > | Hi all | > | | > | I'm using Excel 2003. | > | Does Excel allow me to change the fill-color of a cell based upon the | > | contents of that cell? | > | | > | For example: If the formula of a cell calculates its value to be less | > then, | > | say, 100, I'd like to fill-color that cell to Green. Otherwise I'd like to | > | color that cell with no color. | > | | > | Is this possible? | > | | > | Thanks | > | | > | -Mike | > | > | > |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|