SOLVED

How to change cells colours when an expiry date is coming to an end

%3CLINGO-SUB%20id%3D%22lingo-sub-2480088%22%20slang%3D%22en-US%22%3EHow%20to%20change%20cells%20colours%20when%20an%20expiry%20date%20is%20coming%20to%20an%20end%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2480088%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20make%20a%20training%20spreadsheet%20that%20has%20the%20cells%20change%20colour%20depending%20on%20how%20near%20the%20training%20is%20to%20expiring.%3C%2FP%3E%3CP%3EPlease%20can%20anyone%20help%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20anticipation%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2480088%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2480166%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20change%20cells%20colours%20when%20an%20expiry%20date%20is%20coming%20to%20an%20end%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2480166%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1086911%22%20target%3D%22_blank%22%3E%40belly101%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20Conditional%20Formatting%20for%20that.%20See%20for%20example%20%3CA%20href%3D%22https%3A%2F%2Fwww.excel-easy.com%2Fdata-analysis%2Fconditional-formatting.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EConditional%20Formatting%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20would%20like%20more%20help%2C%20please%20provide%20some%20details%20about%20your%20setup.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2480263%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20change%20cells%20colours%20when%20an%20expiry%20date%20is%20coming%20to%20an%20end%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2480263%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello%2C%20thank%20you%20for%20the%20information%20but%20I%20am%20still%20confused.%20I%20can%20change%20the%20colour%20manually%20but%20I%20want%20to%20be%20able%20to%20put%20a%20date%20into%20the%20cell%20(when%20the%20training%20has%20been%20completed)%20then%20have%20the%20cell%20automatically%20change%20from%20green%20to%20amber%20(when%20the%20training%20is%20one%20month%20from%20the%20annual%20date)%20to%20red%20on%20the%20expiry%20date.%20I%20have%20seen%20this%20somewhere%20but%20can%20seem%20to%20find%20how%20to%20do%20this.%3C%2FP%3E%3CP%3EPlease%20can%20you%20help%3F%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3ELee%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2480421%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20change%20cells%20colours%20when%20an%20expiry%20date%20is%20coming%20to%20an%20end%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2480421%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1086911%22%20target%3D%22_blank%22%3E%40belly101%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20attach%20a%20small%20sample%20workbook%20without%20sensitive%2Fproprietary%20information%20that%20shows%20your%20setup%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2480830%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20change%20cells%20colours%20when%20an%20expiry%20date%20is%20coming%20to%20an%20end%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2480830%22%20slang%3D%22en-US%22%3EName%20Fire%20Fisrt%20Aid%20GDPR%201%20Infection%20Lone%20Medication%20M%26amp%3BH%20Safeguarding%3CBR%20%2F%3EJ.%20Smith%2023.06.21%2025.07.21%3CBR%20%2F%3EP.%20Jones%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2480859%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20change%20cells%20colours%20when%20an%20expiry%20date%20is%20coming%20to%20an%20end%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2480859%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1086911%22%20target%3D%22_blank%22%3E%40belly101%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20afraid%20that%20doesn't%20help%20much.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I am trying to make a training spreadsheet that has the cells change colour depending on how near the training is to expiring.

Please can anyone help

 

Thank you in anticipation

15 Replies

@belly101 

You can use Conditional Formatting for that. See for example Conditional Formatting 

 

If you would like more help, please provide some details about your setup.

@Hans Vogelaar 

 

Hello, thank you for the information but I am still confused. I can change the colour manually but I want to be able to put a date into the cell (when the training has been completed) then have the cell automatically change from green to amber (when the training is one month from the annual date) to red on the expiry date. I have seen this somewhere but can seem to find how to do this.

Please can you help?

Thank you

Lee 

@belly101 

Could you attach a small sample workbook without sensitive/proprietary information that shows your setup?

Name Fire Fisrt Aid GDPR 1 Infection Lone Medication M&H Safeguarding
J. Smith 23.06.21 25.07.21
P. Jones

@belly101 

I'm afraid that doesn't help much.

I am sorry that I am such a neanderthal
I just want to make a spreadsheet where the cell automatically change when the mandatory training is nearing expiration and then again when they have expired,
Thank you for any help you can give
Lee

@belly101 

You can attach a sample workbook to a reply simply by dragging the workbook file into the box below the space where you compose a reply.

 

S0540.png

@Hans Vogelaar 

Hans

I have a similar question, and the answer may assist.

I would like to change the colour of a cell, depending on the context of another cell.

Possibly and if statement -

 if(A1>100, set Cell A1 fillcolor to green, set Cell A1 Fillcolor to Red) 

Now, I have used 'set Cell Fillcolor to ... and this is what I would like clarified, what should that be?

 

Thanks in anticipation

@Laino63 

You write

 


I would like to change the colour of a cell, depending on the context of another cell.

but you then mention only cell A1...

I also have a similar question. See if this helps us all get an answer.

In cell A1, if the number is equal to or greater then 1, then I would like cell A2 to turn orange.

Could you help with this example?

 

@LJones20 

Select cell A2.

On the Home tab of the ribbon, select Conditional Formatting > New Rule...

Select 'Use a formula to determine which cells to format'.

Enter the formula

 

=A1>=1

 

Click Format...

Activate the fill tab.

Select orange.

Click OK, then click OK again.

best response confirmed by belly101 (New Contributor)
Solution

 

@belly101 Is this the one that you are looking for? Manual insert /change date will auto change the color.date - conditioning format.PNG

@MeiChan1314 

Where do I find the "Edit Formatting Rule"? 

I found it under Conditional Formatting. It worked! Thanks so much!!!
Thanks so much! This will save me so much time!