Closed Thread
Results 1 to 10 of 10

Calculating The Number Of Weekday Hours Between Two Dates

  1. #1
    dyeargers
    Guest

    Calculating The Number Of Weekday Hours Between Two Dates

    I used this formula, but only the time calculated. The date was ignored. Help! We only have Windows 98 and Excel XR-2. Is that the problem?

  2. #2
    Santosh Joshi
    Guest

    Help on count command

    Dear Sir,

    Need your valuable guidance on count commands in excel. I'm using excel 2000. Pls mail me your mail id to send you attachment of the calculations I wanted to do.

    Regards,
    Santosh

  3. #3
    HolyHacker
    Guest
    Yeah, you must have the Analysis TookPack installed to use this function. It's comes with Excel. Look under Tools>Add Ins.

    Your friend,
    HH

  4. #4
    Forum Contributor
    Join Date
    12-07-2004
    Posts
    596

    Calculating The Number Of Weekday Hours Between Two Dates

    Problem:

    Calculating the number of hours between Date1 and Date2, excluding weekends.

    Solution:

    Use the NETWORKDAYS function as follows:
    =NETWORKDAYS(A2,B2)-1-MOD(A2,1)+MOD(B2,1)

    Example:

    Date1_______________Date2________________Result
    4/4/2005 10:30______14/4/2005 19:12______200:42


  5. #5
    Andy Black
    Guest

    Wouldn\'t WORK hours be more useful?

    Hi -- what should be the format for the result cells?
    Also, if there are 8 WORKING days, and assuming an 8 hr day, wouldn\'t an answer of 64 hours be more useful? Maybe start and end times for the work day could be parameter cells?

  6. #6
    Registered User
    Join Date
    08-14-2003
    Location
    New Zealand
    Posts
    41

    Reply: Andy Black

    Hi Andy Black,

    Quote Originally Posted by Andy Black
    Hi -- what should be the format for the result cells?
    Also, if there are 8 WORKING days, and assuming an 8 hr day, wouldn\'t an answer of 64 hours be more useful? Maybe start and end times for the work day could be parameter cells?
    See here

    http://groups.google.co.nz/groups?q=...wo+dates&hl=en

    Alan.

  7. #7
    Registered User
    Join Date
    10-18-2006
    Posts
    1

    It does not work

    I dont understand why this formula doesnot work on my Excel worksheet please help I am using XP standard Excel please help!

  8. #8
    Registered User
    Join Date
    11-04-2006
    Posts
    6

    Not sure if this is what you need or not

    See my post monitor excess time used for a service. Maybe this is what you're looking for.

  9. #9
    Registered User
    Join Date
    07-17-2007
    Posts
    1

    This formula is not accurate.

    This formula is accurate about 50% of the time. I used it to calculate the hours for 160 instances and after manually verifying the calculation on some of these instances it was wrong on about half of them. For instance, the formula yielded the result of 1 hour 55 minutes for the time period between 4/10/07 1:18 PM and 4/11/07 3:13 PM. On the flip side, it was entirely accurate when calculation the hours between 11/6/06 5:15 PM and 11/7/06 9:46 AM (16 hours, 31 minutes.)

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

    which formula are you using? If you have start date/time in A2 and end date/time in B2 then

    =NETWORKDAYS(A2,B2)-1-MOD(A2,1)+MOD(B2,1)

    should give you the correct result

    format result cell as [h]:mm otherwise you'll see 1:55 instead of 25:55

    A2 and B2 should not be at the weekend (if you have start or end times at the weekend then you'll need a revised formula)

Closed 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