Conditional Formatting Cells based on dates with colours

JoelBrown1990

New Member
Joined
Nov 30, 2021
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi there,



I am looking for some help with conditional formatting.



I need to highlight a row of cells based on dates within certain columns.



There are five rules I require:



  1. The row of cells to highlight yellow if the date in cell “F” is between one week and two weeks after today’s date.
  2. The row of cells to highlight orange if the date in cell “F” is less than a week after today’s date.
  3. The row of cells to highlight red if the date in cell “F” is before today’s date.
  4. The row of cells to highlight green once a date has been entered into cell “H”.
  5. The row of cells to remain blank until one of the above comes into action.


This is for a Request for Information schedule. I am happy to send a copy of the schedule if this will make it easier.



Many thanks in advance for your help.



Kind regards,
Joel
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGH
1PostcodeIn Use?LatitudeLongitudeEastingNorthingGridRefCounty
2ST10 3DTYes53.02851-1.9172140565001/11/2021SK056479A
3BD6 1EWYes53.75919-1.7699641526428/11/2021SE152292
4DY3 1RGYes52.54611-2.1235739171729/11/2021SO917942A
5S18 8UAYes53.30377-1.5059643302030/11/2021SK330786
6DL11 6JDYes54.38196-1.9670840223606/12/2021SE022984
7HP23 6DENo51.77818-0.6518349310707/12/2021SP931096
8EX17 5AGYes50.75695-3.8438827003814/12/2021SX700968
Lists
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:H43Expression=$H2<>""textNO
A2:H43Expression=AND($F2<>"",$F2<TODAY())textNO
A2:H43Expression=AND($F2<>"",$F2<TODAY()+7)textNO
A2:H43Expression=AND($F2<>"",$F2<TODAY()+14)textNO
 
Upvote 0
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGH
1PostcodeIn Use?LatitudeLongitudeEastingNorthingGridRefCounty
2ST10 3DTYes53.02851-1.9172140565001/11/2021SK056479A
3BD6 1EWYes53.75919-1.7699641526428/11/2021SE152292
4DY3 1RGYes52.54611-2.1235739171729/11/2021SO917942A
5S18 8UAYes53.30377-1.5059643302030/11/2021SK330786
6DL11 6JDYes54.38196-1.9670840223606/12/2021SE022984
7HP23 6DENo51.77818-0.6518349310707/12/2021SP931096
8EX17 5AGYes50.75695-3.8438827003814/12/2021SX700968
Lists
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:H43Expression=$H2<>""textNO
A2:H43Expression=AND($F2<>"",$F2<TODAY())textNO
A2:H43Expression=AND($F2<>"",$F2<TODAY()+7)textNO
A2:H43Expression=AND($F2<>"",$F2<TODAY()+14)textNO
Hi Fluff,

Thank you for your response. I will try this and let you know if it works ok.

Can I copy the formula for multiple rows? So for F2 down to F1000 for example?

Many thanks,
Joel
 
Upvote 0
Just select the range you want it to work on & then add the rules.
You need to ensure that the rules are in the same order as shown in post#2
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,941
Members
449,094
Latest member
teemeren

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