Hi everyone,
Very frequently I have economic databases in the following format in excel:
YEAR US India China
2010 100 200 400
2011 300 280 120
2012 120 300 500
2013 200 50 120
I would like to have a macro to transform the data in the following format regardless of the number of columns and rows in the initial database (sometimes the time period is 1961-2014 and I have as many as 100 countries):
Year Country Value
2010 US 100
2011 US 300
2012 US 120
2013 US 200
2010 India 200
2011 India 280
2012 India 300
2013 India 500
2010 China 400
2011 China 120
2012 China 500
2013 China 120
Any suggestions?
Much appreciated!
Very frequently I have economic databases in the following format in excel:
YEAR US India China
2010 100 200 400
2011 300 280 120
2012 120 300 500
2013 200 50 120
I would like to have a macro to transform the data in the following format regardless of the number of columns and rows in the initial database (sometimes the time period is 1961-2014 and I have as many as 100 countries):
Year Country Value
2010 US 100
2011 US 300
2012 US 120
2013 US 200
2010 India 200
2011 India 280
2012 India 300
2013 India 500
2010 China 400
2011 China 120
2012 China 500
2013 China 120
Any suggestions?
Much appreciated!