Rank formula

D

Daniel Bonallack

I need a formula that will rank a given value against a set of other values.

For example, in column B, the numbers are 100, 90, 80, 70, 60 etc - i.e.
sorted in descending order.

I enter the number 63 in cell D1. In cell E1 I want a ranking formulat that
returns the number 5, as this would be the rank of this number if it were in
the array in column B.

Can you help? I do know that if I sort column B ascending, then I could
just use a vlookup formula, but this is not possible for a number of reasons.

Thanks!

Daniel
 
T

T. Valko

Maybe this...

Assuming your lookup array goes from 100 to 0 and the number to rank will
not be greater than 100.

=MATCH(D1,A1:A11,-1)+(COUNTIF(A1:A11,D1)=0)
 
B

Bernard Liengme

With the B numbers in B1:B5, I used =MATCH(ROUND(D1,-1),$B$1:$B$5,-1)
This gives 5 when D1=63 and 4 when D1=68
Any modification needed?
best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top