+ Reply to Thread
Results 1 to 11 of 11

Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

Hybrid View

  1. #1
    Registered User
    Join Date
    04-27-2015
    Location
    USA
    MS-Off Ver
    2007
    Posts
    5

    Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    Hello,

    This is a first for me and any help would be appreciated!!!!

    I need to calculate adding a certain number of days to a start date counting Monday through Saturday while skipping Sundays and holidays. The holidays are in a range.

    For example i need to take a date 01/01/2015 and add 5 days to it. Solution needs to be a date. The date would represent a deadline.

    The WORKDAY function uses just a 5 day work week. Wish my company had a newer version of Excel!

    Thanks,

    Paul

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    If Excel has WORKDAY.INTL function, this will work. This does not count the start date . If you want to include the start date, add 1 to the result.

    Formula: copy to clipboard
    =WORKDAY.INTL(A1,27,11,H1:H15)


    A1 is the start date (change to suit your data)
    27 is the number of workdays to add to the start date
    11 fixes Sunday as the weekend
    H1:H15 a range for holiday dates.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    04-27-2015
    Location
    USA
    MS-Off Ver
    2007
    Posts
    5

    Re: Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    Hello, the WORKDAY.INTL function is not supported in Excel 2007.

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    Disregard.
    Last edited by skywriter; 04-27-2015 at 04:49 PM.

  5. #5
    Registered User
    Join Date
    04-27-2015
    Location
    USA
    MS-Off Ver
    2007
    Posts
    5

    Re: Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    The WORKDAY function already excludes skips Sundays and Saturdays. If i added sundays to the holiday list as you suggest Sundays would just simply be skipped again. Am i missing something?

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    Quote Originally Posted by 76paul View Post
    The WORKDAY function already excludes skips Sundays and Saturdays. If i added sundays to the holiday list as you suggest Sundays would just simply be skipped again. Am i missing something?
    No I was thinking backwards, I edited my post above.

  7. #7
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    Check out this thread. Go to the post by Barry Houdini, maybe it will work for you.
    Post.

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,677

    Re: Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    barry's solution won't exclude holidays.

    You can try this array formula where start date is A1, days to add in B1 and holidays in H2:H10

    =SMALL(IF(WEEKDAY(A1+ROW(INDIRECT("1:"&B1*3)))>1,IF(ISNA(MATCH(A1+ROW(INDIRECT("1:"&B1*3)),H$2:H$10,0)),ROW(INDIRECT("1:"&B1*3)))),B1)+A1

    confirm with CTRL+SHIFT+ENTER
    Audere est facere

  9. #9
    Registered User
    Join Date
    04-27-2015
    Location
    USA
    MS-Off Ver
    2007
    Posts
    5

    Re: Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    Awesome! That worked. THANKYOU!!! It added the days to my date skiping Sundays and Holidays. Now, the formula doesn't seem accept a -1 for the days to add. I am also needing to subtract a # of days skipping Sundays and holidays. How can I do this? I really appreciate your help!

  10. #10
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,677

    Re: Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    To accommodate positiive or negative numbers in B1 (or zero) try this version

    =IF(B1=0,0,SMALL(IF(WEEKDAY(A1+SIGN(B1)*ROW(INDIRECT("1:"&ABS(B1)*3)))>1,IF(ISNA(MATCH(A1+SIGN(B1)*ROW(INDIRECT("1:"&ABS(B1)*3)),H$2:H$10,0)),ROW(INDIRECT("1:"&ABS(B1)*3)))),ABS(B1))*SIGN(B1))+A1

    Note that the *3 in that formula is a little arbitrary - if you have long runs of holidays on consecutive days then you may need to change the 3 instances of *3 to *10 or higher

  11. #11
    Registered User
    Join Date
    04-27-2015
    Location
    USA
    MS-Off Ver
    2007
    Posts
    5

    Re: Add a number of days excluding Sundays & Holidays with Excel 2007 6 day work week

    That worked!! I am pumped. I searched all over the intranet with no luck. Thanks for your time and sharing your knowledge. SOLVED!!!

    Thanks for explaining the *3.

+ 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. To calculate number of days excluding sundays
    By palani_k15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2014, 09:02 AM
  2. Count Days EXCLUDING ONLY Sundays and a named range for Holidays
    By Seaplane Jack in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-14-2014, 05:03 PM
  3. excluding holidays and sundays
    By balundl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-25-2013, 12:38 PM
  4. Replies: 5
    Last Post: 12-11-2012, 01:20 AM
  5. [SOLVED] Calculating Business Days by excluding Saturdays/Sundays and other Public Holidays
    By all4excel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-03-2008, 10:15 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