Highlight Holidays in excel table

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,256
Office Version
  1. 2016
Hi,

I have 31 columns, each representing a day of the month. Below I have 5 rows or so. I need to highlight all columns that are Holidays in the UK calendar. I have managed to get the sheet to highlight weekends, but really struggling to do the same for uk holidays. I have created a seperate sheet that has a list of all uk holidays for 2018.

The row that contains my dates works like this. In the first column =AA3 (AA3 contains the 1st date of the month).

In the second column, =AA3+1 This then gives me the 2nd date.

This seems to work fine for weekends but not sure if it will for holidays as something is preventing me from getting holidays to work.

Thanks in advance.
 
So, are AG14 and AG15 the same dates or different dates?
If they are different dates, what if one falls on a Holiday and the other does not?
 
Upvote 0

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).
They are the same dates, just formatted differently. AG14 is formatted: THU (Thursday) and AG15 is formatted: 15 (15th)
 
Upvote 0
So, if there is really only one date, and it is in the top row (14), and you want all the rows 14:21 to be formatted based on the value in row 14, then my ORIGINAL formula should work, the one where Ihad the absolute reference ($) in front of the row number, i.e. $14.

If, when you do that, it is not highlighting all rows between 14-21, then I suspect that you have OTHER Conditional Formatting rules on those rows interfering with this rule.
 
Upvote 0
Well.....that fixed it....

Your a genius. That has driven me mad most of the day. I have no idea why it works now and didn't before, but who cares, it works perfectly now so thank you very much...

I have other things I need from this table so have posted again....I bet you run a mile when you see them ha..

Thank you again, really appreciated.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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