How to shade a cell within a column if the date is in the next 6 months or less?

sammytomo

New Member
Joined
Jul 14, 2023
Messages
1
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi there,

I am having problem creating a formula that highlights/shades a cell that has date within the next 6 months.

For example todays date is 1 Jan 2023. I have two lease expiries, one on the 1st Apr 23 and the other on the 1st June 23 how do I have those cells highlighted? Both these cells are in Column AK.

I am using it for lease expiries in my database.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
1689319248926.png
 
Upvote 0
Book1
AB
101/01/202301/04/2023
201/07/2023
301/09/2023
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B3Expression=DAYS($B1,$A$1)<=90textNO
B1:B3Expression=DAYS($B1,$A$1)<=183textNO
B1:B3Expression=DAYS($B1,$A$1)>183textNO
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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