data extraction from a table in a particular format

GAUTAM SINGH

New Member
Joined
Dec 24, 2016
Messages
31
i have a two set of data in excel sheet comprises of 4 column each, i want to extract that data in one table C where row 1 of table B comes under row 1 of table A and thereon....

[TABLE="width: 896"]
<colgroup><col width="64" span="14" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl65, colspan: 4"] Table A[/TD]
[TD] [/TD]
[TD="class: xl64, colspan: 4"] Table B[/TD]
[TD][/TD]
[TD="class: xl65, colspan: 4"] Table C[/TD]
[/TR]
[TR]
[TD="class: xl63, align: right"]1[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]3[/TD]
[TD="class: xl63, align: right"]4[/TD]
[TD][/TD]
[TD="class: xl63, align: right"]13[/TD]
[TD="class: xl63, align: right"]14[/TD]
[TD="class: xl63, align: right"]15[/TD]
[TD="class: xl63, align: right"]16[/TD]
[TD][/TD]
[TD="class: xl63, align: right"]1[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]3[/TD]
[TD="class: xl63, align: right"]4[/TD]
[/TR]
[TR]
[TD="class: xl63, align: right"]5[/TD]
[TD="class: xl63, align: right"]6[/TD]
[TD="class: xl63, align: right"]7[/TD]
[TD="class: xl63, align: right"]8[/TD]
[TD][/TD]
[TD="class: xl63, align: right"]17[/TD]
[TD="class: xl63, align: right"]18[/TD]
[TD="class: xl63, align: right"]19[/TD]
[TD="class: xl63, align: right"]20[/TD]
[TD][/TD]
[TD="class: xl63, align: right"]13[/TD]
[TD="class: xl63, align: right"]14[/TD]
[TD="class: xl63, align: right"]15[/TD]
[TD="class: xl63, align: right"]16[/TD]
[/TR]
[TR]
[TD="class: xl63, align: right"]9[/TD]
[TD="class: xl63, align: right"]10[/TD]
[TD="class: xl63, align: right"]11[/TD]
[TD="class: xl63, align: right"]12[/TD]
[TD][/TD]
[TD="class: xl63"] [/TD]
[TD="class: xl63"] [/TD]
[TD="class: xl63"] [/TD]
[TD="class: xl63"] [/TD]
[TD][/TD]
[TD="class: xl63, align: right"]5[/TD]
[TD="class: xl63, align: right"]6[/TD]
[TD="class: xl63, align: right"]7[/TD]
[TD="class: xl63, align: right"]8[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="class: xl63, align: right"]17[/TD]
[TD="class: xl63, align: right"]18[/TD]
[TD="class: xl63, align: right"]19[/TD]
[TD="class: xl63, align: right"]20[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="class: xl63, align: right"]9[/TD]
[TD="class: xl63, align: right"]10[/TD]
[TD="class: xl63, align: right"]11[/TD]
[TD="class: xl63, align: right"]12[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try this

1. in the column to the right of table A put =ROW()*2 and copy down the column
2. in the column to the right of table B put =ROW()*2+1 and copy down the column
3. Copy Table B and the column to the right of B under table A
4. Sort the merged tables on the column to the right of Table A

You should now have the output as per table C
 
Upvote 0
Please tell us the exact ranges Tables A and B are in, and what range you want Table C created in.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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