+ Reply to Thread
Results 1 to 9 of 9

Calculate if Time range appears in an other Time range

  1. #1
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Calculate if Time range appears in an other Time range

    Evening All,

    I would like to identify how many hours appear inside a time range.

    Overtime range 18:00 to 02:00

    Hours worked 14:00 to 02:00 = overtime 8 hrs
    Hours worked 08:00 to 22:00 = overtime 4 hrs
    Hours worked 22:00 to 05:00 = overtime 4 hrs

    the start time and endtime are in separate columns the hours in adj column

    Regards

    Baj

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calculate if Time range appears in an other Time range

    Please post workbook

  3. #3
    Registered User
    Join Date
    10-04-2013
    Location
    Bornholm, Danmark
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Calculate if Time range appears in an other Time range

    take a look on this
    http://gupl.dk/704516/

  4. #4
    Registered User
    Join Date
    10-04-2013
    Location
    Bornholm, Danmark
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Calculate if Time range appears in an other Time range

    sorry it is in danish but hvis=if maks=max

  5. #5
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Calculate if Time range appears in an other Time range

    Could you consider please formula must function in Excel 2003
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-04-2013
    Location
    Bornholm, Danmark
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Calculate if Time range appears in an other Time range

    Timesheet_2.xls ok take a look at this

  7. #7
    Registered User
    Join Date
    10-04-2013
    Location
    Bornholm, Danmark
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Calculate if Time range appears in an other Time range

    take a look at this one
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Calculate if Time range appears in an other Time range

    BjarneHansen,

    Many Thanks for you very helpful reply,
    I edited the fractions to refer to the cells H2 and I2, the overtime range...Worked perfectly

    but when i used a range inside 24hr 18:00 to 22:00 it calculates to many hours

  9. #9
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Calculate if Time range appears in an other Time range

    Please find attached file with amended formula,
    as mentioned above.

    If I change i2 cell to time before midnight calculation doesn't work

    Sorry

    B
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-04-2013
    Location
    Bornholm, Danmark
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Calculate if Time range appears in an other Time range

    Ok try this ther is a defrent formula if it is ending before or after 00:00
    Attached Files Attached Files

+ 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. How to calculate time range from 22:00 - 6:00
    By kurk011 in forum Excel General
    Replies: 12
    Last Post: 11-24-2013, 08:57 PM
  2. [SOLVED] Counting the number of times a time appears in a range of data
    By alexw1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-04-2013, 12:23 PM
  3. [SOLVED] change range a table appears every time a button within a userform is clicked
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2013, 05:07 PM
  4. Change Color Of Text First Time It Appears In A Range
    By ZooTV92 in forum Excel General
    Replies: 5
    Last Post: 10-25-2011, 08:54 AM
  5. Counting each time text appears in range???
    By Simon Lloyd in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2006, 08:55 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