Conditional Formatting by Date Help Needed

blindsighted

New Member
Joined
Jul 14, 2012
Messages
4
Greetings,
I am using Excel 2007. I need to conditionally format a worksheet. Specifically a column of dates. The sheet is to show the Student's Names and Dates of Birth. I need to make all the dates between January 1 and September 30 (regardless of year) to be light green cells and students with dates of birth October 1 through December 31 to be a different color. The date format I have in that column is mm/dd/y yyy. I believe I would need to choose the option in Conditional Formatting that allows me to put in a formula. However, I do not know the correct formula/expression to enter. Can one of you gurus tell me the correct formula for my task?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Excel 2010
ABDEF
11/1/20111/1/201210/1/201212/12/2012
22/1/2011
33/1/2011
44/1/2011
55/1/2011
66/1/2011
77/1/2011
88/1/2011
99/1/2011
1010/1/2011
1111/1/2011
1212/1/2011
131/1/2012
142/1/2012
153/1/2012
164/1/2012
175/1/2012
186/1/2012
197/1/2012
208/1/2012
219/1/2012

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Hello and welcome.
Put dates(any Jan,Oct and Dec) as in example then:
light green
=AND(MONTH($A1)>=MONTH($D$1),MONTH($A1)<=MONTH($E$1))

any other
=AND(MONTH($A1)>=MONTH($E$1),MONTH($A1)< =MONTH($F$1))

(I'm using US date format so the months are in front)
 
Upvote 0
Thank you for your reply. Can I make those cell references you listed in D, E and F on another sheet so that they do not show up on the sheet one? If so, how would that affect the formula you listed?
 
Upvote 0
Like this:
=AND(MONTH($A1)>=MONTH(Sheet2!$B$1),MONTH($A1)<=MONTH(Sheet2!$C$1))
if you want to move the dates to Sheet2
 
Upvote 0
Thanks for your help, however, that did not work. I don't think I have enough understanding in Excel to do this. I think I needed someone to tell me like a 9 year old or something :) I have tried online tutorials and read 41 articles, but they are written and designed for persons who know or understand code and the two books I have on the subject do not explain how to the task I need. I am a novice.What else can I try?
 
Upvote 0
I tried it but it said that i cannot reference other sheets or workbooks in conditional formatting. I would think that would be very limiting of Excel to disallow that function.
 
Upvote 0
I tried it but it said that i cannot reference other sheets or workbooks in conditional formatting. I would think that would be very limiting of Excel to disallow that function.

Create the Dates in the Sheet where you got your data.
Create Conditional Formatting then cut and paste the cells with Dates into another sheet.
 
Upvote 0

Forum statistics

Threads
1,215,111
Messages
6,123,152
Members
449,098
Latest member
Doanvanhieu

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