I have data that has been stacked prior to my receiving it. There are multiple rows of values for a single unifying ID. I'd like to convert those multiple rows into a single row by adding columns and pulling in a specified range of data. So my initial data looks like:
<tbody>
</tbody>
And my output data should look like:
<tbody>
</tbody>
Ideally, I'd like to see the macro two ways- in this case, it's pulling from a range of columns that are together (B:C). However, I'd also like to see it if the columns needed were not consecutive (B and E for example).
Thanks for any help, appreciate it!!
ID | Name | Subject | Date | Code |
1 | Bob | Golf | 1-Mar | xyz |
2 | Adam | Cards | 2-Mar | xcv |
2 | Joe | Cards | 5-Mar | xch |
3 | Will | Travel | 6-Mar | vvv |
3 | Bill | Travel | 1-Mar | crt |
3 | Thrill | Travel | 2-Mar | abt |
4 | Napoleon | Grapeshot | 3-Mar | xso |
<tbody>
</tbody>
And my output data should look like:
ID | Name | Subject | Date | Code | Column1 | Column2 | Column3 | Column4 |
1 | Bob | Golf | 1-Mar | xyz | ||||
2 | Adam | Cards | 2-Mar | xcv | Joe | Cards | ||
3 | Will | Travel | 6-Mar | vvv | Bill | Travel | Thrill | Travel |
4 | Napoleon | Grapeshot | 3-Mar | xso |
<tbody>
</tbody>
Ideally, I'd like to see the macro two ways- in this case, it's pulling from a range of columns that are together (B:C). However, I'd also like to see it if the columns needed were not consecutive (B and E for example).
Thanks for any help, appreciate it!!