Go Back   Cyber Tech Help Support Forums > Software > Applications

Notices

Reply
 
Topic Tools
  #1  
Old August 2nd, 2006, 09:14 AM
theothershane theothershane is offline
Senior Member
 
Join Date: Mar 2004
Posts: 180
Excel help wanted

Hello, Everyone...

Does anyone know if there is a way of getting Excel to change the colour of a cell background containing a date, as that date approaches today's date? I have a list with lots of dates in it and at the moment have to look at the whole thing to find appointments coming up etc. It would be really good if Excel could just show me when a date is (say) 30 days away, today, already gone etc. maybe by colouring them red, amber or green...

I know nothing about Excel...

thanks
Reply With Quote
  #2  
Old August 2nd, 2006, 03:58 PM
oracle128's Avatar
oracle128 oracle128 is offline
Α Ω
 
Join Date: Oct 2000
O/S: Windows XP Pro
Location: Melbourne, Australia
Age: 24
Posts: 9,401
You need Conditional Formatting. Select the cell that contains the date you want to check, then go to Format->Conditional Formatting.
Change the drop down box from "Cell Value Is" to "Formula Is".
In the formula text field, type: =AND($A$1-TODAY()<0,TODAY()-$A$1<=30)
where the cell you're in is cell A1, and you want to format the cell when the difference between the date in the cell and today's date is less than or equal to 30 (ie. the date in the cell is 30 days or less away from today).
Click the Format button, and format it how you want the cell to appear when that condition is true (eg. green background).
For every other possible condition you want to test for, click Add and repeat the steps.
You can test for 'today' by using this formula: =$A$1=TODAY() (amber)
You can test for a date that's passed with this formula: =$A$1-TODAY()>0 (red)
__________________
Oracle's backup tutorial

"A lot of people say games are addictive. Well, they're addictive in the sense that anything you like doing you repeat endlessly. But no one would say, 'Mr Kasparov, you have a chess problem,' or 'Tiger Woods, you have a golf addiction.'" - Ian Livingstone, Creative Director, Eidos.

"A problem well stated is a problem half solved" - Charles Franklin Kettering

Last edited by oracle128; August 2nd, 2006 at 04:27 PM.
Reply With Quote
  #3  
Old August 4th, 2006, 01:01 PM
theothershane theothershane is offline
Senior Member
 
Join Date: Mar 2004
Posts: 180
Exactly right. Thank you very much!
Reply With Quote
Reply

Bookmarks

Topic Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:10 PM.

[ RSS ]