Automate transpose column data into row

saurabhS

New Member
Joined
Dec 23, 2020
Messages
1
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
I have a workbook in which I have almost 150 sheet. In each sheet I have data in column like in range A1:AX1. I want to transpose that data in rows in same sheet. Just to say in each sheet the range is not fix. I want to develop a maro which will transpose my data from columns to rows for all the 150 sheets data.

PLease see the data I have in sheet as example
Sheet 1: Here I want the

1608710104836.png


sheet 2 :-
1608710187798.png
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Book5
ABCDEFGH
1Column1Column2Column3Column4Column5Column6
2ABCDEF
3ghijkl
4
5Column1Column2
6Ag
7Bh
8Ci
9Dj
10Ek
11Fl
Sheet1


resolved using Power Query
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
    #"Transposed Table" = Table.Transpose(Source)
in
    #"Transposed Table"
 
Upvote 0
Second scenario

Book5
ABCDEF
1Column1Column2Column3Column4Column5
2ABCDF
3
4Value
5A
6B
7C
8D
9F
Sheet2


With Power Query once again

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table4"]}[Content],
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(Source, {}, "Attribute", "Value"),
    #"Removed Columns" = Table.RemoveColumns(#"Unpivoted Columns",{"Attribute"})
in
    #"Removed Columns"
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,019
Members
448,938
Latest member
Aaliya13

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