highlight next months birthdays

mattrx731

Board Regular
Joined
Feb 10, 2008
Messages
181
I have an address book that has dates in columns G:K formatted
mm/dd/yyyy
I'm using this formula in conditional formatting to highlight this months birthdays (obviously without regard to year)
Code:
=MONTH(G1)=MONTH(TODAY())
I need help modifying this to highlight next months birthdays
Thanks
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
This will "convert" the G1 date to the first of the previous month, and then you can test for equivalence to the first day of the current month:

=DATE(YEAR(G1),MONTH(G1)-1,1)=DATE(YEAR(TODAY()),MONTH(TODAY()),1)

-- Alex
 
Upvote 0
mattrx731

What I do is adding another condition.

=MONTH(G1)=MONTH(TODAY()) set to red fro this month
=MONTH(G1)=MONTH(TODAY())+1 set to orange for next month

of course you can set then to the same color if you wish

Ross
 
Upvote 0
I guess you just throw an If(Month(Today())+1 = 13,1,Month(Today()+1) in there -- that would work too.
 
Upvote 0
Since TODAY() and Conditional Formatting are volatile and can impact sheet performance if used too much, I would remove TODAY from the Conditional Formatting and place in a vacant cell (say J1), then use the Conditional Formatting conditions shown below.

Excel Workbook
GHIJ
115/10/200821/10/2008
216/08/2009
312/11/2008
4
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G11. / Formula is =MONTH(G1)=MONTH($J$1)Abc
G12. / Formula is =MONTH(G1-DAY(G1))=MONTH($J$1)Abc
 
Upvote 0
Thank you to all for the solutions.

I'm using Peter's for the reasons he described, even though I doubt it will have much effect on the 200 row by 20 column sheet I have.

Thanks again
Matt
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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