# Thread: How to compute a range in SPSS??

1. ## How to compute a range in SPSS??

Hi,

Does anybody know how to compute the range between the lowest and highest variable in SPSS?

Say for example, I have consumer ratings on 10 variables.
Consumer 1 ratings
Variable 1 rating = -.999
Variable 2 rating = .999
Variable 3 rating = -.444
Variable 4 rating = .234
etc.

The range between the lowest and highest variable for this consumer is .999-(-.999) = 1.998

But for the second consumer, the highest and lowest rating might be present with variable 2 and 3, get my gist?

In one formula, I should be able to compute the range between the highest and the lowest of the 10 variables for each consumer. I just don't know how to, and it would be of great help if anybody could assist me with this.

Thanks alot!

2. Hello
yes you can via this way :
analyze\descriptive frequency \frequency : then click on :
statistics menu \dispersion then click on range

3. Thanks Elnaz,

But I think what you get then, is just a range per person per variable. so that if for variable 1 the number is 0,499, the range for this person on this variable will be 0,499.

But what I would really like to know, is how to compute the range (difference) between the highest and the lowest of the 10 variables for every respondent separately. I should be able to do this with one 'compute' command, but simply don't know how...anyone else any suggestions?

Thanks again!

4. Hey Guys,

I figured out how to do it my-self!

All you have to do is go to Compute in SPSS and type in the following formula:

max(var1,var2,var3...) - min(var1,var2,var3...).

Thanks anyway for trying to help me figure this one out!

5. Hello again
why didnt you do what i said you?
and why did you delete your data ?
please attach them i will do that for you
and you will see their answers are the same

6. Hey Elnaz,

I'm sorry for having deleted the spss file, here it is again. I appreciate your help! thanks.

 Tweet

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts