+ Reply to Thread
Results 1 to 6 of 6

Calculate number of days, excluding weekends and holidays

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Pheonix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    8

    Calculate number of days, excluding weekends and holidays

    I am using the formula below to calculate the number of business days that have elapsed since a specific date. I would also like to account for the major holidays that might happen to fall within a date range. Can anyone help me add this piece to the formula below (or change the formula if there is an easier way to do it)? Please see example below

    =NETWORKDAYS(M5,MIN(N5,TODAY()))
    Excel Example.xlsx

    Thanks in advance for the help!

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Calculate number of days, excluding weekends and holidays

    Hi

    The formula will do it for you if you click on the fx on the formula bar it gives you the layout all you need to do is add the holiday dates as a range and refer to that


    Chris
    Click my star if I helped Thanks

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Calculate number of days, excluding weekends and holidays

    Like this?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-17-2012
    Location
    Pheonix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Calculate number of days, excluding weekends and holidays

    Chris,

    I created a range of dates with all of the holidays I want to account for, but I must be putting it in the wrong place. When I put in a reference to those cells, it gives me a negative number. Can you write a quick example of where in the formula I would put that reference?

  5. #5
    Registered User
    Join Date
    07-17-2012
    Location
    Pheonix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Calculate number of days, excluding weekends and holidays

    JieJenn,

    I didn't use that formula because I want to be able to leave the "Closed" date blank and have it keep a running count of the elapsed days. If the "Closed" date is blank with your formula, it gives me a negative number.

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

    Re: Calculate number of days, excluding weekends and holidays

    If you have holiday dates in H2:H10 then you can write the formula like this

    =NETWORKDAYS(B2,MIN(C2,TODAY()),H$2:H$10)
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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