Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default cell colour change when set markers are reached

i need to get a cell to change colour when markers are reached eg
a qualification lasts 12 months. what i want to do is have the cell change
from yellow to orange to red as the expiry date gets closer.


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,646
Default cell colour change when set markers are reached


If column A contains expiry dates then select column A,
FormatsConditional Formattingformula1:
=DATEDIF(TODAY(),A1,"m")<1 red for 1 month
Click Add button, formula2:
=DATEDIF(TODAY(),A1,"m")<2 orange for 2 month
Click Add button, formula3:
=DATEDIF(TODAY(),A1,"m")<3 yellow for 3 month

Adjust number of months as you like!

Regards,
Stefi

€˛balding rapidly!€¯ ezt Ć*rta:

i need to get a cell to change colour when markers are reached eg
a qualification lasts 12 months. what i want to do is have the cell change
from yellow to orange to red as the expiry date gets closer.


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,346
Default cell colour change when set markers are reached

Hi,

Lets say you want it to change color as you get within 30, and 60 days:

To conditionally format your cell(s):

In 2003:
1. Select the cells you want to format
2. Choose Format, Conditional Formatting
3. Choose Formula is from the first drop down
4. In the second box enter the formula:
=A1-TODAY()<=30
5. Click the Format button
6. Choose a color on the Patterns tab (or any available option)
7. Click OK one.
8. Click Add
9. For Condition 2, from the first drop down pick Formula is
10. In the second box enter the formula:
=A1-TODAY()<=60
11. Click the Format button
1. Choose a color and click OK twice.

In 2007:
1. Highlight all the cells on the rows you want formatted
2. Choose Home, Conditional Formatting, Manage Rules, New Rule
3. Choose Use a formula to determine which cell to format
4. In the Format values where this formula is true enter the following
formula:
=A1-TODAY()<=30
5. Click the Format button and choose a format.
6. Click OK twice
7. New Rule
8. Choose Use a formula to determine which cell to format
9. In the Format values where this formula is true enter the following
formula:
=A1-TODAY()<=60
10. Click the Format button and choose a format.
11. Click OK tree times.

Now with these formulas anything before today will format as<=30 days. You
can use fancier formulas to deal with this, for example in 2007 you could add
another condition =A1<TODAY() choose no format and make it the first
condition and click Stop If True.

Keep in mind that in 2003 you only have 3 conditions possible, if you want
more you will need to use code.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"balding rapidly!" wrote:

i need to get a cell to change colour when markers are reached eg
a qualification lasts 12 months. what i want to do is have the cell change
from yellow to orange to red as the expiry date gets closer.


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
Cell colour change. Spaceace Excel Worksheet Functions 0 June 26th 08 04:11 PM
Change Cell colour CD01 Excel Discussion (Misc queries) 7 February 16th 07 09:30 AM
Change cell color when a percentage is reached Ron C Excel Discussion (Misc queries) 1 October 24th 06 09:33 PM
change a cell background colour to my own RGB colour requirements Stephen Doughty Excel Discussion (Misc queries) 4 June 16th 06 01:08 PM
cell colour change anthony Excel Worksheet Functions 2 May 16th 05 12:22 PM


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