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.

InspectionDate
Plumbing4/14/2019
Electric4/16/2019
Decking4/18/2019
Final

<tbody>
</tbody>

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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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