Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2017, 11:47 PM
Old Old is offline Floating date range on a conditional format Windows 10 Floating date range on a conditional format Office 2007
Novice
Floating date range on a conditional format
 
Join Date: Nov 2016
Posts: 12
Old is on a distinguished road
Default Floating date range on a conditional format

I have a large spreadsheet that I monitor that I need to keep tabs on dates for. What I would like to do is have text that has occurred within the last 17-22 years from the current date be highlighted. I would achieve this by using a formula in the custom conditional formatting so that data in this range is immediately apparent, I am just striking out with figuring out the correct formula.



I currently manually update a set date range but would prefer to use a floating date range that uses today's date as the point of reference (conditionally format for any day that occurred between 17-22 years before today). Similarly I would like to set up conditional formatting that looks at dates that are between today and 30 days after today instead of within the current calendar month.

I am currently using Excel 2007.

Thank you for your help!

Last edited by Old; 06-22-2017 at 08:33 AM. Reason: Typo on units.
Reply With Quote
  #2  
Old 06-22-2017, 02:32 AM
ArviLaanemets ArviLaanemets is offline Floating date range on a conditional format Windows 8 Floating date range on a conditional format Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Is it 17-22 years or days?

When days, then (2 conditional formats, let's assume the date you are checking is in column A, the 1st data row is 2):

Select the range you want the conditional formats apply to (a single column in your table, several columns, or the whole table - minus header(s)).
Open Conditional formatting, apply 2 condition formulas and according formats.
1. =AND(($A2-17)>=TODAY();($A2-22)<=TODAY())
2. =AND(($A2+30)>=TODAY();($A2)<=TODAY())
Reply With Quote
  #3  
Old 06-22-2017, 08:32 AM
Old Old is offline Floating date range on a conditional format Windows 10 Floating date range on a conditional format Office 2007
Novice
Floating date range on a conditional format
 
Join Date: Nov 2016
Posts: 12
Old is on a distinguished road
Default

Oops it is years (old people should not stay up past midnight). Thank you!
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
Floating date range on a conditional format Find if Date range falls within another range Triadragon Excel 3 05-02-2016 11:48 AM
Conditional Formatting a Range Phil H Excel 3 02-17-2016 08:33 AM
Check if a Date falls within a date range OTPM Excel 7 02-03-2016 09:11 PM
Floating date range on a conditional format critical activity with floating end date ketanco Project 7 06-17-2014 10:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:01 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