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.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-01-2008, 06:10 PM
=?Utf-8?B?TWlrZQ==?=
 
Posts: n/a
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
Reply With Quote
  #2 (permalink)  
Old 05-01-2008, 06:49 PM
Dave Peterson
 
Posts: n/a
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
Reply With Quote
  #3 (permalink)  
Old 05-01-2008, 06:53 PM
Jim Rech
 
Posts: n/a
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


Reply With Quote
  #4 (permalink)  
Old 05-02-2008, 06:05 PM
=?Utf-8?B?TWlrZQ==?=
 
Posts: n/a
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
>
>
>

Reply With Quote
  #5 (permalink)  
Old 05-02-2008, 06:14 PM
=?Utf-8?B?TWlrZQ==?=
 
Posts: n/a
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
> >
> >
> >

Reply With Quote
  #6 (permalink)  
Old 05-02-2008, 06:19 PM
Jim Rech
 
Posts: n/a
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
| >
| >
| >


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:05 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Electricity Suppliers | Western Union | Mobile Phones | Auto Repair Manual | Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114