+ Reply to Thread
Results 1 to 3 of 3

Trying to add holidays to existing formula for calendar.

  1. #1
    Registered User
    Join Date
    08-15-2016
    Location
    Buckeye, AZ
    MS-Off Ver
    2010
    Posts
    13

    Trying to add holidays to existing formula for calendar.

    Experts,
    With the help from Neil_, I was able to complete my crew calendars to auto populate for the year. Attached you will find what I have so far. Using formula,

    =OFFSET('Ops Schedule'!$B$29,MATCH(A5,OFFSET('Ops Schedule'!$F$30,0,MATCH(TEXT($A$3,"mmm"),'Ops Schedule'!$G$29:$R$29,0),99,1),0),0,1,1)

    The Crew Calendar matches the Ops Schedule for each crew. What I would like to do is add the holidays noted in the Ops Schedule to somehow tag those cells in the Crew Calendars so they get colored in red. Manually, I would represent the holidays as DH or NH RH or H and let conditional formatting look for this. Also, any help on being able to automate Ops Schedule to change as you change the year. For instance, for 2016, Dec 31 ends in cell R49, so for 2017, Jan 1 should start F50. Our work schedule repeats itself every 10 weeks.
    Attached Files Attached Files
    Last edited by MrOchoa; 08-17-2016 at 10:38 PM. Reason: Wrong attachment

  2. #2
    Registered User
    Join Date
    08-15-2016
    Location
    Buckeye, AZ
    MS-Off Ver
    2010
    Posts
    13

    Re: Trying to add holidays to existing formula for calendar.

    Experts, attached is my almost final calendar. What I would like is for the yearly Crew Calendars to look at the holidays in sheet 1 and overwrite the conditional formatting and fill in the day as red. Is this possible with a formula or do I need a macro?
    Attached Files Attached Files
    Last edited by MrOchoa; 08-23-2016 at 02:20 AM.

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Trying to add holidays to existing formula for calendar.

    Quote Originally Posted by MrOchoa View Post
    Also, any help on being able to automate Ops Schedule to change as you change the year..
    Have a look at this, see what you think, it might be a bit too automated for what you need

    Change Crew dropdown as needed in M2

    Change year in A1 as needed (no dropdown here, this method works for any date from 1/1/1900 to 12/31/9999 inclusive.

    Edit:-

    It is still a bit slow to process, but I don't think that there is much hope of avoiding this, given that one change (year) means recalculating every formula in the sheet anyway, something I hadn't taken into consideration with my comments in your previous thread.

    That said, overuse of OFFSET is still best avoided where possible.
    Attached Files Attached Files
    Last edited by jason.b75; 08-24-2016 at 06:52 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Auto Populate Holidays in a Calendar
    By popeye000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2016, 03:39 PM
  2. [SOLVED] Account for holidays in an automated calendar
    By Lizzietish11 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-24-2014, 10:13 AM
  3. Replies: 2
    Last Post: 12-05-2012, 07:01 AM
  4. Need a running total of calendar days (including weekends and holidays)
    By armyav09 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-30-2012, 04:14 PM
  5. Replies: 0
    Last Post: 02-13-2012, 02:42 PM
  6. Counting calendar days, omitting holidays
    By Jackal in forum Excel General
    Replies: 5
    Last Post: 05-01-2008, 03:20 PM
  7. Generating business days in a calendar month, EXCLUDING holidays
    By jacob in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-12-2005, 12:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1