spssforum.com from users, for users

SPSSforum.com is the largest free SPSS help resource worldwide.
On this SPSS forum you are sure to get an answer to your question!
Join the forum and let other SPSS users help you.

Join the SPSS users Group on LinkedIn
Join the SPSS Users Group
on LinkedIn
 
SPSSforum.com is a forum for SPSS users. Ask any question you like about SPSS or statistics.

It is currently Fri Sep 03, 2010 3:42 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Delete empty cells
PostPosted: Mon Mar 02, 2009 2:41 pm 
Offline

Joined: Mon Mar 02, 2009 2:03 pm
Posts: 2
Hi all,

can SPSS delete empty cells?

My problem: I import data from an external software (Superlab 4). To create the relevant variables I have to do some work-around. As a result I get a spss file for each participant, which looks like this:

Before:
Image

I need a way to tell SPSS, that I want to delete the empty cells. This should be the result:

After:
Image

One important note: these are the data from one participant. It should be noted, that the rows vary between participants, where the values are, but the columns are right!

I found an Excel macro to do this (http://www.mvps.org/dmcritchie/excel/delempty.htm), but Excel has several limitations (255 columns) which are really annoying!

Do you have any idea to solve this?

Thanks in advance!


Top
 Profile  
 



 Post subject: Re: Delete empty cells
PostPosted: Thu Mar 05, 2009 6:05 pm 
Offline

Joined: Wed Nov 26, 2008 7:12 pm
Posts: 54
Location: Kansas City, MO
If there is only one value in each variable for each case, then you can COMPUTE and new variable that gives each case a constant (e.g. COMPUTE overall=1.). Then just aggregate the data, breaking on the overall variable and summarizing all the other variables (or use the FIRST designation). This should give you the data format you're looking for.


Top
 Profile  
 
 Post subject: Re: Delete empty cells
PostPosted: Mon Mar 09, 2009 12:14 pm 
Offline

Joined: Mon Mar 02, 2009 2:03 pm
Posts: 2
Great! Thanks a lot! :P


Top
 Profile  
 



Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: statman and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Template made by DEVPPL

This site is in no way connected with SPSS Inc. or any affiliate of SPPS Inc. The SPSS logo and products are owned by and copyrighted by SPSS Inc. The views expressed in the messages posted on this site are those of persons writing those comments and not necessarily those of the SPSSforum.com. SPSSforum.com does not vouch for the accuracy or truthfulness of any posted statement or opinion. The SPSSforum.com has, however, refrained from posting any item containing any statement known to be inaccurate, false or baseless.