Formatting data and using macro for text to columns feature

murali18

New Member
Joined
Aug 19, 2009
Messages
1
Hi All,

I have a sample xl file having data as shown below:
____________________________________________________________
| Column A | Column B| Column C |
| H1 H2 H3 H4 H5 H6 | | |
| D1 D2 D3 D4 D5 D6 | | |
| H7 H8 H9 | | |
| D7 D8 D9 | | |
| ------------------------------ | | |
Next set similar as above

{Where H means Headers and D means Data (corresponding to the Hs).}

I needed help with macro such that the resulting data is formatted like this.

___________________________________________________________
| Col A | Col B | Col C | Col D | Col E | Col F| Col G|Col H|Col I|Col J |
| H1 | H2 | H3 | H4 | H5 | H6 | H7 | H8 | H9 |
| D1 | D2 | D3 | D4 | D5 | D6 | D7 | D8 | D9 |
| D1 | D2 and so on....


Please help me with the Macro that can format in the above mentioned way. Many Thanks for your help!

P.S - Please let me know if this is inadequate data.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Welcome to the board!

Please use Excel Jeanie (see link in my sig) to post the first dozen rows of your worksheets in both their current and desired states.
Are the headers/data always grouped in rows of 6?
Is there only 1 line of data for each header row?
Is there ever more than 9 columns in the end product?
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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