make cells change color based on date

ahitchcox

New Member
Joined
May 11, 2018
Messages
1
I have a very large excel spreadsheet (excel 2016) that is used to track a bunch of gear that is issued out to individual people. Basically I have a column with serial number, a column with inspection dates, a column with issued dates, and a column with names. The gear I have in this log has to be inspected every three years but a lot of these equipment has different inspection dates.

I'm trying to make it so excel will automatically make the persons name turn yellow when it's been 2 years since the last inspection and then turn red when it's 2.5 years after the last inspection.

Is there a way to do this?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
You can use Conditional Formatting.

You will need one rule for each color
Select the cells with the name
Select Conditional Formatting
New Rule
Use a formula to determine which cells to format
for yellow use change A2 to the cell that has the last inspection date. note: Excel will update the cell referenced as it goes to other rows
Code:
=TODAY()-A2>730
select your formatting then press OK

repeat for red but use
Code:
=TODAY()-A2>1095
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,631
Members
449,241
Latest member
NoniJ

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