+ Reply to Thread
Results 1 to 13 of 13

Add fixed number of days, including weekends, but excluding a range of dates

  1. #1
    Registered User
    Join Date
    09-21-2018
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    12

    Add fixed number of days, including weekends, but excluding a range of dates

    Hi there,

    I am trying to come up with a formula which will give me a date 7 days (including weekends, but excluding a range of dates in a table i.e. bank holidays etc.) after a date.

    I am able to do this with a WORKDAY.INTL formula, however, i need to include weekends within the 7 days, is there an easy workaround i am missing?

    Many thanks in advance for any help!

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    Hi & welcome to the board.
    You could subtract 2 from the number of days, or subtract 1 & set the weekend argument to 11

  3. #3
    Registered User
    Join Date
    09-21-2018
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    That would indeed work! Thanks for the suggestion!

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    You're welcome & thanks for the feedback

  5. #5
    Registered User
    Join Date
    06-07-2019
    Location
    Leeds, England
    MS-Off Ver
    Excel for Office 365 16.0.10730.20264 32 Bit
    Posts
    16

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    Hi, please can you provide the formula that you used, I have been trying to do this for a while and am struggling

  6. #6
    Registered User
    Join Date
    09-21-2018
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    Hi Cathy,

    The formula I used is

    =WORKDAY.INTL(B7,F7,"0000000",$L$16:$M$23)

    Where B7 is the date from which i need to count from, F17 is the number of days and $L$16:$M$23 is a selection of dates to 'exclude'.

    This counts all days except those in the exclude table.

    Hope that helps!

  7. #7
    Registered User
    Join Date
    06-07-2019
    Location
    Leeds, England
    MS-Off Ver
    Excel for Office 365 16.0.10730.20264 32 Bit
    Posts
    16

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    Hi,
    Thank you, this does make sense, but I think I need it do something different. I need it to return the next day (including weekend but excluding hols). I should post a new question and not try to get the answer on the back of this post

  8. #8
    Registered User
    Join Date
    09-21-2018
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    The formula should work, just put '1' in the number of days from the last date.

  9. #9
    Registered User
    Join Date
    06-07-2019
    Location
    Leeds, England
    MS-Off Ver
    Excel for Office 365 16.0.10730.20264 32 Bit
    Posts
    16

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    ahhh thanks so would your formula be
    =WORKDAY.INTL(B7,1,"0000000",$L$16:$M$23)

  10. #10
    Registered User
    Join Date
    06-07-2019
    Location
    Leeds, England
    MS-Off Ver
    Excel for Office 365 16.0.10730.20264 32 Bit
    Posts
    16

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    My formula is
    =workday.int(G4,????,"0000000",PublicHols)
    where
    G4 is the start date
    ??? i dont know what to put here
    "0000000" includes all days
    PublicHols is a named range for all public holidays

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,734

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  12. #12
    Registered User
    Join Date
    06-07-2019
    Location
    Leeds, England
    MS-Off Ver
    Excel for Office 365 16.0.10730.20264 32 Bit
    Posts
    16

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    Sorry for hi-jacking the thread. I have raised a new one. Thank you clownfishcoxy for helping

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,734

    Re: Add fixed number of days, including weekends, but excluding a range of dates

    Thanks, Cathy.

+ 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 Counting Days Including weekends, excluding Holidays
    By Stevenvc19 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2019, 09:00 AM
  2. [SOLVED] Count number of days excluding weekends
    By Shahbazk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2017, 04:14 AM
  3. Replies: 0
    Last Post: 10-31-2014, 10:32 AM
  4. Add X Days To Dates, Excluding Weekends and Holidays
    By sianjialin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2014, 11:46 PM
  5. List Dates Excluding Holidays but Including weekends
    By GuyHudson in forum Excel General
    Replies: 6
    Last Post: 09-22-2010, 05:58 AM
  6. number of days between dates excluding weekends
    By jimmy@9830 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2008, 03:26 PM
  7. Replies: 3
    Last Post: 03-31-2008, 01:27 PM

Tags for this Thread

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