Formula for expiring dates

lillyoriel

New Member
Joined
Jun 28, 2022
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi, I am really a beginner at excel so please be kind.
At my work, I have been asked to create a spreadsheet to indicate when each employee's inductions are going to expire.
I am hoping there is a way I can put the date in and if its current, its green, if it is a month of expiring it is yellow and if it has expired it is red.
What kind of formula can I use to make this happen??
Thanks so much for your help!!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Conditional formatting is the way to go. Not sure if you're referring to the font or the fill, so here's an example of both.

lillyoriel.xlsx
A
1Expiry date
227/9/2022
316/9/2022
416/7/2022
5
6
727/9/2022
816/9/2022
916/8/2022
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A7:A9Expression=A7<TODAY()textNO
A7:A9Expression=A7>EDATE(TODAY(),1)textNO
A7:A9Expression=A7<=EDATE(TODAY(),1)textNO
A2:A4Expression=A2<TODAY()textNO
A2:A4Expression=A2>EDATE(TODAY(),1)textNO
A2:A4Expression=A2<=EDATE(TODAY(),1)textNO
 
Upvote 0
Thank you, that looks good.
Just wondering how you set the formula up in conditional formatting
 
Upvote 0
Thank you, that looks good.
Just wondering how you set the formula up in conditional formatting
From the Home menu, select Conditional Formatting / New Rule / Use a formula to determine which cells to format

Then in the box Format values where this formula is true: you can copy & paste the formulas I provided (and adjust the reference cells/ranges to apply to)
 
Upvote 0
From the Home menu, select Conditional Formatting / New Rule / Use a formula to determine which cells to format

Then in the box Format values where this formula is true: you can copy & paste the formulas I provided (and adjust the reference cells/ranges to apply to)
Thank you!! Can you see anything that I am doing wrong here?
 

Attachments

  • Capture.PNG
    Capture.PNG
    61.6 KB · Views: 13
Upvote 0
It should look like this (given the range you seem to be covering)
Please note I've amended the formula.

1660708861941.png
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,209
Members
453,023
Latest member
alabaz

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