How to Enter Data in SPSS

SPSS is a statistical analysis program that is used in a variety of fields, from market researchers to government agencies. It allows you to perform a variety of functions on your data, but you need data before you can do any of that....
Method 1 of 2:

Entering In Your Own Data

  1. How to Enter Data in SPSS Picture 1How to Enter Data in SPSS Picture 1
    Define your variables. In order to enter data using SPSS, you need to have some variables. These are the columns of the spreadsheet when using "Data View", and each one will contain data that is all the same format.
    1. To define your variables, double-click a column heading "Data View" A menu will appear, allowing you to define the variable.
    2. When entering a variable Name, it must begin with a letter and capitalization is ignored.
    3. When choosing the Type, you can choose between "String" (characters) and a variety of numerical formats.
    4. See this guide for more details on defining variables.
  2. How to Enter Data in SPSS Picture 2How to Enter Data in SPSS Picture 2
    Create a multiple choice variable. If you are defining a variable that has two or more set possibilities, you can set labels for the values. For example, if one of your variables is whether or not an employee is active, your only two options for that variable might be "Active" and "Former".[1]
    1. Open the Labels section of the Define Variable menu, and create a numbered value for each possibility (e.g. "1", "2", etc.).
    2. For each value, give it a corresponding label (e.g. "Active", "Former").
    3. When you enter in the data for that variable, you only have to type "1" or "2" to select the option you want.
  3. How to Enter Data in SPSS Picture 3How to Enter Data in SPSS Picture 3
    Enter your first case. Click the empty cell directly underneath the leftmost column. Enter in the value that matches the variable type into the cell. For example, if the column is "name", you might enter in an employee's name.[2]
    1. Each row is one "case", which is referred to as a record in other database programs.
  4. How to Enter Data in SPSS Picture 4How to Enter Data in SPSS Picture 4
    Continue filling out variables. Move to the next empty cell to to the right and fill out the appropriate value. Always fill out one complete record at a time. For example, if you are entering employee records, you would enter a single employee's name, address, phone number, and salary before moving on to the next employee.
    1. Make sure that the values you enter match the Type format. For example, entering a dollar value in a Date-formatted column will cause an error.[3]
  5. How to Enter Data in SPSS Picture 5How to Enter Data in SPSS Picture 5
    Finish filling out your cases. After each case is finished, move down to the next row and enter in the next. Make sure each case has an entry for every variable.
    1. If you decide you need to add another variable, double-click the next open column header and create one.
  6. How to Enter Data in SPSS Picture 6How to Enter Data in SPSS Picture 6
    Manipulate your data. Once you have finished entering all of your data, you can use the tools built-in to SPSS to start manipulating your data. Some possible examples include:
    1. Create a frequency table
    2. Run a regression analysis
    3. Run an analysis of variance
    4. Create a scatter plot graph
Method 2 of 2:

Importing Data

  1. How to Enter Data in SPSS Picture 7How to Enter Data in SPSS Picture 7
    Import an Excel file. When you import your data from an Excel file, you will be automatically creating variables based on the first row of the spreadsheet. The values of this row will become the variable names. You can also choose to enter your variables manually.
    1. Click File → Open → Data...
    2. Select the .xls format for the "Files of type"
    3. Browse for and open the Excel file.
    4. Check the "Read variable names from the first row of the data" box if you want the variable names to be created automatically.
  2. How to Enter Data in SPSS Picture 8How to Enter Data in SPSS Picture 8
    Import a comma-separated-value file. This is a plain text file format (.csv) with each entry being separated by a comma. You can set the variables to be created automatically based on the first line of the .csv file.
    1. Click File → Read Text Data...
    2. Select "All Files (*.*)" for the "Files of type"
    3. Browse for and open the .csv file
    4. Follow the prompts to import the file. Make sure that you tell SPSS that the variable names are at the top of the file when asked, and that the first case is on line 2.[4]
5 ★ | 1 Vote