Transpose and link data to a separate excel sheet

saadks

New Member
Joined
Mar 6, 2015
Messages
7
Hi,

I have two identical tables in Sheet 1 as given below:

[TABLE="class: grid, width: 360"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Sr. No.
[/TD]
[TD] Header 0
[/TD]
[TD]Header 1[/TD]
[TD]Header 2[/TD]
[TD]Header 3[/TD]
[/TR]
[TR]
[TD]Response 1
[/TD]
[TD]Parameter 1
[/TD]
[TD] Data A
[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Response 1
[/TD]
[TD]Parameter 2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Response 1
[/TD]
[TD]Parameter 3[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 4"]Row with some other data
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 4"]Row with some other data
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 4"]Row with some other data[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 4"]Row with some other data
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] Header 0
[/TD]
[TD]Header 1[/TD]
[TD]Header 2[/TD]
[TD]Header 3[/TD]
[/TR]
[TR]
[TD]Response 2
[/TD]
[TD]Parameter 1
[/TD]
[TD] Data B
[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Response 2
[/TD]
[TD]Parameter 2
[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Response 2
[/TD]
[TD]Parameter 3
[/TD]
[TD]
[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 360"]
<tbody>[TR]
[TD="colspan: 4"]Row with some other data
[/TD]
[/TR]
[TR]
[TD="colspan: 4"]Row with some other data
[/TD]
[/TR]
[TR]
[TD="colspan: 4"]Row with some other data
[/TD]
[/TR]
[TR]
[TD="colspan: 4"]Row with some other data
[/TD]
[/TR]
</tbody>[/TABLE]

The two tables with Headers and parameters always have 4 rows of space between them. I have a huge set of tables in this way and I would like to transpose the data from these tables into a separate sheet while linking the cells.

So, for eg., in Sheet 2, I have the following table:

[TABLE="class: grid, width: 946"]
<colgroup><col><col><col span="2"><col><col span="2"><col><col span="2"></colgroup><tbody>[TR]
[TD]
[/TD]
[TD="colspan: 3"]Header 1[/TD]
[TD="colspan: 3"]Header 2[/TD]
[TD="colspan: 3"]Header 3[/TD]
[/TR]
[TR]
[TD]Sr. No.[/TD]
[TD]Parameter 1[/TD]
[TD]Parameter 2[/TD]
[TD]Parameter 3[/TD]
[TD]Parameter 1[/TD]
[TD]Parameter 2[/TD]
[TD]Parameter 3[/TD]
[TD]Parameter 1[/TD]
[TD]Parameter 2[/TD]
[TD]Parameter 3[/TD]
[/TR]
[TR]
[TD]Response 1
[/TD]
[TD]Data A
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Response 2
[/TD]
[TD]Data B
[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]

Is it possible to link the two sheets and ensure that all recurring tables, the values are picked up - Response 3, Response 4, etc. - by writing a macro/function.

Not sure if my question is entirely clear. Let me know if I need to clarify on some point.

Thanks for the help!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top