Conditional Format within a range of months based on start/end date

lewjan

New Member
Joined
Dec 4, 2020
Messages
11
Office Version
  1. 2010
Platform
  1. Windows
Hi,
Thanks in advance for your time and help.

Based on the start and end dates, i wanted it to highlight the months & year these dates are within
Namestart dateend date30-Nov-2021
30-Dec 2021
30-Jan 2022
28-Feb 2022
fork1-Nov-20215-Jan-2022fill in greenfill in greenfill in green
knife23-Dec-202115-Feb-2022fill in greenfill in greenfill in green

thank you so very much for your help!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
How about
+Fluff 1.xlsm
ABCDEFG
1Namestart dateend date30-Nov-2130-Dec-2130-Jan-2228-Feb-22
2fork01-Nov-2105-Jan-22
3knife23-Dec-2115-Feb-22
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:G3Expression=AND($B2<=D$1,$C2>EOMONTH(D$1,-1))textNO
 
Upvote 0
This CF formula assumes that you wanted the date at the top of the column to be within the dates in column B and column C inclusively.

=AND(D$1>$B2-1,D$1<$C2+1)
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,806
Members
449,048
Latest member
greyangel23

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