Conditional Format for end of date range

Chewwwy

New Member
Joined
Sep 4, 2022
Messages
9
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. Web
Hey Guys,


I have a certificate column and its helpful to have the start date and the end date but id like to be able to use conditional formatting so if the date range is within 5 days of expiring its orange and if its expired its red.

Here is the data
Book2
A
1Certificates
201/12/22 - 01/03/2023
326/08/2022 - 25/11/2022
408/12/2022 - 08/03/2023
506/12/2022 - 20/01/2023
601/11/22 - 27/01/2023
727/10/2022 - 15/12/2022
829/11/22 - 02/01/2023
920/10/2022 - 21/11/2022
1021/06/2022 - 15/06/2023
1114/11/22 - 14/02/23
1222/10/2022 - 19/11/2022
1303/05/2022 - 02/12/2022
1402/11/2022 - 15/02/2023
1510/10/2022 - 23/10/2022
1612/12/2022 - 02/01/2022
1701/12/2022 - 29/12/2022
1826/12/22 - 01/01/22
1930/12/22 - 30/12/22
2003/01/23 - 29/03/23
2106/01/23 - 20/01/2023
Sheet1


This is what i would like it to look like (I have just filled the cell with colour)

Book2
A
1Certificates
201/12/22 - 01/03/2023
326/08/2022 - 25/11/2022
408/12/2022 - 08/03/2023
506/12/2022 - 14/01/2023
601/11/22 - 12/01/2023
727/10/2022 - 15/12/2022
829/11/22 - 02/01/2023
920/10/2022 - 21/11/2022
1021/06/2022 - 15/06/2023
1114/11/22 - 14/02/23
1222/10/2022 - 19/11/2022
1303/05/2022 - 02/12/2022
1402/11/2022 - 15/02/2023
1510/10/2022 - 23/10/2022
1612/12/2022 - 02/01/2022
1701/12/2022 - 29/12/2022
1826/12/22 - 01/01/22
1930/12/22 - 30/12/22
2003/01/23 - 29/03/23
2106/01/23 - 16/01/2023
Sheet1


Is it possible? Thanks guys!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try this:

Dante Amor
A
1Certificates
201/12/22 - 01/03/2023
326/08/2022 - 25/11/2022
408/12/2022 - 08/03/2023
506/12/2022 - 14/01/2023
601/11/22 - 12/01/2023
727/10/2022 - 15/12/2022
829/11/22 - 02/01/2023
920/10/2022 - 21/11/2022
1021/06/2022 - 15/06/2023
1114/11/22 - 14/02/23
1222/10/2022 - 19/11/2022
1303/05/2022 - 02/12/2022
1402/11/2022 - 15/02/2023
1510/10/2022 - 23/10/2022
1612/12/2022 - 02/01/2022
1701/12/2022 - 29/12/2022
1826/12/22 - 01/01/22
1930/12/22 - 30/12/22
2003/01/23 - 29/03/23
2106/01/23 - 16/01/2023
Hoja5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A21Expression=TRIM(MID(A2,FIND("-",A2)+1,12))+0<=TODAY()textNO
A2:A21Expression=AND(TRIM(MID(A2,FIND("-",A2)+1,12))+0>=TODAY(),TRIM(MID(A2,FIND("-",A2)+1,12))+0<=TODAY()+6)textNO
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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