FrenchCelt
Board Regular
- Joined
- May 22, 2018
- Messages
- 214
- Office Version
- 365
- Platform
- Windows
Hello,
I have an Excel-based report that lists several people with a series of events listed in chronological order. I only need the start time of the first event and the end time of the final event for each individual. I do this manually by cutting that end time at the bottom of each series for each person and pasting it in the cell with the end time of the first event. The rest of the rows for each person are then deleted. I would like to code a macro that automates this process. Can anyone help?
This is basically what the report looks like initially:
<tbody>
</tbody>
Here is what it should end up looking like:
<tbody>
</tbody>
I have an Excel-based report that lists several people with a series of events listed in chronological order. I only need the start time of the first event and the end time of the final event for each individual. I do this manually by cutting that end time at the bottom of each series for each person and pasting it in the cell with the end time of the first event. The rest of the rows for each person are then deleted. I would like to code a macro that automates this process. Can anyone help?
This is basically what the report looks like initially:
Employee ID | Last Name | First Name | Begin Time | End Time | Supervisor |
user1 | Smith | John | 5/28/2019 23:20 | 5/28/2019 23:21 | sup_1 |
user1 | Smith | John | 5/28/2019 23:21 | 5/28/2019 23:25 | sup_1 |
user2 | Doe | Jane | 5/29/2019 0:20 | 5/29/2019 0:42 | sup_2 |
user2 | Doe | Jane | 5/29/2019 0:42 | 5/29/2019 1:26 | sup_2 |
<tbody>
</tbody>
Here is what it should end up looking like:
Employee ID | Last Name | First Name | Begin Time | End Time | Supervisor |
user1 | Smith | John | 5/28/2019 23:20 | 5/28/2019 23:25 | sup_1 |
user2 | Doe | Jane | 5/28/2019 0:20 | 5/28/2019 1:26 | sup_2 |
<tbody>
</tbody>