Fill Cell Based on Date

slparadise

New Member
Joined
Jan 30, 2015
Messages
16
I have a spreadsheet with various inspection dates. I would like the fill of each cell to change based on the current date versus the expected date of the inspection.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Inspection[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]Plumbing[/TD]
[TD]4/14/2019[/TD]
[/TR]
[TR]
[TD]Electric[/TD]
[TD]4/16/2019[/TD]
[/TR]
[TR]
[TD]Decking[/TD]
[TD]4/18/2019[/TD]
[/TR]
[TR]
[TD]Final[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

What I would like is for dates that have passed (Plumbing) to have a red fill, dates that are equal to the current date to have a blue fill, dates that have not yet occurred to have a yellow fill, and blank cells to have no fill.

Thanks for any help... I appreciate it
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Select the range of cells you want to format & in Conditional Formatting, Use a formula
=B2<today() for="" red
=B2=TODAY() for blue
=B2>TODAY() for yellow
 
Last edited:
Upvote 0
Just realised that the board ate the formulae, so I have corrected it.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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