Conditional formatting based on date

DrPips

New Member
Joined
Aug 14, 2009
Messages
35
Hi,

I have what is probably a simple problem, but I can't figure it out or find it on google.

I would like to format the cell that contains the date and the two next to it, based on the month of the date. I want 4 colour depending on the month so 1 colour for all dates January to March, a different colour for April to June, etc.

So if the date in A1 is January, it will format A1, B1 and C1. If that dates changes to September, it will change those 3 cells.

Any help much appreciated.

Thanks
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi,

There might be an easier way to do that, but this is a solution :

Create 4 rules using these formulas with each a different color :

=OR(MONTH($A$1)=1, MONTH($A$1)=2, MONTH($A$1)=3) which applies to "=$A$1:$C$1"

=OR(MONTH($A$1)=4, MONTH($A$1)=5, MONTH($A$1)=6) which applies to "=$A$1:$C$1"

=OR(MONTH($A$1)=7, MONTH($A$1)=8, MONTH($A$1)=9) which applies to "=$A$1:$C$1"

=OR(MONTH($A$1)=10, MONTH($A$1)=11, MONTH($A$1)=12) which applies to "=$A$1:$C$1"
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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