January 30, 2020
Hi all!
Is there a way I can stack data that are in multiple rows/columns with a formula? I need it to dynamic and updates as the changes are made.
If I have a range like below. (Sorry about the size, it wouldn't stay when I try to resize it)
a | ||||
b | h | i | ||
c | j | |||
d | ||||
g | e | |||
f |
And I want the results to be like (order isn't important, I'd probably use the sort function anyways.)
a |
b |
c |
d |
e |
f |
g |
h |
i |
j |
Thanks in advance!
Moderators
January 31, 2022
Trusted Members
October 18, 2018
An alternative is to unpivot your data with Power Query
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}}),
#"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type", {}, "Attribute", "Value"),
#"Removed Columns" = Table.RemoveColumns(#"Unpivoted Columns",{"Attribute"}),
#"Sorted Rows" = Table.Sort(#"Removed Columns",{{"Value", Order.Ascending}})
in
#"Sorted Rows"
1 Guest(s)