Hi,
I am new to VBA and i have been trying to achieve the following but i am stuck. I have different tables in one worksheet with common headers from which i need to collate the data into a single table with one set of headers, in a different worksheet. Example given below is of the Raw data sheet.
<tbody>
</tbody>
Raw Data sheet can have any number of tables in any location with each table containing any number of rows, but the table headers are the same. So i need to search using a column header, find the list of data below it and then paste it in the new sheet ("Collated"). This process needs to go on till all the instances of a particular column header data re found and pasted in Collated sheet. Also this needs to be done for all Column headers.
So my collated sheet needs to look like this.
<tbody>
</tbody>
Could someone please help me solve this.
Thanks
Aryan
I am new to VBA and i have been trying to achieve the following but i am stuck. I have different tables in one worksheet with common headers from which i need to collate the data into a single table with one set of headers, in a different worksheet. Example given below is of the Raw data sheet.
Name | Physics | Chemistry | Maths | CGPA | |||
Abc | 98 | 65 | 34 | 4.1 | |||
Def | 78 | 56 | 76 | 3.1 | |||
Ghi | 34 | 98 | 45 | 5.6 | |||
Name | Physics | Chemistry | Maths | CGPA | |||
Jkl | 87 | 78 | 34 | 7.3 | |||
Mno | 69 | 56 | 98 | 5.3 | |||
Pqr | 94 | 76 | 45 | 6.5 | |||
Vxw | 56 | 56 | 78 | 5.6 | |||
Xyz | 98 | 98 | 34 | 3.7 | |||
Name | Physics | Chemistry | Maths | CGPA | |||
Stu | 69 | 79 | 87 | 8.5 | |||
<tbody>
</tbody>
Raw Data sheet can have any number of tables in any location with each table containing any number of rows, but the table headers are the same. So i need to search using a column header, find the list of data below it and then paste it in the new sheet ("Collated"). This process needs to go on till all the instances of a particular column header data re found and pasted in Collated sheet. Also this needs to be done for all Column headers.
So my collated sheet needs to look like this.
Name | Physics | Chemistry | Maths | CGPA | ||
Abc | 98 | 65 | 34 | 4.1 | ||
Def | 78 | 56 | 76 | 3.1 | ||
Ghi | 34 | 98 | 45 | 5.6 | ||
Jkl | 87 | 78 | 34 | 7.3 | ||
Mno | 69 | 56 | 98 | 5.3 | ||
Pqr | 94 | 76 | 45 | 6.5 | ||
Vxw | 56 | 56 | 78 | 5.6 | ||
Xyz | 98 | 98 | 34 | 3.7 | ||
Stu | 69 | 79 | 87 | 8.5 | ||
<tbody>
</tbody>
Could someone please help me solve this.
Thanks
Aryan