Conditional Formate based on DATE?

lpking2005

Board Regular
Joined
Mar 21, 2011
Messages
140
hi,

I currently have a spreadsheet with loads of different cells that i have to input a different date into manually.

What im having trouble with is getting it to turn green when i put a new date in, but i need it to turn red a year later.

Any help would be much appreciated. THANKS.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Do you mean you want it to be green if the date is within the last year (from the current date) and red if not OR do you mean you want to keep a record of when the date has been entered into the cell and colour the date cell red after 1 year has passed (so essentially it doesn't matter what actual date is entered into the cell)?

The latter is more complicated and would require VBA.
 
Upvote 0
Try the conditional formatting formulas:

Red =AND(ISNUMBER(A1),(TODAY()-A1)>365)
Green =ISNUMBER(A1)

Change the range reference to suit.
 
Upvote 0
basically, i have a list of peoples names and training tasks.

I have to input a date on which they were trained into the correct cell, i need that cell to turn green for a new date that is inputted.
Then i need that cell to turn red a year later when they need refresher training.

I hope that helps more in understanding.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,634
Members
452,934
Latest member
Jdsonne31

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