Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default change cell color within a formula...

I have this formula working in me Excel document
=IF(A1=39295; "OK"; "Not OK")

It works! It is a big deal for i´m not a programmer!

But what I need, instead of "OK" and "NOT OK" is to change the cell color.
OK - black #000000
NOT OK = orange #FF6600

Is this possible?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default change cell color within a formula...

Take a look at Format|Conditional formatting.

You can specify up to 3 conditions (in xl2003 and below) and specify the
colors/formatting that you like.

rdeap wrote:

I have this formula working in me Excel document
=IF(A1=39295; "OK"; "Not OK")

It works! It is a big deal for i´m not a programmer!

But what I need, instead of "OK" and "NOT OK" is to change the cell color.
OK - black #000000
NOT OK = orange #FF6600

Is this possible?
Thanks.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default change cell color within a formula...

Look in Excel help for "conditional formatting".
--
David Biddulph

"rdeap" wrote in message
...
I have this formula working in me Excel document
=IF(A1=39295; "OK"; "Not OK")

It works! It is a big deal for i´m not a programmer!

But what I need, instead of "OK" and "NOT OK" is to change the cell color.
OK - black #000000
NOT OK = orange #FF6600

Is this possible?
Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default change cell color within a formula...

Thanks but it didnt work. Its difficult to me.
I´m using Office2007. I found the conditional format but I dont know how to
use it. It goes all wrong...

///////////////////////////////////

What im tryng to do is to highlight a cell that represents 'today'.
i have H1 to AK1 to change the color (it representes the 30 days for august)

the idea is:
today is orange
not today is black.

///////////////////////////////////

in A1 i have today() today 8/8 is 39302

in H1 (that represents 01/08/2007 / 39295) i have:
=IF(A1=39295; "OK"; "Not OK")

in each cell that i want to color, i have a number that represents its day
for august, it goes from 39295 to 9332a (01/08 - 30/08)

Maybe its not this way, isnt it?
For what i looked at the conditional format I could not use my formula...
But thanks anyway

////////////////////////////////////
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default change cell color within a formula...

I did it. Thanks!
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
If Formula to change cell color Nora Najem Excel Discussion (Misc queries) 2 October 12th 06 12:58 PM
Change font/cell color by Formula exutable Excel Worksheet Functions 4 April 24th 06 03:08 PM
Change color in cell if contains formula? Wind54Surfer Excel Discussion (Misc queries) 8 July 17th 05 11:40 PM
Cell color change in formula Layth Excel Worksheet Functions 2 February 22nd 05 06:54 PM
How do I create formula to change cell color excel formula Excel Worksheet Functions 2 December 29th 04 08:13 PM


All times are GMT +1. The time now is 06:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"