+ Reply to Thread
Results 1 to 4 of 4

Need help Calculating Elasped time excluding non business hours.

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    Vancouver
    MS-Off Ver
    Excel 2010
    Posts
    1

    Need help Calculating Elasped time excluding non business hours.

    Trying to calcuated time elasped on a file that arrived at 16:04:42 PM on a Friday and was not returned to the customer until 9:47:00 AM on the following Monday.


    Business Hours

    Mon-Fri 6:00 AM to 5:00 PM
    Saturday 9:00 AM to 5:00 PM


    Thanks in advance for your help.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need help Calculating Elasped time excluding non business hours.

    Upload a file (go advanced>Manage Attachments) which shows how your data is laid out. Is date and time in the same cell or different cells? Is it definitely formatted as numbers or as text? It would help to see an example spreadsheet.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need help Calculating Elasped time excluding non business hours.

    (Friday Close - Received) + Saturday + (Sent - Monday Open) = 12:42:18

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

    Re: Need help Calculating Elasped time excluding non business hours.

    Assuming you have start time/date in A2 and end time/date in B2 try this formula in C2 for elapsed business hours

    =(SUM(NETWORKDAYS.INTL(A2,B2,{1,"1111101"})*{11,8})-IF(WEEKDAY(A2)=7,8,11))/24+MOD(B2,1)-MOD(A2,1)

    Custom format C2 as [h]:mm

    I'm assuming that the times/dates will always be within working hours
    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)

Similar Threads

  1. Replies: 9
    Last Post: 07-04-2016, 11:42 PM
  2. mark as business hours excluding weekends
    By bunkum in forum Excel General
    Replies: 12
    Last Post: 06-17-2013, 11:53 PM
  3. Replies: 0
    Last Post: 04-07-2011, 01:46 AM
  4. Replies: 0
    Last Post: 03-05-2007, 04:07 AM
  5. Calculating Elasped Time
    By bhomer in forum Excel General
    Replies: 1
    Last Post: 11-21-2005, 06:11 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