Transposing certain columns

shyam

Active Member
Joined
Jul 18, 2005
Messages
302
I have a statement which runs into some 200 rows. I need to transpose only certain columns (3rd, 4th and 5th) and repeat the data in that corresponding row (1st and 2nd columns) twice below. eg. is given below :

Excel Workbook
CDEFG
1Query****
2*****
33000806AAA101.57.07.0
43000821BBB93.07.07.0
53000837CCC26.56.07.0
63000900DDD50.07.07.0
7*****
8*****
9Answer****
10*****
113000806AAA101.5**
123000806AAA7.0**
133000806AAA7.0**
14*****
153000821BBB93.0**
163000821BBB7.0**
173000821BBB7.0**
18*****
193000837CCC26.5**
203000837CCC6.0**
213000837CCC7.0**
22*****
233000900DDD50.0**
243000900DDD7.0**
253000900DDD7.0**
Sheet1


Is there any method by which I can derive the result and given above. (either through formula or thru VB).

Many thanks for your kind help.

Regards

Shyam
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
'ROWS TO COLUMNS
Here's a macro for expanding rows of data to multiple rows parsing out the values in the row while duplicating the header row as categories. There's a sample workbook too you could drop your data into and test it out.


Before running the macro, make sure your data is flush with the left and top of the worksheet, no blank rows, ok? When you run the macro, indicate which column to start the split down, column F in your example above, but if you move it all to column A, then that would be column C, yes?
 
Upvote 0
Many thanks for your reply. I am trying out different option given in the link.

Thanks again.

Regards

Shyam
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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