Excel Table With Columns Months to Rows With Months

Tardis

Board Regular
Joined
Dec 6, 2011
Messages
108
Hi,

I've got a table with a unique ID and some text columns and some numbers for each month.

Unique IDText 1Text 2AprMayJun
567926ABCzafads555
704740DEfadf555
704765DEaafds555
506511DEadfa555
705258DEadfa555
705259DEafd555
705260DEafd555
705261DEafd555
705262DEafd555
705263DEafd555

<tbody>
</tbody>

I need to convert it to this:

567926ABCzafadsApr5
567927ABCzafadsMay5
567928ABCzafadsJune5
567929ABCzafadsJuly5
567930ABCzafadsAug5
567931ABCzafadsSept5

<tbody>
</tbody>

Where the Unique ID and Text is duplicated and the months are broken out with their numbers.

Using Paste Transpose for each row is not feasible as I have thousands of rows.

Help? How?

Thanks,
Byron
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
The unpivot feature in Power Query was created for this kind of tasks. Power Query is a free add-in for Excel 2010 that became the Get & Transform found in the Data tab in later versions of Excel. Just google for "Power Query for Excel 2010" to download & install the app.

Once you have installed Power Query to your computer follow this tutorial and you'll be done in seconds.
 
Upvote 0
Can you show us a bit more of the results so we can see a pattern and where the subsequent results should go?
 
Upvote 0
The result is just 12 rows for each month with the information. However, I've written VBA to do the insert, copy, and transpose to get the result I want. I was hoping that there was a way using pivot table, or some other built in feature of Excel.
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,360
Members
448,888
Latest member
Arle8907

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