RANK ABSOLUTE NUMBER AND WITHOUT GAP
M&M <Missie.lucky.com wrote...
Yes, I understand I can do it with the formula Mike suggested but I am trying
to find a solution without a helper column.
....
"M&M" wrote:
....
VALUE *RANK RESULT
-15 * 6
14 * *5
13 * *4
-12 * 3
-10 * 2
9 * * 1
-9 * *1
....
If the VALUE column is sorted in descending absolute value, then if
the result table had -15 in cell A2, try
B2 [array formula]:
=SUM(1/MMULT(--(ABS(A2:A8)=TRANSPOSE(ABS(A2:A8))),ROW(A2:A8)^0))
B3:
=D2-(ABS(A3)<ABS(A2))
Fill B3 down as far as needed.
If the VALUE column were unsorted, it gets trickier. Try
B2 [array formula]:
=SUM((ABS(A$2:A$8)<=ABS(A2))/(MMULT(--(ABS(A$2:A$8)=TRANSPOSE(ABS(A$2:A
$8))),
--(ABS(A$2:A$8)<=ABS(A2)))+(ABS(A$2:A$8)ABS(A2))))
Fill B2 down as far as needed.
|