Hi guys,
First of all - great forum, have been following passively for some time and hoped to find help with this, no luck though.
My problem:
I have downloaded national economic data from IMF with several countries for several years. I need several variables and must extract them individually so I a need a clever solution to my problem.
I currently have data that is sorted like below. The "-" indicates a numerical gdp value for the given country for the given year.;
(FYI I could not get the "-" to align beneath 2001-2004 and year respectively.)
Country 2001 2002 2003 2004
x - - - -
y - - - -
z - - - -
The identifier here is country, and the data is as such structered as cross sectional data, with each yearly account of gdp being a variable.
Now, I need this data as panel data, organized as below;
Country year gdp
x 2001 -
x 2002 -
x 2003 -
x 2004 -
I sort of say, need to "flip it". As I have 180 countries and 11 years, and need to do this with 2-3 variables, I need either a formula or a VBA to run.
Can anyone help me here?
Bookmarks