Hello, My problem is as follows : I have a data dump from our time keeping software which shows data like this :
For every in and out punch in a day there is a line. The Org Job column shows the labour account they are working in at that time. I created a sheet with every minute of a day across columns and Column A having the date and Column B the account number.
My thought was to add up employees by minute in each account so we can see the employee movements through the day across the accounts. I first thought I would do this by putting a countifs formula in the cells, however quickly realized a sheet with that many formulas would probably crash as it tried to process. I then started looking at VBA and can figure how to get If the row is this date and this account..... I stall however on trying to figure out how to add 1 to that particular cell (account / minute) across the columns between their start and end time.
I don't want to create a "lookup" type situation where I would have to put the start and end time :
Since I want to show patterns with this data. I need to be able to look at this and ask a supervisor about their employee counts vs their output on this day compared to another.
If someone could point me towards the proper code to put data in certain "minute" columns if the employees time is between this and that, I would surely appreciate it.
Employee Name | Date | Employee # | In Punch | Labor Account | Org Job | Work Rule | Out Punch | Paycode | Start Time | Hours | Days | Money | Source | Comment | Note | Source | Name | Amount | Span | Shift | Daily | Cumulative |
Employee 1 | 12/14/2020 | 10720 | 7:53AM | 020/281/2810/001/02/9125/- | 12:01PM | 4:01 | 4:01 | |||||||||||||||
Employee 1 | 12/14/2020 | 10720 | 12:29PM | 020/281/2810/001/02/9125/- | 4:45PM | 4:14 | 8:15 | 8:15 | 8:15 | |||||||||||||
Employee 1 | 12/14/2020 | 10720 | 020/281/2810/001/02/9125/- | Out Punch | Late Out | 0:15 | ||||||||||||||||
Employee 1 | 12/15/2020 | 10720 | 7:55AM | 020/281/2810/001/02/9125/- | 12:02PM | 4:02 | 12:17 | |||||||||||||||
Employee 1 | 12/15/2020 | 10720 | 12:29PM | 020/281/2810/001/02/9125/- | 5:20PM | 4:48 | 8:50 | 8:50 | 17:05 | |||||||||||||
Employee 1 | 12/15/2020 | 10720 | 020/281/2810/001/02/9125/- | Out Punch | Late Out | 0:50 | ||||||||||||||||
Employee 1 | 12/16/2020 | 10720 | 7:55AM | 020/281/2810/001/02/9125/- | 12:02PM | 4:02 | 21:07 | |||||||||||||||
Employee 1 | 12/16/2020 | 10720 | 12:29PM | 020/281/2810/001/02/9125/- | 4:55PM | 4:23 | 8:25 | 8:25 | 25:30 | |||||||||||||
Employee 1 | 12/16/2020 | 10720 | 020/281/2810/001/02/9125/- | Out Punch | Late Out | 0:25 | ||||||||||||||||
Employee 1 | 12/17/2020 | 10720 | 7:56:00 AM | 020/281/2810/001/02/9125/- | 12:03:00 PM | 4:03 | 29:33 | |||||||||||||||
Employee 1 | 12/17/2020 | 10720 | 12:28PM | 020/281/2810/001/02/9125/- | 5:01PM | 4:28 | 8:31 | 8:31 | 34:01 | |||||||||||||
Employee 1 | 12/17/2020 | 10720 | 020/281/2810/001/02/9125/- | Out Punch | Late Out | 0:31 | ||||||||||||||||
Employee 1 | 12/18/2020 | 10720 | 7:55AM | 020/281/2810/001/02/9125/- | 12:05PM | 4:05 | 38:06 | |||||||||||||||
Employee 1 | 12/18/2020 | 10720 | 12:31PM | 020/281/2810/001/02/9125/- | 4:46PM | 4:11 | 8:16 | 8:16 | 42:17 | |||||||||||||
Employee 1 | 12/18/2020 | 10720 | 020/281/2810/001/02/9125/- | Out Punch | Late Out | 0:16 | ||||||||||||||||
Employee 2 | 12/14/2020 | 10605 | 5:25PM | 020/218/2182/001/08/5142/- | 5:28PM | |||||||||||||||||
Employee 2 | 12/14/2020 | 10605 | 5:28PM | /214/2140/001/// | /214/2140/001/// | 6:58PM | 1:28 | 1:28 | ||||||||||||||
Employee 2 | 12/14/2020 | 10605 | 6:58PM | /218/2182/001/// | /218/2182/001/// | 9:17PM | 2:19 | 3:47 | ||||||||||||||
Employee 2 | 12/14/2020 | 10605 | 9:44PM | 020/218/2182/001/08/5142/- | 9:51PM | 0:04 | 3:51 | |||||||||||||||
Employee 2 | 12/14/2020 | 10605 | 9:51PM | /214/2142/001/// | /214/2142/001/// | 11:14PM | 1:23 | 5:14 | 5:14 | 5:14 | ||||||||||||
Employee 2 | 12/14/2020 | 10605 | 020/218/2182/001/08/5142/- | Out Punch | Early Out | 2:46 | ||||||||||||||||
Employee 2 | 12/15/2020 | 10605 | 5:24PM | 020/218/2182/001/08/5142/- | 5:25PM | 5:14 | ||||||||||||||||
Employee 2 | 12/15/2020 | 10605 | 5:25PM | /218/2182/001/// | /218/2182/001/// | 5:57PM | 0:27 | 5:41 | ||||||||||||||
Employee 2 | 12/15/2020 | 10605 | 5:57PM | /214/2140/001/// | /214/2140/001/// | 6:32PM | 0:35 | 6:16 | ||||||||||||||
Employee 2 | 12/15/2020 | 10605 | 6:32PM | /218/2182/001/// | /218/2182/001/// | 8:06PM | 1:34 | 7:50 | ||||||||||||||
Employee 2 | 12/15/2020 | 10605 | 8:06PM | /214/2142/001/// | /214/2142/001/// | 9:47PM | 1:41 | 4:17 | 4:17 | 9:31 | ||||||||||||
Employee 2 | 12/15/2020 | 10605 | 020/218/2182/001/08/5142/- | Out Punch | Early Out | 4:13 | ||||||||||||||||
Employee 2 | 12/16/2020 | 10605 | 5:26PM | 020/218/2182/001/08/5142/- | 5:27PM | 9:31 | ||||||||||||||||
Employee 2 | 12/16/2020 | 10605 | 5:27PM | /218/2182/001/// | /218/2182/001/// | 9:32PM | 4:02 | 13:33 | ||||||||||||||
Employee 2 | 12/16/2020 | 10605 | 9:56PM | 020/218/2182/001/08/5142/- | 11:22PM | 1:20 | 5:22 | 5:22 | 14:53 | |||||||||||||
Employee 2 | 12/16/2020 | 10605 | 020/218/2182/001/08/5142/- | Out Punch | Early Out | 2:38 | ||||||||||||||||
Employee 2 | 12/17/2020 | 10605 | 5:25PM | 020/218/2182/001/08/5142/- | 5:26PM | 14:53 | ||||||||||||||||
Employee 2 | 12/17/2020 | 10605 | 5:26PM | /218/2182/001/// | /218/2182/001/// | 10:23PM | 4:53 | 4:53 | 4:53 | 19:46 | ||||||||||||
Employee 2 | 12/17/2020 | 10605 | 020/218/2182/001/08/5142/- | Out Punch | Early Out | 3:37 | ||||||||||||||||
Employee 2 | 12/18/2020 | 10605 | 5:25PM | 020/218/2182/001/08/5142/- | 5:27PM | 19:46 | ||||||||||||||||
Employee 2 | 12/18/2020 | 10605 | 5:27PM | /218/2182/001/// | /218/2182/001/// | 5:28PM | 19:46 | |||||||||||||||
Employee 2 | 12/18/2020 | 10605 | 5:28PM | /214/2140/001/// | /214/2140/001/// | 5:56PM | 0:26 | 20:12 | ||||||||||||||
Employee 2 | 12/18/2020 | 10605 | 5:56PM | /218/2182/001/// | /218/2182/001/// | 7:19PM | 1:23 | 21:35 | ||||||||||||||
Employee 2 | 12/18/2020 | 10605 | 7:19PM | /214/2140/001/// | /214/2140/001/// | 8:09PM | 0:50 | 22:25 | ||||||||||||||
Employee 2 | 12/18/2020 | 10605 | 8:09PM | /218/2182/001/// | /218/2182/001/// | 9:35PM | 1:26 | 23:51 | ||||||||||||||
Employee 2 | 12/18/2020 | 10605 | 10:04PM | /214/2142/001/// | /214/2142/001/// | 12:28AM | 2:23 | 6:28 | 6:28 | 26:14 | ||||||||||||
Employee 3 | 12/14/2020 | 11463 | 5:27AM | 020/212/2120/001/03/4350/- | 10:29AM | 4:59 | 4:59 | |||||||||||||||
Employee 3 | 12/14/2020 | 11463 | 10:54AM | 020/212/2120/001/03/4350/- | 1:15PM | 2:16 | 7:15 | 7:15 | 7:15 | |||||||||||||
Employee 3 | 12/15/2020 | 11463 | 5:22AM | 020/212/2120/001/03/4350/- | 10:15AM | 4:45 | 12:00 | |||||||||||||||
Employee 3 | 12/15/2020 | 11463 | 10:27AM | 020/212/2120/001/03/4350/- | 3:11PM | 4:26 | 9:11 | 9:11 | 16:26 | |||||||||||||
Employee 3 | 12/15/2020 | 11463 | 020/212/2120/001/03/4350/- | Out Punch | Late Out | 1:11 | ||||||||||||||||
Employee 3 | 12/16/2020 | 11463 | 5:25AM | 020/212/2120/001/03/4350/- | 10:34AM | 5:04 | 21:30 | |||||||||||||||
Employee 3 | 12/16/2020 | 11463 | 10:57AM | 020/212/2120/001/03/4350/- | 1:51PM | 2:47 | 7:51 | 7:51 | 24:17 | |||||||||||||
Employee 3 | 12/17/2020 | 11463 | 5:22AM | 020/212/2120/001/03/4350/- | 10:52AM | 5:22 | 29:39 | |||||||||||||||
Employee 3 | 12/17/2020 | 11463 | 11:13AM | 020/212/2120/001/03/4350/- | 1:41PM | 2:19 | 7:41 | 7:41 | 31:58 | |||||||||||||
Employee 3 | 12/17/2020 | 11463 | 020/212/2120/001/03/4350/- | Out Punch | Early Out | 12:06 | ||||||||||||||||
Employee 3 | 12/18/2020 | 11463 | 5:19AM | 020/212/2120/001/03/4350/- | 10:32AM | 5:02 | 37:00 | |||||||||||||||
Employee 3 | 12/18/2020 | 11463 | 10:55AM | 020/212/2120/001/03/4350/- | 2:00PM | 2:58 | 8:00 | 8:00 | 39:58 |
For every in and out punch in a day there is a line. The Org Job column shows the labour account they are working in at that time. I created a sheet with every minute of a day across columns and Column A having the date and Column B the account number.
My thought was to add up employees by minute in each account so we can see the employee movements through the day across the accounts. I first thought I would do this by putting a countifs formula in the cells, however quickly realized a sheet with that many formulas would probably crash as it tried to process. I then started looking at VBA and can figure how to get If the row is this date and this account..... I stall however on trying to figure out how to add 1 to that particular cell (account / minute) across the columns between their start and end time.
I don't want to create a "lookup" type situation where I would have to put the start and end time :
Since I want to show patterns with this data. I need to be able to look at this and ask a supervisor about their employee counts vs their output on this day compared to another.
If someone could point me towards the proper code to put data in certain "minute" columns if the employees time is between this and that, I would surely appreciate it.