Page 1 of 1

calculate ranks of series

Posted: Sun Jul 31, 2011 10:37 am
by lomfy
hello!
is there a possibility to calculate the ranks of the items of a series automatically?

for instance, if i have the series:

rs1
+4
+2
-3
-1
+6
-8

and would like to rank the series items' absolute values...

abs(rs1)
+4
+2
+3
+1
+6
+8

according to their size...

rank(abs(rs1))
4
2
3
1
5
6

...how could i possibly do this? thank you for any ideas!

Re: calculate ranks of series

Posted: Sun Jul 31, 2011 12:19 pm
by startz

Code: Select all

@ranks(abs(r1))

Re: calculate ranks of series

Posted: Sun Jul 31, 2011 1:04 pm
by lomfy
perfect! thanks!