Formatting dates - how to color cells (or lines) with even months?

Beirut

New Member
Joined
May 1, 2015
Messages
2
Hello,

I would like to make Excel automatically do "Version A" or "Version B".
How could this be done with "conditional formatting"?

I found some instructions at this link (below), but I cannot get it to the end result.
Highlight odd/even months using conditional formatting in excel 2007 | Get Digital Help - Microsoft Excel resource

Can somebody here manage to pull this off?

image.png
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
  • Select columns B:C
  • Select from the menu Format\Conditional Formatting
  • Condition 1:
    • Formula Is: =NOT(MOD(MONTH($B1),2))
    • Pattern: Light blue
 
Upvote 0
Hi
With your example... Select B4 through C15. Go to Conditional Formating > New rule > use a formula... and enter the following formula for Version A:

=ISEVEN( MONTH($B4) )

got to Format... and choose for color you want

For Version B. Same process as above, formula:

=DAY($B4)=1

and select a border above

Regards
XLearner
 
Upvote 0

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

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