Highlight Cells with dates of Even Months

dyscea

New Member
Joined
Aug 16, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I wanted a 2023 calendar w/ consecutive dates. I would like it if I could Conditional Format cells whose dates contain Even Months.

Like so:

1665618027004.png


I tried to figure it out, even from an old 2006 post from here, but my brain is fried.

Thanks in advance!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Book1
ABCDEFGH
110/12/202210/13/202210/14/202210/15/202210/16/202210/17/202210/18/2022
210/19/202210/20/202210/21/202210/22/202210/23/202210/24/202210/25/2022
310/26/202210/27/202210/28/202210/29/202210/30/202210/31/202211/1/2022
411/2/202211/3/202211/4/202211/5/202211/6/202211/7/202211/8/2022
511/9/202211/10/202211/11/202211/12/202211/13/202211/14/202211/15/2022
611/16/202211/17/202211/18/202211/19/202211/20/202211/21/202211/22/2022
711/23/202211/24/202211/25/202211/26/202211/27/202211/28/202211/29/2022
811/30/202212/1/202212/2/202212/3/202212/4/202212/5/202212/6/2022
912/7/202212/8/202212/9/202212/10/202212/11/202212/12/202212/13/2022
1012/14/202212/15/202212/16/202212/17/202212/18/202212/19/202212/20/2022
1112/21/202212/22/202212/23/202212/24/202212/25/202212/26/202212/27/2022
1212/28/202212/29/202212/30/202212/31/20221/1/20231/2/20231/3/2023
131/4/20231/5/20231/6/20231/7/20231/8/20231/9/20231/10/2023
141/11/20231/12/20231/13/20231/14/20231/15/20231/16/20231/17/2023
151/18/20231/19/20231/20/20231/21/20231/22/20231/23/20231/24/2023
161/25/20231/26/20231/27/20231/28/20231/29/20231/30/20231/31/2023
172/1/20232/2/20232/3/20232/4/20232/5/20232/6/20232/7/2023
182/8/20232/9/20232/10/20232/11/20232/12/20232/13/20232/14/2023
192/15/20232/16/20232/17/20232/18/20232/19/20232/20/20232/21/2023
202/22/20232/23/20232/24/20232/25/20232/26/20232/27/20232/28/2023
213/1/20233/2/20233/3/20233/4/20233/5/20233/6/20233/7/2023
223/8/20233/9/20233/10/20233/11/20233/12/20233/13/20233/14/2023
233/15/20233/16/20233/17/20233/18/20233/19/20233/20/20233/21/2023
243/22/20233/23/20233/24/20233/25/20233/26/20233/27/20233/28/2023
25
Sheet1
Cell Formulas
RangeFormula
A1:G24A1=SEQUENCE(24,7,TODAY())
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:G24Expression=ISEVEN(MONTH(A1))textNO
 
Upvote 0
Solution
Did you try Mod function on the month portion of the cell values? E.G. if value was an even number, this would format the cell (I used 90 as a value).

=MOD(D12, 2) =0

Edit - using your single month digit values:
=MOD(LEFT(D12,1), 2) =0
 
Upvote 0
JGordon11, thank you. I actually saw your reply right away but couldn't get it to work. After a good night's sleep, I tackled it again.

1665670142693.png


Never heard of dynamic arrays. I hope to be able to use it again. It's nifty.

THANK YOU!!
 
Upvote 0
Did you try Mod function on the month portion of the cell values? E.G. if value was an even number, this would format the cell (I used 90 as a value).

=MOD(D12, 2) =0

Edit - using your single month digit values:
=MOD(LEFT(D12,1), 2) =0
Ya know, I'm usually pretty good at deciphering things, but I couldn't wrap my head around the Mod function when solving this one issue. Mostly because I have an idea on how it SHOULD work, and the functions don't follow my reasoning.

It is just neat enough, I might go find some vids proper vids about it.

Thank you!
 
Upvote 0

Forum statistics

Threads
1,214,413
Messages
6,119,374
Members
448,888
Latest member
Arle8907

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