How to “flatten” or “collapse” a 2D Excel table into 1D?

前端 未结 9 935
[愿得一人]
[愿得一人] 2020-11-28 05:02

I have a two dimensional table with countries and years in Excel. eg.

        1961        1962        1963        1964
USA      a           x            g           


        
9条回答
  •  遥遥无期
    2020-11-28 05:04

    In Excel 2013 need to follow next steps:

    • select data and convert to table (Insert -> Table)
    • call Query Editor for table (Power Query -> From Table)
    • select columns that contain years
    • in context menu select 'Unpivot Columns'-command.

    Support Office: Unpivot columns (Power Query)

提交回复
热议问题