Formula/macro help with Dates?

Dpcombs

New Member
Joined
May 6, 2019
Messages
11
Good afternoon guys/girls!

I am am new to this board and pretty much to excel so I reach out to all you experts for some very much needed help as I need this for my job role.

I am recording training for staff at work and require a traffic light system for training dates, I require the following cells to change colour

. When training is in date the cell automatically goes green.
. When training is coming up to the last month before expiry the cell goes orange/amber.
. When the training date expires the cell automatically goes red.

could somebody please help or guide me how to do this please?


 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Re: Formula/macro help with Dates?e

Hi & welcome to MrExcel.
Something like


Excel 2013/2016
AB
1NameOwner
2Tom Pearce01/01/2019
3Bill Brewer23/04/2019
4Jan Stewer10/05/2019
5Peter Gurney05/06/2019
6Peter Davy10/06/2019
7Dan'l Whiddon23/12/2019
8Harry Hawke24/01/2020
Database


Using conditional formatting with the following Formulae
Red: =B2<TODAY()
Amber: =B2<=EDATE(TODAY(),1)
Green: =B2>=TODAY()

with Applies to range as B2:B8
 
Upvote 0
Re: Formula/macro help with Dates?e

Hi, firstly thank you for taking the time out to reply to my thread!
yes the is exactly what I need so basically 01/01/2019 training is in date and training runs out on 01/06/2019

.01/01/2019 cell will automatically change to green
.01/05/2019 cell will automatically change to amber as its in month before expiry
.01/06/2019 cell will automatically change to red as it as now expired
 
Upvote 0
Re: Formula/macro help with Dates?e

Select the cells you want it to work on (in my example B2:B8), then on the Home tab select conditional formatting > New rule > Use a formula
and for red use =B2< TODAY()
for amber use =B2<=EDATE(TODAY(),1)
& green =B2>=TODAY()
 
Upvote 0
Re: Formula/macro help with Dates?e

Select the cells you want it to work on (in my example B2:B8), then on the Home tab select conditional formatting > New rule > Use a formula
and for red use =B2< TODAY()
for amber use =B2<=EDATE(TODAY(),1)
& green =B2>=TODAY()

Thank you for the help, I will give these a try and hopefully carry out my first task successfully

Kind regards, Damian
 
Upvote 0
Re: Formula/macro help with Dates?e

You're welcome & thanks for the feedback
 
Upvote 0
Re: Formula/macro help with Dates?e

Good morning,

Hope you are well!

I am really struggling with this (sorry) as I’m only just learning this side of excel as it as mainly always been done for me.

would it be possible if you could take the time to guide me through it (baby steps), it would be very much appreciated

regards, Damian
 
Upvote 0
Re: Formula/macro help with Dates?e

What is the range you want this to work on?
 
Upvote 0
Re: Formula/macro help with Dates?e

in terms of what my friend? I'm probably coming across as very stupid but only just learning how excel works as a beginner especially trying to manipulate data! I just want the cells to automatically change colour ie when the current training is in date it stays green then a month before expiry it turns amber and then once the training expiry date arrives it automically turns red which hopefully by turning amber will then remind me to re train my staff on lets say manual handling course. these courses have a 12 month date on them.
 
Upvote 0
Re: Formula/macro help with Dates?e

Which cells do you want to change colour?
 
Upvote 0

Forum statistics

Threads
1,215,080
Messages
6,123,013
Members
449,093
Latest member
ikke

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