I have 5 variables var1 to var5 that have either 1, 2 or 3 as value. i want to compute a kind of index that is represented by this formula:
index = (number of 1's in var1 to var5)*2 + (number of of 2's in var1 to var5)
Neither COMPUTE nor COUNT lead me to success.





Reply With Quote