Importing excel

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

Importing excel

Rajeshms
Hi all,

I am facing problem while importing excel sheet data. Lets say for example, In excel we have labels and other unwanted names and texts , so while importing we have to clean the excel sheet and make ready to get it imported into spss.Is there any option so that I can over come this time consuming procedure.

thanking you for comments,

--
Rajesh M S



Reply | Threaded
Open this post in threaded view
|

Re: Importing excel

J. R. Carroll
I'm going to pull a David M and say:

Don't screw up your Excel? 

=P

Then I'm going to pull a Justin (me) and say:

Excel is great for exporting out in csv or some other delimited format, I always default to Python as a knee-jerk solution because I work a lot with it and feel comfortable work in it - I know there exists Syntax solutions for parsing - but Python could delete unwanted data and save the resulting data to a flat file for easy importing into SPSS.  The script would take ~20 min to write (and that includes watching TV in the background), and would take about 2 sec to run (depending on the size of your datafile).  It's another step, but if the Excel file is being pulled from a database with garbage in it that you dont want (or someone is preparing it for you and cannot deliver it in the format you want) this would be a easy solution and save you time.  

-J

----


J. R. Carroll
Cell:  (650) 776-6613
          [hidden email]
          [hidden email]
          [hidden email]




On Fri, Jun 29, 2012 at 1:29 PM, Rajeshms <[hidden email]> wrote:
Hi all,

I am facing problem while importing excel sheet data. Lets say for example, In excel we have labels and other unwanted names and texts , so while importing we have to clean the excel sheet and make ready to get it imported into spss.Is there any option so that I can over come this time consuming procedure.

thanking you for comments,

--
Rajesh M S




Reply | Threaded
Open this post in threaded view
|

Re: Importing excel

David Marso
Administrator
In reply to this post by Rajeshms
I believe you need to be more specific re what it actually looks like before and what it should look like later.  What does it look like if you don't clean up the excel and read it straight up.
Might be somewhere between VERY easy (or a royal PIA) to clean it afterwards within SPSS dependent upon the actual structure of the file.
Rajeshms wrote
Hi all,

I am facing problem while importing excel sheet data. Lets say for example,
In excel we have labels and other unwanted names and texts , so while
importing we have to clean the excel sheet and make ready to get it
imported into spss.Is there any option so that I can over come this time
consuming procedure.

thanking you for comments,

--
Rajesh M S
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"