+ Reply to Thread
Results 1 to 6 of 6

Excluding multiple holidays

  1. #1
    Registered User
    Join Date
    01-02-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    3

    Excluding multiple holidays

    Dear there Greetings..!

    This is about the excluding the weekends for global countries.

    Sheet 1 I have column names Ticket ID, country name, Start Date, End date, Age (After Excluding Weekends). And it has about 6000 (tickets) rows which are from various global countries (Some Examples: India, UAE, Russia, Yemen, South Africa and Brazil). The main problem here is that , the different global countries has different weekends like South Asia countries has Saturday and Sunday, ISREAL & UAE has Friday and Saturday week off, IRAN & Saudi Arabia has Thursday& Friday week off.
    So I need logic like, it should see the country name first, then decide the weekends and then exclude the days. Is this possible in formula?

    Thanks for your help.

    Regards,
    Suresh
    Last edited by Suresh Aruchamy; 01-02-2015 at 11:02 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,968

    Re: Excluding multiple holidays

    Hi, welcome to the forum

    You dont really explain exactly what you want here ID the weekends - and do what?

    Also, To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excluding multiple holidays

    Hi,

    Does the attached example help.

    It uses the NETWORKDAYS.INTL() function with two tables for defining weekend dates and holiday dates.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    01-02-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    3

    Re: Excluding multiple holidays

    Dear FDibbins Greetings..!

    This is about the excluding the weekends and Holidays for global countries.

    Question: 1

    Sheet 1 I have column names Ticket ID, country name, Start Date, End date, Age (After Excluding Weekends), Holiday Dates, Number of Holidays, Final Age. And it has about 6000 (tickets) rows which are from various global countries (Some Examples: India, UAE, Russia, Yemen, South Africa and Brazil). The main problem here is that , the different global countries has different weekends like South Asia countries has Saturday and Sunday, ISREAL & UAE has Friday and Saturday week off, IRAN & Saudi Arabia has Thursday& Friday week off.
    So I need logic like, it should see the country name first, then decide the weekends and then exclude the days. Is this possible in formula?

    Question: 2

    Need VBA Here,

    In Sheet 2 I have country wise holiday list which has 2014 January to 2015 December holidays. The data is like this:
    Country Names Date1 Date2 Date3
    Algeria 01/01/2014 01/19/2014 02/23/2014
    Australia 01/01/2014 03/07/2014 04/01/2014
    Brazil 01/12/2014 01/13/2014 02/26/2014

    So I need VBA here which will full fill following criteria’s
    1) Since in Sheet1 country name doesn’t have alphabetic order or Start Date and End date doesn’t sorted , the code should be do repeat work till the last row
    2) 1n 6000 tickets one single country can come repeatedly with different start date and End date
    3) Sometimes the holiday date and week end will be the same date, that time we should not exclude twice
    4) Some tickets cover both the year as start date (06/25/2014) and End date (05/17/2015).
    5) If we have multiple holidays then in sheet1 and in ”Holiday dates” column we have to print the holiday dates with comma (Like : 07/01/2014 , 07/12/2014, 08/15/2014 )
    6) Then the “Number of holidays” column should have count as 3 (As per above example)
    I know this is very tough, but there are legends who do this job in couple of minutes. So please help me.
    Thanks for your help.

    Regards,
    Suresh
    Attached Files Attached Files

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excluding multiple holidays

    Hi,

    Have you tried adapting the approach I gave you in post #3. You have all the tables for holidays (just turn them through 90 degrees as per my example.

  6. #6
    Registered User
    Join Date
    01-02-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    3

    Re: Excluding multiple holidays

    Hi Richard Buttrey,

    Thank you for your reply..

    I have transpose the dates as per you, but It seems not working, I am getting Error like "#NAME?"

+ 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. continous numbering excluding holidays
    By kumar71 in forum Excel General
    Replies: 1
    Last Post: 12-24-2013, 12:29 AM
  2. excluding holidays and sundays
    By balundl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-25-2013, 12:38 PM
  3. workdays between (excluding holidays)
    By imaccormick1990 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2013, 08:26 AM
  4. [SOLVED] Excluding holidays from dates column
    By Alexander_Golinsky in forum Excel General
    Replies: 8
    Last Post: 06-02-2012, 02:23 PM
  5. Excluding weekends and holidays from chart
    By Jogier505 in forum Excel General
    Replies: 2
    Last Post: 12-07-2010, 04:44 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