+ Reply to Thread
Results 1 to 10 of 10

Calculating gaps in time in Excel

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    Woodridge, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    4

    Calculating gaps in time in Excel

    I am tracking hourly productivity with my employees and looking for a way to track gaps in their electronic movements that are greater than 10 minutes. Is there a formula that I can use to track this throughout a 12 hour shift?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Calculating gaps in time in Excel

    little difficult without a sample workbook to work from, but, assuming your time is actuallt TIME and not just a value, maybe try something like...

    =if(time-you-want-to-check>time(0,10,0),"whatever-you-need-to-have-shown","")

    if this isnt what you need, please upload a sample
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-25-2012
    Location
    Woodridge, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Calculating gaps in time in Excel

    ok, thanks for the tip. I have uploaded a sample with a discription of what I am looking to do. sample for forum.xlsx

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Calculating gaps in time in Excel

    in C6, try this formula....

    =IF(AND(B6=B5,A6-A5>TIME(0,10,0)),A6-A5,"")

    let me knlw if this works for you?

  5. #5
    Registered User
    Join Date
    04-25-2012
    Location
    Woodridge, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Calculating gaps in time in Excel

    ok, I got that to work for 2 of the cells. Is there any way that I can make it calculate for the entire shift, or do I have to manually search for the gap and enter it for each individaul occurrance?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculating gaps in time in Excel

    In C6 and copy down,

    =IF((A6-A5)*(B6=B5) > --"0:10:0", A6-A5, "")

    Format the result as h:mm:ss or as you prefer.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    04-25-2012
    Location
    Woodridge, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Calculating gaps in time in Excel

    PERFECT! Thank you sir.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Calculating gaps in time in Excel

    ok i just tried shg's formula, and it gives the exact same results as my suggestion did?

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculating gaps in time in Excel

    Apologies to FDibbins, our formulas are the same.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Calculating gaps in time in Excel

    just another example of (pretty much) getting the same results from (pretty much) the same approach/formula

+ 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