+ Reply to Thread
Results 1 to 10 of 10

Help with Workday.intl

  1. #1
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Help with Workday.intl

    Hi,

    I have a drop down list in cell A1 with various currency Pairs.. (E.G. USD/THB)

    I have a table in Column C:D where Column C has Currencies (E.g. USD, JPY etc) & Column D has Holidays (Excluding Saturdays & Sundays)

    On cell F1, I am trying to build a formula, =WORKDAY.INTL(TODAY(),30,1,D2:D997) however, from the C column, it should only consider the Left Side of the Pair USD/THB and take into consideration Holidays of only that currency.
    Sample file attached!
    Attached Files Attached Files
    Cheers!
    Deep Dave

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Help with Workday.intl

    Try this. I used an INDEX MATCH to extract the relevant holidays into a separate column (green) and used a named range to refer dynamically to that column. It might also help if you were to add Named ranges for columsn B & C as well, to make them dynamic, too.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    10-07-2011
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Help with Workday.intl

    I am using excel 2007 and this formula is not showing in this version of excel.
    but still we can put some logic.i am not clear with your answer requirement but assumed that you want to calculate future holidays by currency!

    =SUMPRODUCT(($C$2:$C$997=LEFT($A$1,3))*($D$2:$D$997>TODAY()))

    Regards,
    Suhas Pangam

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Help with Workday.intl

    Quote Originally Posted by Glenn Kennedy View Post
    Try this. I used an INDEX MATCH to extract the relevant holidays into a separate column (green) and used a named range to refer dynamically to that column. It might also help if you were to add Named ranges for columsn B & C as well, to make them dynamic, too.
    Hi, that is working, but I forgot to tell that I am not looking to use Helper Columns/Cells.. Extremely sorry for the late input..

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Help with Workday.intl

    Assuming your currencies are all grouped together (you'd have to sort columns C and D, using C as the key) you can use an OFFSET function within your existing formula to get the correct holiday range like this

    =WORKDAY.INTL(TODAY(),7,1,OFFSET(D$1,MATCH(LEFT(A$1,3),C$2:C$999,0),0,COUNTIF(C$2:C$999,LEFT(A$1,3))))
    Last edited by daddylonglegs; 03-30-2015 at 03:33 AM.
    Audere est facere

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Help with Workday.intl

    OK. But this may work out to be a bit slow. I had to sort your data by country and then by date to get it working.
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Help with Workday.intl

    DLL - that's clever!!

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

    Re: Help with Workday.intl

    ....but this way works without any sorting.....

    =WORKDAY.INTL(TODAY(),7,1,INDEX((C$2:C$999=LEFT(A$1,3))*D$2:D$999,0))

  9. #9
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Help with Workday.intl

    Hi, thank you DLL & Glenn for your amazing formulas.. Based on what I'v tested so far, it is giving me the right output dates..

    Marking the thread as solved and adding reps..

    Cheers!

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Help with Workday.intl

    Thanks for the Reputation that you have added. It's much appreciated.

+ 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] WORKDAY.INTL function for excel 2007
    By turist in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2013, 02:20 AM
  2. Workday.intl problems
    By JacoKanban in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-06-2013, 06:40 PM
  3. Workday.intl function--Holidays help
    By bluskye425 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2013, 02:28 PM
  4. Workday.INTL or Workday function issue
    By junoon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 03:14 PM
  5. [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