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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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