How to transpose uneven data

InfinityMrsn

New Member
Joined
Mar 21, 2023
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I have a list of a lot of data what I want to transpose. This works pretty well, but I have uneven data.

For example: I have up to 18 different properties, but not every item has the same number of properties.
There are products with 1-18 properties, but also products with 1-13 properties or products with properties 1,3,5,7,8,13,14,15,16,17,18.

On sheet1 you will find the data (shortened), on sheet 2 you will find how the final result should be.

I have a VBA code, but it ignores the odd properties, so information gets mixed up.

I hope someone could help me with it.

Sheet 1:
Titlemb1Likepx1textgreen500Field2FieldField1
ABBA Straps BCA28ABBABCA2847,-StockSize22 mm
ABBA Straps BCA28ABBABCA2847,-StockMaterialLeer
ABBA Straps BCA28ABBABCA2847,-StockSize22 mm
ABBA Straps BCA28ABBABCA2847,-StockSize A22 mm
ABBA Straps BCA28ABBABCA2847,-StockColor AZwart
ABBA Straps BCA28ABBABCA2847,-StockColor CRood
ABBA Straps BCA28ABBABCA2847,-StockLockGesp
ABBA Straps BCA28ABBABCA2847,-StockColor BZilver
ABBA Straps BCA28ABBABCA2847,-Stock12U75 mm
ABBA Straps BCA28ABBABCA2847,-Stock6U120 mm
ABBA Straps BCA28ABBABCA2847,-StockOrigNee
ABBA Straps BCA28ABBABCA2847,-StockStartPushpins
ABBA Straps BCA28ABBABCA2847,-StockStraightJa
ABBA Straps BCA301ABBABCA30130,-StockSize20 mm
ABBA Straps BCA301ABBABCA30130,-StockMaterialMetaal
ABBA Straps BCA301ABBABCA30130,-StockExtra infoStainless Steel Bracelet
ABBA Straps BCA301ABBABCA30130,-StockSize20 mm
ABBA Straps BCA301ABBABCA30130,-StockColor ARoségoud
ABBA Straps BCA301ABBABCA30130,-StockLockVWS
ABBA Straps BCA301ABBABCA30130,-StockColor BRoségoud
ABBA Straps BCA301ABBABCA30130,-StockOrigNee
ABBA Straps BCA301ABBABCA30130,-StockStartPushpins
ABBA Straps BCA301ABBABCA30130,-StockStraightNee
ABBA Straps BCA22ABBABCA2246,-StockSize22 mm
ABBA Straps BCA22ABBABCA2246,-StockMaterialLeer
ABBA Straps BCA22ABBABCA2246,-StockSize22 mm
ABBA Straps BCA22ABBABCA2246,-StockSize A22 mm
ABBA Straps BCA22ABBABCA2246,-StockSize B20 mm
ABBA Straps BCA22ABBABCA2246,-StockColor AZwart
ABBA Straps BCA22ABBABCA2246,-StockColor CWit
ABBA Straps BCA22ABBABCA2246,-StockLockGesp
ABBA Straps BCA22ABBABCA2246,-StockColor BZilver
ABBA Straps BCA22ABBABCA2246,-Stock12U75 mm
ABBA Straps BCA22ABBABCA2246,-Stock6U120 mm
ABBA Straps BCA22ABBABCA2246,-StockOrigNee
ABBA Straps BCA22ABBABCA2246,-StockStartPushpins
ABBA Straps BCA22ABBABCA2246,-StockStraightJa

Sheet 2:
SizeMaterialExtra infoSizeSize ASize BColor AColor CLockColor B12U6UOrigStartStraight
ABBA Straps BCA2822 mmLeer22 mm22 mmZwartRoodGespZilver75 mm120 mmNeePushpinsJa
ABBA Straps BCA30120 mmMetaalStainless steel bracelet20 mmRoségoudVWSRoségoudNeePushpinsNee
ABBA Straps BCA2222 mmLeer22 mm22 mm20 mmZwartWitGespZilver75 mm120 mmNeePushpinsJa
 
What columns are listed in the previous step ,does it look like this?
1679413050281.png
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Remove column Aangepast and continue as below
1679414580787.png

1679414619227.png

1679414689453.png

Select all the columns basicalyl 2nd column to last , as you want to remove all values with "null" and simply replace values as follows
1679414872436.png
 
Upvote 0
Solution
@Kerryx How can I thank you. This works perfectly ! I'm so glad you helped me. This will save me thousands of hours.
Many Many thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,215,440
Messages
6,124,882
Members
449,193
Latest member
PurplePlop

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