JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 785
- Office Version
- 365
- Platform
- Windows
Hi,
ive seen this done before with use of dictionary but unsure how:
With the following Data i want to combine rows based on Points like you would do with a pivot
<tbody>
</tbody>
Output:
<tbody>
</tbody>
Can it be done quickly with VBA if a lot of data? Also the amount of columns and Points column vary so can i set the column which i want to combine with
thanks
ive seen this done before with use of dictionary but unsure how:
With the following Data i want to combine rows based on Points like you would do with a pivot
Name | Age | Points |
John | 19 | 21 |
Fred | 43 | 3 |
Tim | 22 | 5 |
John | 19 | 4 |
Alex | 18 | 47 |
Fred | 43 | 6 |
Tim | 22 | 7 |
Luke | 20 | 11 |
John | 19 | 2 |
<tbody>
</tbody>
Output:
Name | Age | Sum of Points |
Alex | 18 | 47 |
Fred | 43 | 9 |
John | 19 | 27 |
Luke | 20 | 11 |
Tim | 22 | 12 |
<tbody>
</tbody>
Can it be done quickly with VBA if a lot of data? Also the amount of columns and Points column vary so can i set the column which i want to combine with
thanks