Table Manipulation

lbird2

Board Regular
Joined
Dec 10, 2014
Messages
78
Office Version
  1. 365
Platform
  1. Windows
Info1Info2Info3Info4Data1Data2Data3Data4
A1BlueHot0.40.51.32.7
B2WhiteCold2.30.11.58.1
C3GoldHot2.67.16.10.8
D4BrownCold0.92.62.31.1
E1WhiteHot0.10.62.32.0
F7RedCold5.21.08.15.1
G2PurpleCold1.60.14.03.5

<tbody>
</tbody>


I find I need to do this often so I'm looking for a way to automate. I would like to repeat the "Info" rows and move each of the "Data" values to a single column of data. The table below shows what the result would be for the first two "Data" columns.

I get data in this format often and find the converted table to be much more flexible for analysis.

To make matters harder, the number of Info and Data items vary so I would like to account for that.

Any help would be greatly appreciated and would make my life a lot less tedious.


Info1Info2Info3Info4Data
A1BlueHot0.4
B2WhiteCold2.3
C3GoldHot2.6
D4BrownCold0.9
E1WhiteHot0.1
F7RedCold5.2
G2PurpleCold1.6
A1BlueHot0.5
B2WhiteCold0.1
C3GoldHot7.1
D4BrownCold2.6
E1WhiteHot0.6
F7RedCold1.0
G2PurpleCold0.1

<tbody>
</tbody>
 
Thanks Jan. This worked nicely. Thanks also for the Get-Transform tip - I'm loving that tool!
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thanks Jan. This worked nicely. Thanks also for the Get-Transform tip - I'm loving that tool!
Awesome! Glad you have the tool available.
For those still tied to (or trapped) to a version where they can't use the PowerBI tool set, a macro specific to their case is great. Alternatively for those without access to the Get-Transform (PowerQuery) there is a technique using the PivotTable Wizard and multiple consolidation ranges.
(Trouttrap2 gives a brief description in this forum thread. though he doesn't mention the concatenate then Text-to-Columns of the "Row" combinations.)
 
Upvote 0

Forum statistics

Threads
1,215,472
Messages
6,125,003
Members
449,203
Latest member
Daymo66

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