Conditional formatting on specifica date ranges

SelinaR

Board Regular
Joined
Feb 2, 2012
Messages
65
Office Version
  1. 2021
Platform
  1. Windows
  2. Mobile
  3. Web
Hi there

I would like to put in cond. formatting on date ranges that will pick up from TODAY() - I have tried various options - pre set on excel and my own formula
of greater than, or equal to such as =TODAY() & =NOW() & DATEDIF, etc, but seem to be getting blank zones within the range and my formula's specific to today vs. 28 days from now . Please help - I am looking for more of a range that will format rather than an actual date to highlight

Example of rules (all feeding off of today &/or an input date):

1stWithin 28 Days (current)
2ndAfter 28 days (going to lapse)
3rd>29 days & up to 3 months
4thover 3 Months
5th>6 Months

<colgroup><col><col></colgroup><tbody>
</tbody>

Thanks so much for your help in advance.
Selina :)
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Is that you have a sheet of calendar, and subject to your input date, you would like Excel to CF those calendar dates according to your specified criteria?
 
Upvote 0
rule 1: highlight with yellow

Code:
=AND((D$3-TODAY())<=28,(D$3-TODAY())>=0)

2w7v02u0.png



rule 2 : - i did not understand it

rule 3: highlight with purple

Code:
=AND((D$3-TODAY())>29,(D$3-TODAY())<90)

2w7FteKz.png



rule 4: highlight with green

Code:
=(D$3-TODAY())>=90

2w7LPCZ5.png



rule 5: highlight with blue

Code:
=(XFA$3-TODAY())>180

2w7QusY2.png



all your conditional formatting rules should be referenced on the desired range.

use a relative reference in the formula,, no $ sign on column letter.
 
Upvote 0
Hiya thanks for that - its more like this:

scenario - have to contact a member within certain dates of a return to sender mail (not network days - total days)
1stWithin 28 Days (current) - green
2ndAfter 28 days (Up to maximum of 28 days from today's date) - orange
3rdover 29 days & up to 90 days - red
4th=>91 days to over 180 days - bright red.
5th=>181 days - maroon

<tbody>
</tbody>

Col A1
TODAY'S DATE
=TODAY() i.e 30/11

Col A Col B Col C
RTS DATE Priority Callback
01/12 1 Immediate
25/12 2 Yes
20/10 3 Attempt contact
20/07 4 Note and archive

*the conditional formatting is reading from: todays' date then the RTS date will have the priority colours

The conditional format - highlight rules - date occuring is great, but is only locked into this week, next week etc... blocks of time that are outside of my criteria.

Thanks
 
Upvote 0
*Date on RTA MailPriority2nd Method of Contact
(use drop down/type)
28/12/2015 Mobile
25/12/2015 Home no.
1/12/2015 Email
30/11/2015 Mobile
20/11/2015 Home no.
20/10/2015 Email
5/09/2015 All
1/12/2015

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Excel 2007
ABCDEF
1RTS DATEPriorityCallback1st rule=(($A2-TODAY())<=27)green
22015/12/11Immediate2nd rule=(($A2-TODAY())=28)orange
32015/12/252Yes3rd rule=AND(($A2-TODAY())>=29,($A2-TODAY())<90)red
42016/10/203Attempt contact4th rule=AND(($A2-TODAY())>=91,($A2-TODAY())<180)bright red
52016/7/204Note and archive5th rule=(($A2-TODAY())>=181)maroon
Sheet2
 
Last edited:
Upvote 0
Hiya

Thanks for the reply... my example was for the colour coding within ranges, so could you let me know which parameter your using in conditional Formatting:

CELL VALUE -- EQUAL TO -- and then putting in the formula or
FORMULA VALUES ?
*I've tried both options and it doesn't seem to be working for me - have I missed something?

Your formula looks sound, but is only coming off of a cell reference.... I require it to be against a range and attempted to input that, but not working either?
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top