Conditional Format

Fegal

Board Regular
Joined
Feb 2, 2013
Messages
101
Office Version
  1. 365
Platform
  1. Windows
Hello, please help.. my brain has the dumb.
column H is when the certificate was last acheived, I is the expiry of that cert.
I would like column I to be coloured to represent time left to renew.
If we have from today >= 547 days to expiry colour green, between 548 and 720 colour amber, more than 720 to 810 Red, 810 + Black...

hope you can help



National Training record 1.xlsx
HIJ
23Current14/09/2025
2417/06/2023
25Current17/12/2024
2619/09/2022
27Current14/09/2025
2817/06/2023
29Current29/12/2024
301/10/2022
31Current19/07/2024
3221/04/2022
33Current6/02/2025
349/11/2022
35Current14/09/2025
3617/06/2023
37Current15/04/2025
3816/01/2023
39Expired30/05/2023
401/03/2021
National Training
Cell Formulas
RangeFormula
H23,H39,H37,H35,H33,H31,H29,H27,H25H23=IF(H24<(TODAY()-820),$D$7,$D$4)
I23,I25,I27,I29,I31,I33,I35,I37,I39I23=IF($H24="","",H24+820)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H23:H116Cell Value=$D$7textNO
I23:I24Cell Value>$G$20>=547textNO
G23:I76,J23:AS148,G77:H80,G81:I92,G93:H94,G95:I102,G103:H104,G105:I116,G117:H148Cell Value=$D$5textNO
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Actually i have that wrong. this hurts the brain.
If 1.5 years from expiry green.
if today is less than 6 months from expiry amber.
less than 3 months from expiry red
expired black...
 
Upvote 0
@Fegal I think it is the fact that you have merged cells in I that is making this difficult.
Generally, try and avoid merged cells that impact upon formula outcome.
That said, I wonder if like below will help?
I have included a formula in F which illustrates how to get the difference in days. It is not necessary to keep that for the CF to work.
I have included example CF for Black and for Red. Hopefully Amber and Green can be added with revised day limits.

Book1
FGHI
23 Current9/14/25
24819.006/17/23
25 Current12/17/24
26548.009/19/22
27 Current9/14/25
28819.006/17/23
29 Current12/29/24
30560.0010/1/22
31 Current7/19/24
32397.004/21/22
33 Current9/7/23
3481.006/9/21
35 Current9/14/25
36819.006/17/23
37 Current4/15/25
38667.001/16/23
39 Expired5/30/23
40-19.003/1/21
41
National Training
Cell Formulas
RangeFormula
I23,I25,I27,I29,I31,I33,I35,I37,I39I23=IF($H24="","",H24+820)
F23:F40F23=IF(ISNUMBER(H23),MAX(I23,I22)-TODAY(),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H23:H40Expression=AND(ISNUMBER(H24),MAX(I23,I24)-TODAY()<=0)textNO
H23:H40Expression=AND(ISNUMBER(H24),MAX(I23,I24)-TODAY()<=91)textNO
 
Upvote 0
Similar, I like the isnumber() from previous answer, didn't think of it.

Book1
HI
23currentSeptember 15, 2023
24June 17, 2021
25currentSeptember 17, 2023
26June 19, 2021
27currentSeptember 23, 2023
28June 25, 2021
29currentDecember 29, 2024
30October 1, 2022
31expiredJuly 20, 2022
32April 21, 2020
33currentFebruary 6, 2025
34November 9, 2022
35currentSeptember 14, 2025
36June 17, 2023
37currentApril 15, 2025
38January 16, 2023
39expiredApril 3, 2023
40January 3, 2021
Sheet1
Cell Formulas
RangeFormula
H23,H39,H37,H35,H33,H31,H29,H27,H25H23=IF(H24<(TODAY()-820),$B$7,$B$4)
I23,I25,I27,I29,I31,I33,I35,I37,I39I23=IF($H24="","",H24+820)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I23:I40Expression=AND(I23<>"",I23-TODAY()>180)textNO
I23:I40Expression=AND(I23<>"",I23-TODAY()>90,I23-TODAY()<=180)textNO
I23:I40Expression=AND(I23<>"",I23-TODAY()>0,I23-TODAY()<=90)textNO
I23:I40Expression=I23-TODAY()<=0textNO
 
Upvote 0
Solution

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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