3

Each column shows the types of tools used. The last column shows how many tools are used.

I would like to calculate the last column with SPSS without turning the columns into 1.

Ebru
  • 59
  • 1
  • 4

1 Answers1

5

You can use the COUNT command to do this, small example below.

DATA LIST FREE / Tool1 Tool2 Tool3.
BEGIN DATA
1 3 8
1 5 1
1 . .
2 3 .
3 . .
END DATA.

COUNT Tool# = Tool1 TO Tool3 (LOWEST THRU HIGHEST).
EXECUTE.
Andy W
  • 5,031
  • 3
  • 25
  • 51