Ranking a number outside of range's values?

  • Thread starter Thread starter pompair
  • Start date Start date
P

pompair

Hi

I have in A1:A5 numbers:

7
4
9
1
2

If I write =RANK(7;A1:A5;1) the result is rightly 4. This is the rank
for the number 7 in this range.

But what I'd like to do is to find the rank for some number outside of
the range, like 3 for example, how would I do it?

I mean, trying something like: =RANK(3;A1:A5;1) results in #N/A

Any ideas?
 
Try this:

=SUMPRODUCT(--(3>A1:A5))+1

Or:

B1 = 3

=SUMPRODUCT(--(B1>A1:A5))+1

Biff
 

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

Back
Top