I have a two dimensional table with countries and years in Excel. eg.
1961 1962 1963 1964 USA a x g y France u e h a Germany o x n p
I’d like to ‘flatten’ it, such that I have Country in the first col, Year in the second col, and then value in the third col. eg.
Country Year Value USA 1961 a USA 1962 x USA 1963 g USA 1964 y France 1961 u ...
The example I present here is only a 3×4 matrix, but the real dataset i have is significantly larger (roughly 50×40 or so).
Any suggestions how I can do this using Excel?
You can use the excel pivot table feature to reverse a pivot table (which is essentially what you have here):
Good instructions here:
http://spreadsheetpage.com/index.php/tip/creating_a_database_table_from_a_summary_table/
Which links to the following VBA code (put it in a module) if you don’t want to follow the instructions by hand:
-Adam