Transpose multiple horizontal rows to a singel vertical column

pete1229

New Member
Joined
Nov 6, 2020
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Is there a simple way (equation or VBA) to transpose hundreds of horizontal lines to a single vertical line?

The data covers 48 columns from A to AV and I would like column AX to contain the transposed data. I did a quick example using only the first row transposed to AX. Data from the next row would continue down the AX column until there are no more rows.

test.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAX
121.921.921.92.12.621.92.522.12.13.34.24.44.55.17.25.55.15.55.56.35.34.54.85.95.144.13.743.52.92.71.81.91.81.81.81.81.81.81.81.81.92
21.91.91.91.91.81.822.821.81.822.61.91.82.42.62.42.53.54.24.454.94.74.74.53.72.52.121.821.81.921.81.81.81.81.81.81.81.81.81.81.81.91.9
31.91.91.91.81.91.822.41.91.91.81.81.821.81.81.921.91.81.91.81.81.81.81.91.81.81.81.91.81.81.81.81.81.81.81.81.81.81.81.81.81.81.81.81.81.92
41.91.91.91.91.91.922.51.91.92.52.52.333.43.75.14.44.34.44.44.44.14.665.96.34.83.74.24.64.443.53.32.41.91.81.82.21.81.81.81.81.81.81.81.91.9
52
61.9
72.1
82.6
92
101.9
112.5
122
132.1
142.1
153.3
164.2
174.4
184.5
195.1
207.2
215.5
225.1
235.5
245.5
256.3
265.3
274.5
284.8
295.9
305.1
314
324.1
333.7
344
353.5
362.9
372.7
381.8
391.9
401.8
411.8
421.8
431.8
441.8
451.8
461.8
471.8
481.9
Sheet3
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
How about
Excel Formula:
=LET(rng,A1:AV4,c,COLUMNS(rng),s,SEQUENCE(c*ROWS(rng),,0),INDEX(rng,INT(s/c)+1,MOD(s,c)+1))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,212
Messages
6,123,651
Members
449,111
Latest member
ghennedy

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