Count Values within Cases: Values to Count

The value of the target variable (on the main dialog box) is incremented by 1 each time one of the selected variables matches a specification in the Values to Count list here. If a case matches several specifications for any variable, the target variable is incremented several times for that variable.

Value specifications can include individual values, missing or system-missing values, and ranges. Ranges include their endpoints and any user-missing values that fall within the range.

Specifying Values to Count

  1. From the menus choose:

    Transform > Count Values within Cases...

  2. Select two or more variables of the same type (numeric or string).
  3. Click Define Values and specify which value or values should be counted.