Microsoft Excel – Transform Spreadsheet Data

microsoft excelmicrosoft-excel-2010pivot tabletranspose

I have data in a table that needs to be transformed into time-series row data.

At the moment my data is in the following columns and format:

GEOID, July, August, September, October, November, December, January, February, March, April, May, June

And in the rows we have the values.

And I need my data in .csv where as the columns are:

GEOID, Month, Value

How can I accomplish this?

Best Answer

You can use the free Microsoft Excel add-In Power Query (from Excel 2010) to unpivot your data and get a list in tabular form.

To make the transformation, follow the description on the MS Website.

  1. Import the data in Power Query (Ribbon Power Query -> from Table, cursor must be somewhere in your data)
  2. Select the first column (GEOID), on the Ribbon Transform, click on Unpivot Columns > Unpivot Other Columns
  3. Close and load to Excel (Ribbon Home)
Related Question