1

How to make a ranking formula but starting from negative numbers and preventing double rankings

SCORE RANK
-50 1
-25 2
-20 3
-10 5
-20 4
-10 6
-1 7
0 8
3 10
1 9

This is the link.

I tried the formula but it didn't work as I expected =RANK(A2,$A$2:$A)

1
  • So sorry, i delete the tag
    – Davidson
    Commented Sep 29 at 11:59

1 Answer 1

2

You may try:

=map(A2:A,lambda(Σ,if(Σ="",,rank(Σ,A:A,1)+let(Λ,countif(A2:Σ,Σ),if(Λ>1,Λ-1,)))))

enter image description here

4
  • Thanks - I'll delete my comment.
    – nkalvi
    Commented Sep 29 at 11:17
  • Can you explain what for sigma and lambda symbol in that formula?
    – Davidson
    Commented Sep 29 at 12:16
  • 1
    I used those symbols as per my convenience. You can totally change them as per how you want to name the identifier. Look into LAMBDA formula documentation for a bit more clarity Commented Sep 29 at 12:22
  • Thank you for your explanation 🙏
    – Davidson
    Commented Sep 29 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.