conditional format date range

EMcK01

Board Regular
Joined
Jun 14, 2015
Messages
125
Hi,

I have date in cell A3 that forms a simply calendar for any give month starting on a Monday from C6:I11. To ensure I get the full month it covers 42 days so will always have a few dates from the previous and following months.

I am using conditional formatting to grey out days out with the calendar month with
Code:
=MONTH(C6)<>MONTH($A3)
however this only works for row 6. I need to repeat the rule for rows 10 & 11.

Is there a formula that can be used that covers the range from C6:I11?

Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Would this help?

- Copy a cell that works properly
- Highlight all your cells that make up your calendar
- Right click and from the popup select Paste Special > Formatting
 
Upvote 0
Hi,

thanks for the response. Unfortunately that doesn't work, it highlights dates that shouldn't be included.
 
Upvote 0
Is A3 actual part of the calendar or just a driver to create a calendar?
if it is a driver try changing your formula to =MONTH(C6)<>MONTH($A$3) and try the steps above again.
 
Upvote 1
Is A3 actual part of the calendar or just a driver to create a calendar?
if it is a driver try changing your formula to =MONTH(C6)<>MONTH($A$3) and try the steps above again.
Yes A3 is the driver to change it, and that works perfectly.

Thanks, much appreciated
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,319
Members
449,218
Latest member
Excel Master

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