+ Reply to Thread
Results 1 to 7 of 7

Calculate processing time with fixed time paramaters

  1. #1
    Registered User
    Join Date
    05-31-2006
    Posts
    58

    Calculate processing time with fixed time paramaters

    I am wanting to calculate the the processing time for an order that takes place within normal business hours and workweek. A normal day is from 8:00 to 5:00 If a task is started at 2:00 PM Monday and finished at 10:00 AM Tuesday then the result should be 5 hours as I do not want to include any time outside of normal hours. I can figure out how to subtract dates and times but not how to bridge a day(s). My data is somewhat flexible as I have not started the project yet. I can use separate cells for the times and dates or have two cells that use both incorporate the date and time (8/27/09 2:00 PM) for start and end time or any other idea.
    Last edited by Apel; 09-01-2009 at 06:18 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Calculate processing time with fixed time paramaters

    If start datetime is in A1 (eg 24/08/2009 14:00) and end datetime is in A2 (25/08/2009 10:00) then:

    Please Login or Register  to view this content.
    or if start/end never on a weekend then

    Please Login or Register  to view this content.
    note: above utilises NETWORKDAYS function which pre XL2007 requires activation of the Analysis ToolPak Add-In - activated via Tools -> Add-Ins

    Above is c/o daddylonglegs
    Last edited by DonkeyOte; 08-28-2009 at 05:31 PM.

  3. #3
    Registered User
    Join Date
    05-31-2006
    Posts
    58

    Re: Calculate processing time with fixed time paramaters

    I copied the information as supplied cell by cell but received a value error. The Analysis Toolpak is installed and the cells are formated as instructed. When I trace it it fails at the first evaluation. I am running XL2000 although I have also tried it on another machine running XL2003. Is there anything I am missing?

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

    Re: Calculate processing time with fixed time paramaters

    Works OK for me, can you post the formula you are using?

    If you have a (Non-english) European version of Excel then you may need to replace commas , in the formula with semi-colons ;

  5. #5
    Registered User
    Join Date
    05-31-2006
    Posts
    58

    Re: Calculate processing time with fixed time paramaters

    I've tried both the posted formulas. I have attached my test file.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Calculate processing time with fixed time paramaters

    I just opened the file - in A3 is result of 5:00 which is correct I believe ?

  7. #7
    Registered User
    Join Date
    05-31-2006
    Posts
    58

    Re: Calculate processing time with fixed time paramaters

    Something must not be installed right then on my machine. I will go over it again and maybe see if I can find one that has XL2007. Thanks for the solution and for taking a look at my file.

+ 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