Hi - I've been madly googling this problem and cannot find anything that quite solves it for me. Looking to this forum which has helped me so many times before (although first time posting a question!).
I have data capturing number of hours and pay rate, by person, each day. What I want to do is summarise by each person, with a date range. This will be for thousands of people, so obviously open to VBA.
Example of the data;
[TABLE="class: grid, width: 704"]
<tbody>[TR]
[TD][/TD]
[TD]1/01/2018[/TD]
[TD]2/01/2018[/TD]
[TD]3/01/2018[/TD]
[TD]4/01/2018[/TD]
[TD]5/01/2018[/TD]
[TD]6/01/2018[/TD]
[TD]7/01/2018[/TD]
[TD]8/01/2018[/TD]
[TD]9/01/2018[/TD]
[TD]10/01/2018[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]4.5[/TD]
[TD]4.5[/TD]
[TD]4.5[/TD]
[TD]4.5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]18.10[/TD]
[TD]18.10[/TD]
[TD]18.10[/TD]
[TD]19.00[/TD]
[TD]19.00[/TD]
[TD]19.00[/TD]
[TD]19.00[/TD]
[TD]19.50[/TD]
[TD]19.50[/TD]
[TD]19.50[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]4.5[/TD]
[TD]4.5[/TD]
[TD]4.5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]18.50[/TD]
[TD]18.50[/TD]
[TD]19.00[/TD]
[TD]19.00[/TD]
[TD]19.00[/TD]
[TD]21.50[/TD]
[TD]21.50[/TD]
[TD]21.50[/TD]
[TD]21.50[/TD]
[TD]21.50[/TD]
[/TR]
</tbody>[/TABLE]
Ideal end state;
[TABLE="class: grid, width: 345"]
<tbody>[TR]
[TD][/TD]
[TD]Start[/TD]
[TD]End[/TD]
[TD]Hours[/TD]
[TD]Rate[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]1/01/2018[/TD]
[TD]3/01/2018[/TD]
[TD]4.5[/TD]
[TD]18.10[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]4/01/2018[/TD]
[TD]4/01/2018[/TD]
[TD]4.5[/TD]
[TD]19.00[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]5/01/2018[/TD]
[TD]7/01/2018[/TD]
[TD]5[/TD]
[TD]19.00[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]8/01/2018[/TD]
[TD]10/01/2018[/TD]
[TD]5[/TD]
[TD]19.50[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]1/01/2018[/TD]
[TD]2/01/2018[/TD]
[TD]4.5[/TD]
[TD]18.50[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]3/01/2018[/TD]
[TD]3/01/2018[/TD]
[TD]4.5[/TD]
[TD]19.00[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]4/01/2018[/TD]
[TD]5/01/2018[/TD]
[TD]5[/TD]
[TD]19.00[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]6/01/2018[/TD]
[TD]10/01/2018[/TD]
[TD]5[/TD]
[TD]21.50[/TD]
[/TR]
</tbody>[/TABLE]
Would really appreciate any assistance here.
Thanks
Luke
I have data capturing number of hours and pay rate, by person, each day. What I want to do is summarise by each person, with a date range. This will be for thousands of people, so obviously open to VBA.
Example of the data;
[TABLE="class: grid, width: 704"]
<tbody>[TR]
[TD][/TD]
[TD]1/01/2018[/TD]
[TD]2/01/2018[/TD]
[TD]3/01/2018[/TD]
[TD]4/01/2018[/TD]
[TD]5/01/2018[/TD]
[TD]6/01/2018[/TD]
[TD]7/01/2018[/TD]
[TD]8/01/2018[/TD]
[TD]9/01/2018[/TD]
[TD]10/01/2018[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]4.5[/TD]
[TD]4.5[/TD]
[TD]4.5[/TD]
[TD]4.5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]18.10[/TD]
[TD]18.10[/TD]
[TD]18.10[/TD]
[TD]19.00[/TD]
[TD]19.00[/TD]
[TD]19.00[/TD]
[TD]19.00[/TD]
[TD]19.50[/TD]
[TD]19.50[/TD]
[TD]19.50[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]4.5[/TD]
[TD]4.5[/TD]
[TD]4.5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]18.50[/TD]
[TD]18.50[/TD]
[TD]19.00[/TD]
[TD]19.00[/TD]
[TD]19.00[/TD]
[TD]21.50[/TD]
[TD]21.50[/TD]
[TD]21.50[/TD]
[TD]21.50[/TD]
[TD]21.50[/TD]
[/TR]
</tbody>[/TABLE]
Ideal end state;
[TABLE="class: grid, width: 345"]
<tbody>[TR]
[TD][/TD]
[TD]Start[/TD]
[TD]End[/TD]
[TD]Hours[/TD]
[TD]Rate[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]1/01/2018[/TD]
[TD]3/01/2018[/TD]
[TD]4.5[/TD]
[TD]18.10[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]4/01/2018[/TD]
[TD]4/01/2018[/TD]
[TD]4.5[/TD]
[TD]19.00[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]5/01/2018[/TD]
[TD]7/01/2018[/TD]
[TD]5[/TD]
[TD]19.00[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]8/01/2018[/TD]
[TD]10/01/2018[/TD]
[TD]5[/TD]
[TD]19.50[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]1/01/2018[/TD]
[TD]2/01/2018[/TD]
[TD]4.5[/TD]
[TD]18.50[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]3/01/2018[/TD]
[TD]3/01/2018[/TD]
[TD]4.5[/TD]
[TD]19.00[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]4/01/2018[/TD]
[TD]5/01/2018[/TD]
[TD]5[/TD]
[TD]19.00[/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]6/01/2018[/TD]
[TD]10/01/2018[/TD]
[TD]5[/TD]
[TD]21.50[/TD]
[/TR]
</tbody>[/TABLE]
Would really appreciate any assistance here.
Thanks
Luke