excel date color

george antony
Occasional Contributor

I change this calendar by changing B1.

Result is good expect color of highlighted dates.I want color of highlighted dates in column A and in other columns same .


14 Replies

Hi George,


The worksheet has complicated and unnecessary array formulas!

Because of this, it's too slow and takes a lot of time to calculate!

You can do it all in another way easier, faster, more efficiently, and more flexible so that you are not limited to the year 2020.


I've updated the worksheet with a better approach and applied the conditional formatting rule to the other columns.


Please find the attached file.


Hope that helps

Dear Sir
Thank you for your help.Highlighted cells in column B are dates of shift change (Every 6th day).First shift change was on Jan 3, 2018 ,then Jan 8,2018, and so on continuously.This is why I formatted column B .In Feb 2018 dates are different and in march they are different and so on.It is different in the year 2020.
Dates are different in month-wise and year-wise. When you select any year the days in that year should be highlighted same as in column B.

Hi George,


This can be done, but you need to a separate conditional formatting rule for each month and supported with a logic to deal with leap years.


I've done for you!

Please find the attached file.





Thank you very much.It works very good

Dear Sir

Kindly check :-In the year 2021 it reads Jan.3 ,2021 as shift change date but it should be  jan 2, 2021.

Hi George,


I've fixed this issue in the attached file.



Hello sir

jan 2, 2022  should be shift change but calendar shows jan 3 , 2022. Is it Possible to copy color of dates from column B according to date

I'm really sorry about this buggy solution!


Now I realized that the solution is very difficult without a helper data source!

So I suggest another solution by creating a list of the shift dates in a separate sheet and refer to this list in the conditional formatting rule of the calendar sheet by using this formula:

=MATCH(C2,'Shift Dates'!$A$2:$A$2412,0)


This is the perfect and the most easier solution in this case.


Please find it in the attached file.

Hope that helps

Dear Sir

Wonderful .Working very good.Thank you very much

Dear Sir

I have updated my file .Please help me to format cells in page "calendar" so that it looks similar to cells in page "Shift Dates" 

Well, highlight them, and press Ctrl+1 to open the Format Cells dialog box.

Then select Custom, and copy the format (ddd dd "OFD") into the Type box, and then hit OK.


Format Cells - Custom.png

Hello Sir

There are three groups:-OFD, HLO 1 and HLO 2 in three colours.

OFD shift change in every 6th day starting Jan 3 2018

HLO 1 in every 11th day starting Jan 2 2018

and HLO 2 in every 11th day starting Jan 7 2018   as in sheet "Shift Dates".

Please see the calendar 2018 where I manually formatted each cell. Please help me  to auto format according to colour or date

Hi George,


You can easily customize each rule to show a specific number format.

In the conditional formatting rule, you're not limited in the fill color only, you can change the font color, the number format, and more.


Please find the attached file.

Thank you very much. Everything OK

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies