Convert blocks of data in excel to rows for SPSS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Convert blocks of data in excel to rows for SPSS

TorB
Hi,

I have an excel file of survey data which has every question a respondent answered on one row. Therefore for each respondent there are several rows beginning with the respondent ID. I have ordered these so they are in blocks (therefore 1 respondent has several rows of data).

I need to run the analysis in SPSS, and therefore need all of each respondents data to be in 1 row. Can anyone advise how I can convert?

Thanks

TorB
Reply | Threaded
Open this post in threaded view
|

Re: Convert blocks of data in excel to rows for SPSS

Bruce Weaver
Administrator
Import the Excel file as is (File > Open > Data, set file type to Excel, select the appropriate file, and exit via PASTE), and then use CASESTOVARS to restructure the file.

http://pic.dhe.ibm.com/infocenter/spssstat/v20r0m0/index.jsp?topic=%2Fcom.ibm.spss.statistics.help%2Fsyn_casestovars_overview.htm

http://www.ats.ucla.edu/stat/spss/modules/reshapew115.htm

HTH.


TorB wrote
Hi,

I have an excel file of survey data which has every question a respondent answered on one row. Therefore for each respondent there are several rows beginning with the respondent ID. I have ordered these so they are in blocks (therefore 1 respondent has several rows of data).

I need to run the analysis in SPSS, and therefore need all of each respondents data to be in 1 row. Can anyone advise how I can convert?

Thanks

TorB
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).