Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2017, 05:32 PM
Sueade Sueade is offline Date changes colour with age Windows XP Date changes colour with age Office 2013
Novice
Date changes colour with age
 
Join Date: Jun 2015
Posts: 6
Sueade is on a distinguished road
Smile Date changes colour with age

Hi... I have a spread sheet I would like the date to change colour as the date gets older.

So when I enter todays date 12/06/2017 it will be green, in 6 months time I would like this date to change to orange and then in a years time I would like it to turn red.



how do I set this up please? TIA
Reply With Quote
  #2  
Old 06-12-2017, 05:16 AM
NBVC's Avatar
NBVC NBVC is offline Date changes colour with age Windows 7 64bit Date changes colour with age Office 2007
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

Use Conditional Formatting....

Select the cell and go to Home|Conditional Formatting, New Rule.

Select "format only cells that contain"

in the Rules description area...

Cell Value is >> Equal to >> =TODAY()

Click Format and choose from Fill tab.

Click Ok, click New Rule

Select "use a formula to determine which cells to format" then enter:

=AND(DATEDIF(A2,TODAY(),"m")>=6,DATEDIF(A2,TODAY() ,"m")<=12)

where A2 contains the date...

Click Format and choose from Fill tab.

Click Ok, click New rule and repeat as above with Rule

=DATEDIF(A2,TODAY(),"m")>12)
Reply With Quote
  #3  
Old 06-18-2017, 03:50 PM
Sueade Sueade is offline Date changes colour with age Windows XP Date changes colour with age Office 2013
Novice
Date changes colour with age
 
Join Date: Jun 2015
Posts: 6
Sueade is on a distinguished road
Default

Thank you so much for getting back to me NBVC,

I have 2 working the first date and the 12 month date.

but the 6 month old date isn't working

=AND(DATEDIF(A2,TODAY(),"m")>=6,DATEDIF(A2,TODAY() ,"m")<=12)

the above formula doesn't do anything if the date is 6 months older than todays date....

Is there a way to make the colour stay in place for the full 6 months? So from today thru to 6months time it stays green. Then from 6month to 12 months its orange and then 12months old it stays red?

What am I doing wrong haha
Reply With Quote
  #4  
Old 06-20-2017, 05:39 AM
NBVC's Avatar
NBVC NBVC is offline Date changes colour with age Windows 10 Date changes colour with age Office 2013
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

Hi,

Sorry have been away for a few days...

For me it works.

The only change I would recommend is with the first formula... instead of just =TODAY(), use formula: =AND(A2<=TODAY(),DATEDIF(A2,TODAY(),"m")<6) this will keep it green until 6 months old...
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Project 2016 print specific date range stuck on one date martinsalmon Project 1 10-12-2016 11:36 AM
Date changes colour with age Date picker content control to always show current date. lucky16 Word VBA 2 07-01-2016 01:14 PM
Project 2013 - Change GANTT Bar Colour By Main Task Date CaelanT Project 1 02-09-2015 12:50 PM
Date changes colour with age How can a document have the same date modified/create date, yes have have actual file content? legaleagle Word 15 01-07-2015 06:58 PM
Excel pivot table with a DATE value field for some reason stops at a certain date angie450 Excel Programming 2 08-19-2014 08:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:30 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft