Color coding dates on a calendar in Excel

stylencia18

New Member
Joined
Aug 14, 2017
Messages
31
Hello Forum:

I have a somewhat complicated question. I have 4 sets of dates that I want to color code on a calendar in Excel.

Set 1 Set 2 Set 3 Set 4
1/1/2014 1/5/2014 1/22/2014 1/31/2014
5/5/2015 5/5/2015 6/5/2015 8/5/2015
9/9/2016 10/2/2016 11/2/2016 12/5/2016


I'm looking to have each date populate a different color on a calendar. For example, Set 1 dates are blue, Set 2 dates are green, Set 3 dates are pink and Set 4 dates are purple. The set of dates cant be combined into one long list because each set represents something different.

Is this even possible?


Thank you!!!!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You can use Conditional Formatting to do this.
Set up your four "sets" anywhere in Excel, and then name each range:
rSet1
rSet2
rSet3
rSet4
respectively.
(If you do not know how to name ranges, see: https://www.contextures.com/xlNames01.html)

Then, select all your calendar dates (let's say they start in cell A2), and go to Conditional Formatting, select the Formula option, and enter this formula:
Code:
=COUNTIF(rSet1,A2)>0
and then choose the color option that you want.

Repeat the same Conditonal Formatting process for the other three sets. The steps are exactly the same, except change the named range in the formula, and the color that you want.
 
Upvote 0
Which Conditional Formatting rule has the higher priority.
Note that when you have multiple rules, you can rank them.
 
Upvote 0

Forum statistics

Threads
1,215,474
Messages
6,125,024
Members
449,204
Latest member
LKN2GO

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