+ Reply to Thread
Results 1 to 4 of 4

Array formula to treat range of Holiday Days as Weekends when adding data to Calendar

  1. #1
    Registered User
    Join Date
    01-15-2017
    Location
    LONDON, ENGLAND
    MS-Off Ver
    Excel Mac 2011 14.6.6
    Posts
    55

    Array formula to treat range of Holiday Days as Weekends when adding data to Calendar

    Hello,

    I need help with this formula. Please see attached workbook.

    The current array formula below looks at a table of data and displays information from the table on a calendar on either WEEKDAYS, WEEKENDS or EVERY DAY dependent on several variables such as whether the STATUS column is either PENCILLED, CONFIRMED, INVOICED or PAID

    The formula looks like this (in cell BP28):

    Please Login or Register  to view this content.
    I now need to adapt this formula so that it also takes into consideration a list of HOLIDAY DAYS from the range $B$52:$B$70

    I need days listed in this range to be treated exactly the same as a WEEKEND days are in the current formula.

    If you look at the booking for Company A (in the row of I23) between dates 20/12/2017 and 31/12/2017 and compare to the Calendar view on the right, you'll see that the dates 25/12/2017 & 26/12/2017 need to be displaying the booking (as M23 is set to weekends) and 25/12/2017 & 26/12/2017 are listed in my Holiday Range in $B$52:$B$70.

    (Currently the booking only displays on the weekends and not on Christmas Day & Boxing Day as desired)


    I've been adapting other bits of code I have using NETWORKDAYS.INTL to specify the holiday range, but I can't figure out how to do it for this code.


    Massive thanks in advance for any assistance on this.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,568

    Re: Array formula to treat range of Holiday Days as Weekends when adding data to Calendar

    Try the following array entered formula (confirm by simultaneously pressing Ctrl, Shift and Enter) in BP28:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    01-15-2017
    Location
    LONDON, ENGLAND
    MS-Off Ver
    Excel Mac 2011 14.6.6
    Posts
    55

    Re: Array formula to treat range of Holiday Days as Weekends when adding data to Calendar

    Amazing. Than you so much. That works perfectly.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,568

    Re: Array formula to treat range of Holiday Days as Weekends when adding data to Calendar

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Formula for SLA by excluding weekends (Fri & Sat) & Holiday
    By Ankit_Kumar in forum Excel General
    Replies: 3
    Last Post: 06-11-2015, 03:22 AM
  2. Replies: 1
    Last Post: 03-09-2015, 11:42 PM
  3. [SOLVED] Adding Calendar range to Array formula
    By Ebo12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-04-2015, 12:29 PM
  4. [SOLVED] Counting working days excluding holiday and weekends
    By thollander in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-20-2014, 11:28 AM
  5. Formula needed for adding 3 days to a given date; skip weekends
    By Wedge120 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-07-2011, 11:46 PM
  6. Replies: 3
    Last Post: 03-31-2008, 01:27 PM
  7. [SOLVED] Formula for adding days to a date excluding weekends and holidays?
    By Jake via OfficeKB.com in forum Excel General
    Replies: 2
    Last Post: 01-25-2006, 04:03 PM

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