Hi,
I have a dataset that's in a "wide" format:
State, Year, Variable1, Variable2, Variable3
AL, 1990, 40, 50, 60
AR, 1980, 41, 51, 61
AK, 1970, 33, 55, 66
...
And I want it in a "long" format:
AL, 1990, Variable1, 40
AL, 1990, Variable2, 50
AL, 1990, Variable3, 60
AR, 1980, Variable1, 41
AR, 1980, Variable2, 51
AR, 1980, Variable3, 61
AK, 1970, Variable1, 33
etc...
The data is easier to read into a Pivot Table that way. Currently, I'm exporting the "wide" data from Access into Stata, reshaping it, exporting it to .csv, and then using the .csv as a basis for a Pivot Table (too many rows to import data into Excel). Ideally, I'd like to skip the Stata step altogether, but don't know if it's possible to reshape data in Access. Does anybody know a) whether this is possible and b) how to do it?
Any pointers would be appreciated. Thanks!
I have a dataset that's in a "wide" format:
State, Year, Variable1, Variable2, Variable3
AL, 1990, 40, 50, 60
AR, 1980, 41, 51, 61
AK, 1970, 33, 55, 66
...
And I want it in a "long" format:
AL, 1990, Variable1, 40
AL, 1990, Variable2, 50
AL, 1990, Variable3, 60
AR, 1980, Variable1, 41
AR, 1980, Variable2, 51
AR, 1980, Variable3, 61
AK, 1970, Variable1, 33
etc...
The data is easier to read into a Pivot Table that way. Currently, I'm exporting the "wide" data from Access into Stata, reshaping it, exporting it to .csv, and then using the .csv as a basis for a Pivot Table (too many rows to import data into Excel). Ideally, I'd like to skip the Stata step altogether, but don't know if it's possible to reshape data in Access. Does anybody know a) whether this is possible and b) how to do it?
Any pointers would be appreciated. Thanks!