Conditional Formatting

NZAS

Board Regular
Joined
Oct 18, 2012
Messages
117
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi
I have a column of Dates that I would like to add conditional formatting so the cell will hilight when the date is equal to today minus 30 days. And if the date is between 30 and 60 and if date is between 60 to 90 using different colours for each

12/12/2021​
15/04/2022​
7/02/2022​
29/10/2022​
10/10/2022​
25/03/2022​
13/02/2022​
20/02/2022​
24/02/2022​
6/02/2022​
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
do you mean exactly -30 days
and which colour for the 60 days - its in both is it 30-60 or in 60-90
what if older than 90


setup 3 conditional formatting rules

for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A2:A100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=A2=today()-30

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK

then 2 more rules using
=AND( A2 >= today()-60 , A2 < today()-30 )
=AND( A2 >= today()-90 , A2 < today()-60 )

just change the >= or <= to include the = depending on what group you want

Book4
AB
11/11/22-30
21/6/22-35
312/17/21-55
412/7/21-65
511/17/21-85
611/2/21-100
71/26/22-15
81/10/22-31
912/7/21-65
102/9/22-1
Sheet1
Cell Formulas
RangeFormula
A1A1=TODAY()-30
A2A2=TODAY()-35
A3A3=TODAY()-55
A4,A9A4=TODAY()-65
A5A5=TODAY()-85
A6A6=TODAY()-100
A7A7=TODAY()-15
A8A8=TODAY()-31
A10A10=TODAY()-1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A10Expression=AND(A1>=TODAY()-90,A1<TODAY()-60)textNO
A1:A10Expression=AND(A1>=TODAY()-60,A1<TODAY()-30)textNO
A1:A10Expression=A1=TODAY()-30textNO
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,214,800
Messages
6,121,641
Members
449,044
Latest member
hherna01

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