+ Reply to Thread
Results 1 to 4 of 4

Calculate Times

  1. #1
    Registered User
    Join Date
    09-01-2016
    Location
    North East England
    MS-Off Ver
    2016
    Posts
    13

    Calculate Times

    Hi everyone,

    I've got a series of data of (dates, times, doors and people) - I need to calculate how long each person has been in office per day - the complexity is that people use different accesses to enter/leave the building, and they also "come & go" so you have multiple logs. Has anyone experienced similar that they have managed to build a formula to do?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,686

    Re: Calculate Times

    maybe worth attaching a sample as mentioned in the yellow banner

    There have been various solutions for timekeeping here
    HOW TO ATTACH YOUR SAMPLE WORKBOOK:
    etaf Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    09-01-2016
    Location
    North East England
    MS-Off Ver
    2016
    Posts
    13

    Re: Calculate Times

    Document Attached
    Attached Files Attached Files

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

    Re: Calculate Times

    A Time2 column has been added to the data to show the time between the current "Out" and the previous "In".
    The formula for the Time2 column is: =IFERROR(IF(RIGHT(C2,3)="Out",B2-INDEX(B$1:B1,AGGREGATE(14,6,ROW(B$1:B1)/(D$1:D1=D2),1)),""),"")
    As you can see some people (i.e. A.Person2 at 12:55:32 PM) are recorded as "Out" before being recorded as "In" which causes an error (trapped by IFERROR).
    A pivot table displays the cumulative amount of time between the in's and out's for each person.
    Let us know if you have any questions.
    Attached Files Attached Files
    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. Calculate between two times
    By leemc1985 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2016, 03:42 AM
  2. Replies: 7
    Last Post: 04-09-2014, 09:25 AM
  3. [SOLVED] calculate turn around times range of times for weekday and weekend
    By xrayexceller in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-28-2013, 02:22 PM
  4. When I calculate the sum of times i am getting 0 (Zero)
    By kishoremcp in forum Excel General
    Replies: 2
    Last Post: 01-26-2012, 09:54 PM
  5. Replies: 0
    Last Post: 11-14-2011, 05:40 PM
  6. Calculate Times
    By jo15765 in forum Excel General
    Replies: 2
    Last Post: 04-10-2011, 03:33 PM
  7. how to calculate between times
    By noelf in forum Excel General
    Replies: 1
    Last Post: 07-11-2005, 06:12 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