+ Reply to Thread
Results 1 to 12 of 12

Flexible holidays in NETWORKDAYS.INTL()

  1. #1
    Registered User
    Join Date
    01-04-2018
    Location
    London, England
    MS-Off Ver
    Professional Plus 2013
    Posts
    4

    Flexible holidays in NETWORKDAYS.INTL()

    Hi all,

    I'm having some problems while I try to get flexible holidays using NETWORKDAYS.INTL() function.
    What I want to do is to get a vector of holidays and insert it in this function, but I'm getting an error.

    What I do is the following:
    =IFERROR(NETWORKDAYS.INTL(AA2;AD2;1;VLOOKUP(INT(LEFT([@[Postal Code]];LEN([@[Postal Code]])-3));Table1[#All];3;FALSE))-1;"")

    Table 1:
    Capture.JPG

    I guess it may be because of the formats.

    Thank you very much.

    Kind regards.

  2. #2
    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,728

    Re: Flexible holidays in NETWORKDAYS.INTL()

    Welcome to the forum!

    It will be much easier to troubleshoot if you attach the workbook here (we can't work with images).

    As you are located in London, why are you using semi-colons in your formulae? Are you using a different locale setting in Excel (this may affect any solutions offered)?

    Generally speaking, the range for your holiday dates should be in a range of cells - why do you need it in just one cell?

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,180

    Re: Flexible holidays in NETWORKDAYS.INTL()

    Yes it expects Holidays to be dates not text

    why not have country as column header, dates down column, then country names as named ranges i.e England, Ireland

  4. #4
    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,728

    Re: Flexible holidays in NETWORKDAYS.INTL()

    Great minds, John! I was thinking along the same lines.

  5. #5
    Registered User
    Join Date
    01-04-2018
    Location
    London, England
    MS-Off Ver
    Professional Plus 2013
    Posts
    4

    Re: Flexible holidays in NETWORKDAYS.INTL()

    Thank you both for your support.

    I attached a simplified file, as you can see it's useful if I can have everything in the same row.
    You can see the first row using plain text and next ones with formula, what makes the difference?
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,180

    Re: Flexible holidays in NETWORKDAYS.INTL()

    I never understand why (with thousands of rows/columns) people persist in arranging data in these "compressed" forms. they are not even easily updated!

  7. #7
    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,728

    Re: Flexible holidays in NETWORKDAYS.INTL()

    Absolutely agree!

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,180

    Re: Flexible holidays in NETWORKDAYS.INTL()

    See attached "Holidays": having all in one cell is NOT (in my view) sensible.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-04-2018
    Location
    London, England
    MS-Off Ver
    Professional Plus 2013
    Posts
    4

    Re: Flexible holidays in NETWORKDAYS.INTL()

    I don't understand how I can get the holidays I need depending on the code.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,180

    Re: Flexible holidays in NETWORKDAYS.INTL()

    See atached:

    I changed headers in "holidays" to 8 and 28 and then named ranges ("H_8" and "H_28")

    in Orders

    in E2

    =IFERROR(NETWORKDAYS.INTL([@[Order date]],[@[Order delivery]],1,INDIRECT("H_"& LEFT([@Code],LEN([@Code])-3))),"")
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-04-2018
    Location
    London, England
    MS-Off Ver
    Professional Plus 2013
    Posts
    4

    Re: Flexible holidays in NETWORKDAYS.INTL()

    Thanks a lot for your help John!!!

    By doing this I also learned to name ranges, I didn't know about them!

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,180

    Re: Flexible holidays in NETWORKDAYS.INTL()

    Glad to have helped.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Looking for a Formula Using the IF and NETWORKDAYS.INTL Functions
    By dharvey078 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2017, 07:47 AM
  2. Combining NETWORKDAYS.INTL with IF formula?
    By Adelita in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-29-2016, 07:01 AM
  3. NETWORKDAYS.INTL in 2007
    By nickh1981 in forum Excel General
    Replies: 4
    Last Post: 08-11-2015, 02:45 AM
  4. [SOLVED] Networkdays.intl
    By andrecamapum in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-30-2015, 09:31 AM
  5. [SOLVED] Networkdays.Intl, incorrect result in one row
    By razaas in forum Excel General
    Replies: 1
    Last Post: 10-22-2014, 07:04 AM
  6. Workday.intl function--Holidays help
    By bluskye425 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2013, 02:28 PM
  7. [SOLVED] Looking for alternative to NETWORKDAYS.INTL
    By Jaron_t in forum Excel General
    Replies: 4
    Last Post: 05-21-2012, 04:54 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