Conditional Formatting of Date based on Today's Date

Rajendra_kodavaty

New Member
Joined
Oct 12, 2015
Messages
23
Hey Team,

Thanks for your support along the way.

I Have a column CLR timeline that has dates as below, which are actually a result of the formula of a different column
CLR Time line
16-Nov-17
17-Dec-17
16-Nov-17
16-Nov-17
16-Sep-17
17-Jan-18
14-Feb-18
17-Oct-17
17-Oct-17
17-Oct-17
16-Nov-17
17-Oct-17
16-Nov-17
16-Nov-17
17-Oct-17
16-Nov-17
14-Feb-18
16-Nov-17
17-Jan-18
24-Nov-17
25-Jan-18
22-Feb-18

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

I wanted to apply conditional formatting to this particular column, where if the
  • Difference between that date and today's date is >= 30 then Cell will be green
  • Number of days between the timeline and today's date is >= 20& <30 then cells should turn Yellow
  • The difference in number of days is <20 the Cells should turn Red.

I am not able to find this option to apply today's date in Conditional formatting. Any suggestions are appreciated

Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

ttray33y

Board Regular
Joined
Nov 10, 2015
Messages
246
hey team,

thanks for your support along the way.

I have a column clr timeline that has dates as below, which are actually a result of the formula of a different column
clr time line
16-nov-17
17-dec-17
16-nov-17
16-nov-17
16-sep-17
17-jan-18
14-feb-18
17-oct-17
17-oct-17
17-oct-17
16-nov-17
17-oct-17
16-nov-17
16-nov-17
17-oct-17
16-nov-17
14-feb-18
16-nov-17
17-jan-18
24-nov-17
25-jan-18
22-feb-18

<tbody>
</tbody>

i wanted to apply conditional formatting to this particular column, where if the
  • difference between that date and today's date is >= 30 then cell will be green
  • number of days between the timeline and today's date is >= 20& <30 then cells should turn yellow
  • the difference in number of days is <20 the cells should turn red.

i am not able to find this option to apply today's date in conditional formatting. Any suggestions are appreciated

thanks

Code:
green
=if(($a2-today())>=30,true,false)

yellow
=if(($a2-1)-(today()-1)>=20,true,false)

red
=if(($a2-today())<20,true,false)
 

Watch MrExcel Video

Forum statistics

Threads
1,129,580
Messages
5,637,211
Members
416,961
Latest member
sigrid6940

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
Top