Conditional formatting for wk 3 and wk 4 data.

AndyEd

Board Regular
Joined
May 13, 2020
Messages
124
Office Version
  1. 365
Platform
  1. Windows
I'm having a bit of senior moment I think...

Excel provides automatic CF for dates that fall during the current week (this week) and the following one (next week). How can I go about highlighting dates for the following weeks (week 3 and week 4). I feel like I should be using an AND formula, incorporating the w/c dates but every time I try I can't seem to get it to work.

The dates need to dynamic, moving forward in time as new dates are added, capturing them by week. As shown below,

Current date = 08/02/2024
Current week (week 1) = Mon 05/02/24 - Fri 09/02/24 - Excel provides functionality
Next week (week 2) = Mon 12/02/24 - Fri 16/02/24 - Excel provides functionality
Week 3 - Mon 19/02/24 - Fri 23/02/24
Week 4 - Mon 26/02/24 - Fri 01/03/24

Thanks in advance.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Excel has a WEEKNUM function that returns the week number of any date.
You can compare the week number of any date to the week number of the current date like this (for a date entry in cell A1):
Excel Formula:
=WEEKNUM(A1)-WEEKNUM(TODAY())

This could just get a little tricky if you are trying to compare dates in 2 different years.
 
Upvote 1
Solution
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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