conditional formatting of holidays

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
755
Office Version
  1. 365
  2. 2010
i cant remember how i did it, but basically the formatting only highlights the holidays when the date has passed the previous business day...so remebrance day should be only yellow since its nov 11 and the previous business day is nov 15 (im writing this nov 18 EST)

Holidays:
Rememberance DayNovember 11, 2024
Christmas DayDecember 25, 2024
Boxing DayDecember 26, 2024
New Years DayJanuary 1, 2025
Family DayFebruary 17, 2025
Good FridayApril 18, 2025
Victoria DayMay 19, 2025
Canada DayJuly 1, 2025
Civic August 4, 2025
Labour DaySeptember 2, 2024
ThanksgivingOctober 7, 2024
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
would using the condition of if if(networkdays(holiday date, today())>1) work?
not 100% sure what you're asking but assumed you want to highlight a cell if the holiday is in the past and has a work day in between???
You didnt have cell references in your example, so used holiday date instead, adjust as required
 
Upvote 0
would using the condition of if if(networkdays(holiday date, today())>1) work?
not 100% sure what you're asking but assumed you want to highlight a cell if the holiday is in the past and has a work day in between???
You didnt have cell references in your example, so used holiday date instead, adjust as required

I want the holiday to highlight when it has passed as a reminder to update the date to next year so that the previous business day does not factor in holidays
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,203
Members
452,617
Latest member
Narendra Babu D

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