Smerdyakov007
New Member
- Joined
- Mar 17, 2023
- Messages
- 3
- Platform
- Windows
Hello guys,
I need your help in writing a macro code to create a time in/time out report. My requirement would be to delete the duplicate rows (based on the 'ID' column) except the first row, but the 'Time Out' column should be having the value of the last duplicate row.
Below is how the report would be looking firstly:
The final output should be looking like below:
Is this possible???
I need your help in writing a macro code to create a time in/time out report. My requirement would be to delete the duplicate rows (based on the 'ID' column) except the first row, but the 'Time Out' column should be having the value of the last duplicate row.
Below is how the report would be looking firstly:
Date | Time In | Time Out | ID |
01-07-2016 | 13:30 | 13:35 | 1223 |
01-07-2016 | 14:30 | 14:35 | 1223 |
01-07-2016 | 15:30 | 15:35 | 1223 |
01-07-2016 | 16:30 | 16:35 | 1224 |
01-07-2016 | 17:30 | 17:35 | 1224 |
01-07-2016 | 18:30 | 18:35 | 1224 |
01-07-2016 | 19:30 | 19:35 | 1224 |
01-07-2016 | 20:30 | 20:35 | 1224 |
01-07-2016 | 21:30 | 21:35 | 1224 |
01-07-2016 | 22:30 | 22:35 | 1225 |
01-07-2016 | 23:30 | 23:35 | 1225 |
01-07-2016 | 00:30 | 00:35 | 1225 |
01-07-2016 | 01:30 | 01:35 | 1225 |
01-07-2016 | 02:30 | 02:35 | 1225 |
01-07-2016 | 03:30 | 03:35 | 1225 |
The final output should be looking like below:
Date | Time In | Time Out | ID |
01-07-2016 | 13:30 | 15:35 | 1223 |
01-07-2016 | 16:30 | 21:35 | 1224 |
01-07-2016 | 22:30 | 03:35 | 1225 |
Is this possible???