Conditional formatting for tracking training and highlight cells

yewkey

New Member
Joined
Jan 12, 2023
Messages
16
Office Version
  1. 365
  2. 2019
  3. 2010
Platform
  1. Windows
  2. Mobile
Hi All,

Happy New Year to all, hoping you're all well.

I am trying to create a training spreadsheet that will track training and highlight the cells with green, Amber and red accordingly when training is in date, close to expiry and expired.

The training needs to be renewed on a 6 monthly basis.

Example: if training was done today upto and including 5 months from today the cell would remain green.

From the 5th month until 1 day before expiry should turn Amber and then on the day of the 6th month be red.

Once training has been completed and the new date input should turn green again and repeat.

I hope this makes sense, I'm sure it's probably quite basic but all of my excel training has been self taught from youtube/Google so please be kind.

I'm thinking it's something with using =today but can't quite figure it out, I'm hoping your expertise will be able to help me.

Many Thanks All

Yewkey
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
i have used 3 rules
RED
=AND(B2<>"",B2<=TODAY())
AMBER
=AND(B2<=TODAY(),B2>=DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())))
GREEN
=B2>=DATE(YEAR(TODAY()),MONTH(TODAY())-5,DAY(TODAY()))

and put in order Amber, Green, Red and used STOP IF TRUE

for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
B2:B100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=AND(B2<>"",B2<=TODAY())

Format [Number, Font, Border, Fill] FILL RED
choose the format you would like to apply when the condition is true
OK >> OK

repeat for other rules

column C,D,E,F are just for show - so you see the formula working - NOT actually NEEDED

Book26
ABCDEF
1namedateREDAMBerGreenmonths
25/1/22TRUEFALSEFALSE9
36/1/22TRUEFALSEFALSE8
47/1/22TRUEFALSEFALSE7
58/1/22TRUEFALSEFALSE6
69/1/22TRUEFALSETRUE5
710/1/22TRUEFALSETRUE4
811/1/22TRUEFALSETRUE3
912/1/22TRUEFALSETRUE2
1012/10/22TRUEFALSETRUE2
1112/11/22TRUEFALSETRUE2
1212/12/22TRUEFALSETRUE2
1312/13/22TRUETRUETRUE1
1412/14/22TRUETRUETRUE1
1512/15/22TRUETRUETRUE1
1612/16/22TRUETRUETRUE1
1712/17/22TRUETRUETRUE1
1812/18/22TRUETRUETRUE1
191/13/23TRUETRUETRUE1
201/14/23FALSEFALSETRUE#NUM!
211/21/23FALSEFALSETRUE#NUM!
221/22/23FALSEFALSETRUE#NUM!
231/23/23FALSEFALSETRUE#NUM!
241/24/23FALSEFALSETRUE#NUM!
251/25/23FALSEFALSETRUE#NUM!
261/26/23FALSEFALSETRUE#NUM!
273/1/23FALSEFALSETRUE#NUM!
Sheet1
Cell Formulas
RangeFormula
C2:C27C2=AND(B2<>"",B2<=TODAY())
D2:D27D2=AND(B2<=TODAY(),B2>=DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())))
E2:E27E2=B2>=DATE(YEAR(TODAY()),MONTH(TODAY())-5,DAY(TODAY()))
F2:F27F2=MONTH(TODAY()-B2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B:BExpression=AND(B1<=TODAY(),B1>=DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())))textNO
B:BExpression=B1>=DATE(YEAR(TODAY()),MONTH(TODAY())-5,DAY(TODAY()))textYES
B:BExpression=AND(B1<>"",B1<=TODAY())textNO
 
Upvote 0
Hi etaf,

Thank you for your response and help.

I have tried the above but it doesn't seem to be working the way I need it to.

I may have been unclear with my initial request of what I'm looking to achieve.

Training takes place on a 6 monthly basis, if I did training today I would be valid for the next six months including today.

I want the cells to fill green today upto and including the 5th month.

From the 5th month until 1 day before training to remain amber to show it's nearing to renewal.

Red from the day of exactly six months from today to show it's expired until training has been completed again where it should turn back green.

I'm based in the UK so the dates we tend to use are dd/mm/yyyy, I don't know wether this will have had an affect as to why the formulas you gave are not working as I'm wanting.

So sorry for being a pain and greatly appreciate all the help and advice given.

Yewkey
 
Upvote 0
I'm also in UK and the dates change to US version on xl2bb
whne you click on the copy - the symbol under the F(x)
you should be able to paste into a spreadsheet - and the dates should match your system, may appear as numbers and then just format as date

I have saved on dropbox

i thought thats the info i had provided

can you show where its wrong

Red for dates in row 2-5
Green for dates in row 6-12
Amber for dates in row 13 - 19

and in my example future dates are also green - but maybe not needed

I only keep on dropbox for a few days



Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
Hi etaf,

I've added a sample sheet onto Dropbox, how can I now share this with you?

Yewkey
 
Upvote 0
put the link on here
make sure its for everyone to see - otherwise you have to add emails to validate
 
Upvote 0
link wants me to go to onedrive - a URL from dropbox
BookYuksel Ali's OneDriveView more actions to take on Book 10m ago. .url
 
Upvote 0
I'm copy and attaching the link from Dropbox here, what am I doing wrong?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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