+ Reply to Thread
Results 1 to 4 of 4

Need Help - The time entry is happening continuously - need to calculate only valid Time

  1. #1
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    Need Help - The time entry is happening continuously - need to calculate only valid Time

    Hi experts,

    I have this file, which will update Time stamp once desktop locked (start time) and Unlocked (end time).
    Time entry will happen one after the other.

    In the next column i have updated formula to minus End time with Start time to calculate actual time.

    example,
    1st row B1 will have Start time
    2nd row B2 will have end time

    while when system locked again,

    3rd row B3 will have Start time
    3rd row B4 will have End time
    by the formula that i have given in C column , i am not getting actual time.

    I dont want my formula to calculate time difference between b3 and b2
    as B3 is part of 2nd set. And B2 is part of 1st set.

    I couldnt differentiate these...... can somebody help to get a work around on this.

    Attached sample file for reference. Given comments in the File highlighted with Red colour, which i dont want to be summed.

    Please help, I need this help desperately.
    Attached Files Attached Files
    Thank you

    If I have helped you in someway, use the * icon below to give reputation feedback, it is appreciated.

  2. #2
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Need Help - The time entry is happening continuously - need to calculate only valid Ti

    insert one blank row very time if time different is not equal to 5 second?

  3. #3
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    Re: Need Help - The time entry is happening continuously - need to calculate only valid Ti

    HI BoredWorker,

    Appreciate your response.

    Not sure how to do it, because the actual time difference will also be not equal to 5 sec.

    i dont want the time difference of End time of first set and start time of second set of entry.

    just gone crazy what to do.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: Need Help - The time entry is happening continuously - need to calculate only valid Ti

    Post #1 states that end time is time stamped when desktop is unlocked, yet all of the entries in column A read 'Locked', so how do you know when one set ends and another begins?
    That said if all of the 'Locked' time differences will be consistent then you could modify the formula for C2 and down to read: =IF(ISBLANK(B3),"",MROUND(B3-B2,1/86400))
    You could then sum the 'Locked' times using: =SUMIFS(C2:C20,C2:C20,MODE.SNGL(C2:C20))
    In the file attached to post #1 this method yields 1:20
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 7
    Last Post: 04-25-2020, 03:23 AM
  2. Calculate time taken from earliest start time and latest end time
    By escapes88 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-13-2018, 05:43 AM
  3. Prevent data entry and calculate at same time.
    By Gordsky in forum Excel General
    Replies: 1
    Last Post: 03-03-2018, 02:53 PM
  4. VBA calculate sleep time, when time is entered in military time format
    By axm1955 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-29-2017, 10:28 AM
  5. Help creating a chartof events happening over time
    By Urbano in forum Excel General
    Replies: 0
    Last Post: 07-06-2014, 10:54 PM
  6. Replies: 2
    Last Post: 02-07-2013, 03:16 AM
  7. [SOLVED] How to continuously update time in Excel?
    By Ray_Fry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-20-2005, 03:06 PM

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