+ Reply to Thread
Results 1 to 14 of 14

Counting Only Specific Hours Between Two Times

Hybrid View

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

    Re: Counting Only Specific Hours Between Two Times

    OK, I think it's the notation, I didn't convert correctly for your region, for your version 2.5 should be 2,5.....or better to stick to fractions as I have those elsewhere, i.e.


    =IF(C3="";"";MEDIAN(0;5/2-MOD(B3+1/4;1)-WEEKDAY(A3+B3+1/4);MOD(C3-B3;1)))


    see attached file with random dates and times that I used for testing. Press F9 to generate different dates and times


    The 21:00 to 06:00 formula I suggested will pick up all times in that period, even at both ends of the day, e.g. if the shift is 05:00 to 01:00 (next day) it will give a result of 5:00 (1 hour at the start of the day and 4 at the end). You may not have any shifts like that......
    Attached Files Attached Files
    Last edited by daddylonglegs; 12-19-2011 at 09:44 PM.
    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