+ Reply to Thread
Results 1 to 7 of 7

Calculating working shifts between two hours

Hybrid View

  1. #1
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Calculating working shifts between two hours

    I think it's working now...

    Thx DO...

    I'll also ask ddl to see his opinion
    Never use Merged Cells in Excel

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

    Re: Calculating working shifts between two hours

    I use this version

    =((B6>C6)*MEDIAN(0,C6-1/4,2/3)+MAX(0,MIN(11/12,C6+(B6>C6))-MAX(1/4,B6)))*24

    That will give you hours between 06:00 (1/4) and 22:00 (11/12). 2/3 represents the duration of the day shift (11/12-1/4)
    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