Well, nothing elegant. You can run this in syntax for example:
VALUE LABELS my_variable 1 'Red' 2 'Orange' 3 'Yellow' 4 'Other' 5 'Other' .
Notice that you can repeat the same label - Other, in this case. Use whatever string you want except a blank; that will return the value again - and then all 4s and 5s (or more if you add the appropriate label) appear as 'Other'.
Assuming the values without labels are equivalent, you could use RECODE after all the data are entered:
RECODE my_variable (4 thru HI=4).
EXECUTE.
That way, you have just one label for Other.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
------------------------------
Original Message:
Sent: Tue August 31, 2021 09:09 AM
From: Ngozi Ilouno
Subject: SPSS version 28 shows text in the data view
Hello,
I am just wondering if anyone has used IBM SPSS version 28 - on the variable view i defined my variable for example, 1=Red, 2=orange and 3=yellow. On the data view if i enter 1, text for red will appear, so also for orange when I enter 2 and yellow when i enter 3. However, if there is no value defined for a number it stays. Example, If i entered 4 and there is no defined value in the variable view, it stays as 4. Does anyone know what could be the cause? Thanks for you help!
------------------------------
Ngozi Ilouno
------------------------------
#SPSSStatistics