Conditional formatting formula for date depending on name

HaudYerWeesht

New Member
Joined
Jun 9, 2016
Messages
17
Office Version
  1. 2016
Platform
  1. Windows
I have a training spreadsheet and in column I, I have conditional formatting so when the date expires it turns red - =TODAY()-I6>=365

However I have more than one training course on the spreadsheet in column G which expire at different periods. Security awareness expires after one year but environmental awareness expires after 3 years. Is there a formula that can incorporate the TODAY formula depending on the name of the course?

Thank you
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Sure. Probably use the VLOOKUP formula to lookup the expiration period associated with a training course, and then return that value. If it is in years, just multiply that by 365 in your formula.
So your formula may look something like:
Code:
[COLOR=#333333] =TODAY()-I6>=(365*VLOOKUP(...))[/COLOR]

If you need help on VLOOKUP, see: https://exceljet.net/excel-functions/excel-vlookup-function
 
Upvote 0
Maybe something like

Book1
HIJKLM
2Security awareness5/26/2018TRUESecurity awareness
3environmental awareness5/26/2018FALSEenvironmental awareness
4training72/7/2019TRUEtraining1
5training2
6training3
7training4
8training5
9training6
10training7
Sheet1
Cell Formulas
RangeFormula
K2=TODAY()-I2>=CHOOSE(MATCH(H2,$M$2:$M$10,0),365,1095,730,30,44,55,650,77,90)
K3=TODAY()-I3>=CHOOSE(MATCH(H3,$M$2:$M$10,0),365,1095,730,30,44,55,650,77,90)
K4=TODAY()-I4>=CHOOSE(MATCH(H4,$M$2:$M$10,0),365,1095,730,30,44,55,650,77,90)


list all the course somewhere and then in choose formula list the days in the same order as you list
 
Upvote 0
Solution
Works a treat, thank you so much
:biggrin:
I don't understand - you weren't the one who asked this question.
Did you intend to post to another thread?
 
Upvote 0
Sorry. I forgot the log in details from my first account so I opened a new account then I started this thread with the original details but somehow when I click the link from the email it shows the new details. I don’t know why!
 
Upvote 0

Forum statistics

Threads
1,223,746
Messages
6,174,258
Members
452,553
Latest member
red83

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