+ Reply to Thread
Results 1 to 2 of 2

Timeclock report analysis - timecard report captures clock in, clock out, clock in again

  1. #1
    Registered User
    Join Date
    08-19-2020
    Location
    Ontario Canada
    MS-Off Ver
    16
    Posts
    1

    Timeclock report analysis - timecard report captures clock in, clock out, clock in again

    Hello,

    I am trying to automate a payroll calculation. Our security system outputs an excel report with any desired time period that logs activity of each employees swipe card. We have the following shifts:

    Day Shift: 7am - 7:30 pm
    Afternoon Shift: 3:30- 1:00am
    Night Shift: 7:30pm - 7:00am


    My issue is if the report covers a 24hr period it will include each person clocking in, clocking out, and clocking in again to start their next shift. To do the shift duration calculation I need to have only 2 time events.

    This report is plugged into another spreadsheet which calculates the time worked between clock in and out for each daily report and collects all of the information into a weekly timesheet summary.

    I have added a step to use a countif function to flag duplicate entries but this requires the user to go in an manually remove the duplicates.

    I need a method to sort the raw data, eliminate the timestamp from the start of the second shift.

    Thanks for any ideas you have.
    Attached Files Attached Files

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

    Re: Timeclock report analysis - timecard report captures clock in, clock out, clock in aga

    Perhaps this will help.
    In the Raw timestamp data file on the Mar3 sheet a helper column (D) is populated using: =IF(COUNTIFS(B$3:B$141,B3)=3,IF(AGGREGATE(14,6,C$3:C$141/(B$3:B$141=B3),1)=C3,"Remove","Keep"),"Keep")
    Then two columns (G:H) display the names and timestamps without the timestamp from the start of the second shift.
    Both columns are populated using: =IFERROR(INDEX(B$3:B$141,AGGREGATE(15,6,(ROW(B$3:B$141)-ROW(B$2))/($E$3:$E$141="Keep"),ROWS($A$1:$A1))),"")
    My thinking is that you can then plug the two new columns into your other spreadsheet instead of the original columns (B:C).
    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. Simple Clock In/Clock Out hours tracker
    By dawilliams00 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-09-2020, 07:04 AM
  2. [SOLVED] Consolidating 2 data sets into a table to show a difference in clock in/clock out times
    By Buzz1126 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-24-2019, 10:09 AM
  3. Replies: 5
    Last Post: 07-17-2017, 12:44 PM
  4. [SOLVED] Calculating Allocated Hours Based On Clock In and Clock Out
    By rahul_ferns76 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-15-2016, 07:46 AM
  5. 24 hour clock timecard
    By efahrens in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-27-2015, 08:55 PM
  6. Issues With a Weekly Clock Card Report
    By nathanB in forum Excel General
    Replies: 3
    Last Post: 12-21-2012, 07:45 AM
  7. How do I use the timecard template if I am using a time clock and.
    By Gargi Upadhyaya in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-11-2005, 01: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