+ Reply to Thread
Results 1 to 3 of 3

Counting Holidays Between Two Dates

  1. #1
    Registered User
    Join Date
    08-21-2017
    Location
    Central Texas
    MS-Off Ver
    Office 2016
    Posts
    8

    Counting Holidays Between Two Dates

    I am trying to create a worksheet that will let me enter two dates and in turn will determine how many US federal holidays are in between.

    If it makes a simpler solution, I can make a list of the dates of each holiday on another sheet.

    The objective is to accurately calculate how much bonus vacation I will accrue (I have to work holidays so I am credited 8 hours of extra vacation for every holiday that passes) during a time period.

    David

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Counting Holidays Between Two Dates

    Two ways:

    A
    B
    1
    Holidays
    2
    01 Jan 2017
    3
    16 Jan 2017
    4
    20 Feb 2017
    5
    29 May 2017
    6
    04 Jul 2017
    7
    04 Sep 2017
    8
    09 Oct 2017
    9
    10 Nov 2017
    10
    23 Nov 2017
    11
    25 Dec 2017
    12
    13
    1/1/2017
    14
    9/15/2017
    15
    6
    A15: =A14 - A13 + 1 - NETWORKDAYS.INTL(A13, A14,"0000000", $A$2:$A$11)
    16
    6
    A16: =COUNTIFS($A$2:$A$11, ">=" & A13, $A$2:$A$11, "<=" & A14)
    Last edited by shg; 08-21-2017 at 07:20 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-21-2017
    Location
    Central Texas
    MS-Off Ver
    Office 2016
    Posts
    8

    Re: Counting Holidays Between Two Dates

    That's exactly what I needed, 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] Generate list of dates between dates based on criteria - Onsite/Offshore holidays
    By sreeks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2017, 12:37 AM
  2. [SOLVED] Counting holidays
    By Berna11 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-26-2017, 10:40 AM
  3. Replies: 9
    Last Post: 04-14-2017, 05:21 AM
  4. [SOLVED] Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates
    By Winship in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-07-2017, 08:37 AM
  5. Counting Holidays
    By Subhash Sarker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-22-2013, 03:58 AM
  6. Counting Weekdays + Saturday, omit holidays
    By bryceowen in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-20-2008, 11:29 AM
  7. Counting calendar days, omitting holidays
    By Jackal in forum Excel General
    Replies: 5
    Last Post: 05-01-2008, 03:20 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