Learning how to enter data in SPSS is mostly a matter of setting up the file properly before typing a single number, because a variable with the wrong type, no value labels or an unflagged missing code will quietly distort every table you run later. The steps below follow the Kent State University Libraries SPSS tutorials and IBM's own documentation, and they assume you have a paper or spreadsheet record of your responses ready to transfer.

Plan your variables and codes before you open SPSS

Write a short codebook listing each variable, what it measures, the values it can take and the number you will use for each category, such as 1 for first year and 2 for second year. Kent State University Libraries (n.d.-b) stresses that defined variables let you, and anyone else who works with the data, tell exactly what was measured and how, which is also what your supervisor will ask about when reading your methods.

Define each variable in Variable View

Click the Variable View tab at the bottom of the Data Editor, where each row describes one variable and the columns hold its name, type, width, decimals, label, values, missing codes, measure and role (Kent State University Libraries, n.d.-b). Names cannot contain spaces, so use something like School_Class, and add a fuller label, which appears in the output in place of the name.

For coded categories, open the Values cell and add a label for every code, since the labels then appear in your output and the stored numbers stay unchanged (Kent State University Libraries, n.d.-b). Set the Measure column carefully as nominal, ordinal or scale, because numeric variables are detected as scale by default and an incorrect level affects everything from graphs to the procedures used in analysis.

How to enter data in SPSS in Data View

Switch to the Data View tab, where each column is now one of the variables you defined and each row is one case, such as a participant or a questionnaire (Kent State University Libraries, n.d.-a). Type each case's values across its row, keeping the first person's responses in row one, and save the file regularly as you work, since a long session of typing is easy to lose.

Set the Decimals column to 0 for whole-number codes before you start, as the default display is two decimals, although this setting changes only how values appear and not the values stored (Kent State University Libraries, n.d.-a, n.d.-b).

Set codes for missing values

A blank numeric cell is treated as system-missing and shown as a full stop, but surveys often need separate codes for different reasons, such as -99 for a refused answer and -77 for a question the respondent ran out of time to complete (Kent State University Libraries, n.d.-b). Enter those codes in the Missing column as discrete missing values, up to three per variable, and give them value labels too so their names appear in the output.

Take extra care with string variables, because blank text cells are not recognised as missing automatically, and the tutorial suggests either adding a space as a missing code or using Automatic Recode to turn the strings into a coded numeric variable (Kent State University Libraries, n.d.-b).

Check for out-of-range values and duplicate cases

Run Analyze, Descriptive Statistics, Frequencies on each categorical variable, which lists every value that occurs along with a Missing section showing system-missing and user-defined codes separately (Kent State University Libraries, n.d.-c). A code of 22 on a variable that only runs from 1 to 4 usually points to a typing slip, and the original questionnaire tells you what the correct value should be.

For duplicates, choose Data and then Identify Duplicate Cases, select the variable or variables that define a matching case, such as a participant ID, and create the indicator of primary cases (IBM, n.d.). That indicator is 1 for unique and primary cases and 0 for duplicates, and you can use it as a filter to exclude repeats from analysis without deleting them from the file, which keeps a record of what you removed.

Writing down each correction as you make it gives you a cleaning log for the methods section of your dissertation, which fits the chapter order set out in the article on dissertation chapter structure. If you would like a second pair of eyes on your coding scheme or your first analyses, data analysis support and dissertation support can work through the file with you.

Frequently asked questions

Should I leave missing answers blank or give them a code?

A blank numeric cell is already treated as missing, so blanks are fine when the reason does not matter. Use separate codes such as -99 when you need to tell refused answers apart from skipped ones, and declare them in the Missing column (Kent State University Libraries, n.d.-b).

Does changing the Decimals setting change my data?

It changes only how values are displayed in the Data Editor, while the stored values stay the same (Kent State University Libraries, n.d.-b).

Should I delete duplicate cases?

The primary case indicator lets you filter duplicates out of reports and statistics while keeping them in the file (IBM, n.d.), which makes it easier to explain and reverse the decision later.

References

IBM. (n.d.). Identifying duplicate cases. IBM SPSS Statistics documentation.

Kent State University Libraries. (n.d.-a). Data creation in SPSS. SPSS Tutorials.

Kent State University Libraries. (n.d.-b). Defining variables. SPSS Tutorials.

Kent State University Libraries. (n.d.-c). Frequency tables. SPSS Tutorials.