let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
ChangedDataType = Table.TransformColumnTypes(Source,{{"Name", type text}, {"Age", Int64.Type}, {"Name2", type text}, {"Age3", Int64.Type}, {"Name4", type text}, {"Age5", Int64.Type}, {"Name6", type text}, {"Age7", Int64.Type}, {"Name8", type text}, {"Age9", Int64.Type}, {"Name10", type text}, {"Age11", Int64.Type}}),
UnpivotedColumns = Table.UnpivotOtherColumns(ChangedDataType, {}, "Attribute", "Value"),
AddedCustomColumn = Table.AddColumn(UnpivotedColumns, "Age", each Number.ToText([Value])),
ReplacedErrors = Table.ReplaceErrorValues(AddedCustomColumn, {{"Age", null}}),
FilledUp = Table.FillUp(ReplacedErrors,{"Age"}),
SortedRows = Table.Sort(FilledUp,{{"Value", Order.Ascending}}),
RemovedUneededRows = Table.Skip(SortedRows,18),
RemovedUneededColumns = Table.RemoveColumns(RemovedUneededRows,{"Attribute"})
in
RemovedUneededColumns
Bookmarks