+ Reply to Thread
Results 1 to 4 of 4

Counting Holidays

  1. #1
    Registered User
    Join Date
    05-28-2012
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    34

    Counting Holidays

    Dear all,
    Please help me in setting up formula for counting number of holidays not week end for a specific period. Please note that I am using office 2010.

    Thanks in advance!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Counting Holidays

    =NETWORKDAYS(Start_Date,End_Date)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Counting Holidays

    If your holidays are in a range, you could simply take the difference of the count the total workdays between two periods without and then with holidays.

    Assumptions:
    Range("A1") contains the start date
    Range("A2") contains the end date
    Range("A3:A12") contain the holidays (formatted as Date)

    Please Login or Register  to view this content.
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  4. #4
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Counting Holidays

    I attached an example with formulas.
    Formula 3 is for the number of holidays that does not fall in the weekends.
    So you don't need VBA
    Attached Files Attached Files
    Kind regards,
    Piet Bom

+ 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. Counting business days in excel excluding bank holidays
    By SuperHoops in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-08-2013, 04:52 PM
  2. Counting Weekdays + Saturday, omit holidays
    By bryceowen in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-20-2008, 11:29 AM
  3. Counting calendar days, omitting holidays
    By Jackal in forum Excel General
    Replies: 5
    Last Post: 05-01-2008, 03:20 PM
  4. Holidays
    By edwardpestian in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-25-2006, 11:05 AM
  5. holidays
    By bamboozled in forum Excel General
    Replies: 4
    Last Post: 05-29-2006, 11:15 AM

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