Conditional formatting to determine when long service award due

Prish

Board Regular
Joined
Mar 30, 2016
Messages
91
Hi, I want to calculate when a long service award is due 6 months in advance based of today's date for each category, hopefully by highlighting the cell with conditional formatting.

This is my data:
ABCDEF
Person 1
Person 2
Person 3
Person 4

<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]Today:[/TD]
[TD="align: center"]22-Oct-18[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]
[TD="align: center"]NAME[/TD]
[TD="align: center"]START DATE[/TD]
[TD="align: center"]LENGTH OF SERVICE[/TD]
[TD="align: center"]15Yr Award Due[/TD]
[TD="align: center"]20Yr Award Due[/TD]
[TD="align: center"]25Yr Award Due[/TD]

[TD="align: center"]4[/TD]

[TD="align: center"]01 Jul 2003[/TD]
[TD="align: center"]15 years, 3 months[/TD]
[TD="align: center"]01 Jul 2018[/TD]
[TD="align: center"]01 Jul 2023[/TD]
[TD="align: center"]01 Jul 2028[/TD]

[TD="align: center"]5[/TD]

[TD="align: center"]01 Nov 2003[/TD]
[TD="align: center"]14 years, 11 months[/TD]
[TD="align: center"]01 Nov 2018[/TD]
[TD="align: center"]01 Nov 2023[/TD]
[TD="align: center"]01 Nov 2028[/TD]

[TD="align: center"]6[/TD]

[TD="align: center"]01 Jan 1999[/TD]
[TD="align: center"]19 years, 9 months[/TD]
[TD="align: center"]01 Jan 2014[/TD]
[TD="align: center"]01 Jan 2019[/TD]
[TD="align: center"]01 Jan 2024[/TD]

[TD="align: center"]7[/TD]

[TD="align: center"]01 Feb 1994[/TD]
[TD="align: center"]24 years, 8 months[/TD]
[TD="align: center"]01 Feb 2009[/TD]
[TD="align: center"]01 Feb 2014[/TD]
[TD="align: center"]01 Feb 2019[/TD]

</tbody>
Sheet1 (2)

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas (First Row only)[TABLE="width: 100%"]
<tbody>[TR]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH]B1[/TH]
[TD="align: left"]=TODAY()[/TD]
[/TR]
[TR]
[TH]C4[/TH]
[TD="align: left"]=IF(B4="","",DATEDIF(B4,$B$1,"y")&" years, "&MOD(DATEDIF(B4,$B$1,"m"),12)&" months")[/TD]
[/TR]
[TR]
[TH]D4[/TH]
[TD="align: left"]=DATE(YEAR(B4)+15,MONTH(B4),DAY(B4))[/TD]
[/TR]
[TR]
[TH]E4[/TH]
[TD="align: left"]=DATE(YEAR(B4)+20,MONTH(B4),DAY(B4))[/TD]
[/TR]
[TR]
[TH]F4[/TH]
[TD="align: left"]=DATE(YEAR(B4)+25,MONTH(B4),DAY(B4))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]



And this is the result I want to achieve:
ABCDEF
Person 1
Person 2
Person 3
Person 4

<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]Today:[/TD]
[TD="align: center"]22-Oct-18[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]
[TD="align: center"]NAME[/TD]
[TD="align: center"]START DATE[/TD]
[TD="align: center"]LENGTH OF SERVICE[/TD]
[TD="align: center"]15Yr Award Due[/TD]
[TD="align: center"]20Yr Award Due[/TD]
[TD="align: center"]25Yr Award Due[/TD]

[TD="align: center"]4[/TD]

[TD="align: center"]01 Jul 2003[/TD]
[TD="align: center"]15 years, 3 months[/TD]
[TD="align: center"]01 Jul 2018[/TD]
[TD="align: center"]01 Jul 2023[/TD]
[TD="align: center"]01 Jul 2028[/TD]

[TD="align: center"]5[/TD]

[TD="align: center"]01 Nov 2003[/TD]
[TD="align: center"]14 years, 11 months[/TD]
[TD="align: center"] 01 Nov 2018 [/TD]
[TD="align: center"]01 Nov 2023[/TD]
[TD="align: center"]01 Nov 2028[/TD]

[TD="align: center"]6[/TD]

[TD="align: center"]01 Jan 1999[/TD]
[TD="align: center"]19 years, 9 months[/TD]
[TD="align: center"]01 Jan 2014[/TD]
[TD="align: center"] 01 Jan 2019 [/TD]
[TD="align: center"]01 Jan 2024[/TD]

[TD="align: center"]7[/TD]

[TD="align: center"]01 Feb 1994[/TD]
[TD="align: center"]24 years, 8 months[/TD]
[TD="align: center"]01 Feb 2009[/TD]
[TD="align: center"]01 Feb 2014[/TD]
[TD="align: center"] 01 Feb 2019 [/TD]

</tbody>
Sheet1

 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
how about
=AND(E4<=EDATE(TODAY(),6),E4>TODAY())
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,195
Members
452,616
Latest member
intern444

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