Transpose several two-column groups of information into a single vertical two-column list

Tiv

New Member
Joined
Dec 9, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I was sent a spreadsheet, but reading the information is difficult in a horizontal format. It needs to be vertical. I need to be able to transpose it, but I need it to be in a two-column formation.

The information came to me like this:
PartQtyPartQtyPartQtyPartQty
Aisle 1Bananas
1​
Oranges
2​
Apples
9​
Raspberries
50​
Aisle 2Blueberries
16​
Mangos
7​
Potatoes
10​
Carrots
12​
Aisle 3Green beans
72​
Lima beans
100​
Onions
37​
Celery
9​




I need it to look like this:
Aisle 1
Bananas
1​
Oranges
2​
Apples
9​
Raspberries
50​
Aisle 2
Blueberries
16​
Mangos
7​
Potatoes
10​
Carrots
12​
Aisle 3
Green beans
72​
Lima beans
100​
Onions
37​
Celery
9​



I'm not having any luck with the Transpose function unless there's more to the formula.

How do I turn several two-column-bits of information in a horizontal format into a vertical two-column list?
 
We've upgraded to Office 365 now.
Thanks for that.
A couple of formula solutions
Fluff.xlsm
ABCDEFGHI
1PartQtyPartQtyPartQtyPartQty
2Aisle 1Bananas1Oranges2Apples9Raspberries50
3Aisle 2Blueberries16Mangos7Potatoes10Carrots12
4Aisle 3Green beans72Lima beans100Onions37Celery9
5
6
7Aisle 1Aisle 1Bananas1
8Bananas1Aisle 1Oranges2
9Oranges2Aisle 1Apples9
10Apples9Aisle 1Raspberries50
11Raspberries50Aisle 2Blueberries16
12Aisle 2Aisle 2Mangos7
13Blueberries16Aisle 2Potatoes10
14Mangos7Aisle 2Carrots12
15Potatoes10Aisle 3Green beans72
16Carrots12Aisle 3Lima beans100
17Aisle 3Aisle 3Onions37
18Green beans72Aisle 3Celery9
19Lima beans100
20Onions37
21Celery9
Main
Cell Formulas
RangeFormula
A7:B21A7=LET(a,WRAPROWS(TOCOL(B2:I4),2),SORTBY(VSTACK(a,EXPAND(A2:A4,,2,"")),VSTACK(SEQUENCE(ROWS(a)),SEQUENCE(ROWS(A2:A4),,0.2,4))))
D7:F18D7=HSTACK(TOCOL(IF(ISTEXT(B2:I4),A2:A4,x),3),WRAPROWS(TOCOL(B2:I4),2))
Dynamic array formulas.
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
this is not VBA but Power Query which is part of your version but is called Get and Transform Data and found on the Data Tab
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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