+ Reply to Thread
Results 1 to 4 of 4

Using the NETWORKDAYS formula

  1. #1
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Using the NETWORKDAYS formula

    I am using the formula =NETWORKDAYS(A2,B2)-1-MOD(A2,1)+MOD(B2,1) where A2 is the start date and B2 is the end date. The NETWORKDAYS function works fine by ignoring the weekend days, however, if the end date is on a weekend then the formula doesn't work, it just gives ########. Is there a way to modify this formula to say that if the end date is on saturday at 8am, for example, then the result would reflect the time ending on Friday at 11:59pm? Therefore, if the start date is Friday at 8am then the cell would say "15:59", since it is only calculating from 8am to 11:59pm on friday, while ignoring saturday.

  2. #2
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Using the NETWORKDAYS formula

    If you are wanting "NETWORKTIME", try...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...and apply custom cell number format for desired display.
    Last edited by jhren; 05-27-2015 at 04:05 PM.

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

    Re: Using the NETWORKDAYS formula

    If it's only B2 that can be at the weekend this formula should suffice

    =NETWORKDAYS(A2,B2)-NETWORKDAYS(B2,B2)*(MOD(B2,1)-1)-MOD(A2,1)
    Audere est facere

  4. #4
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Using the NETWORKDAYS formula

    Got to thinking about my last post formula... could be shortened to...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Networkdays formula Help
    By antoanand1981 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2013, 08:31 AM
  2. Networkdays formula
    By JezLisle in forum Excel General
    Replies: 5
    Last Post: 11-04-2010, 06:00 AM
  3. Excel 2007 : NETWORKDAYS formula
    By Mikev078 in forum Excel General
    Replies: 5
    Last Post: 08-31-2010, 01:45 PM
  4. Networkdays Formula
    By Madball in forum Excel General
    Replies: 14
    Last Post: 02-01-2008, 09:21 AM
  5. [SOLVED] NETWORKDAYS FORMULA
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM

Tags for this Thread

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