Rank Function: Refer to more than one range

G

Gary T

Hi

I would like to enter a RANK functino that refers to more than one range
when performing the rank calculation - is this possible? e.g.

I have numbers in A1:A10 and in C5:C15.

Can I do a rank that ranks a value in A5, say, in terms of its order within
ranges A1:A10 and C5:C15 combined?

e.g. something like =rank(A5,{A1:A10,C5:C15})

^note the above formula doesn't work but I hope illustrates the problem I'm
trying to solve.

Regards
 
P

Pete_UK

You could set up a contiguous range elsewhere in your sheet, eg
F1:F21, and in F1 you can have:

=A1

and copy this down to F10, and in F11 have:

=C5

and copy this down to F21.

Then your rank function can refer to the range F1:F21.

Hope this helps.

Pete
 
G

Gary T

Thanks Pete

I would prefer not to do that, as the range the rank is referring to is
large and is therefore increasing the size of the spreadsheet enormously.

Is there a way of incorporating the 2 ranges into the Rank function itself
without duplicating the data?

Regards

Gary
 
P

Pete_UK

I don't know - I've always done it (on the rare occasions when I've
needed to) in the way I suggested.

But, someone else might know a way ...

Pete
 
T

T. Valko

Try this:

=RANK(A5,(A1:A10,C5:C15))

--
Biff
Microsoft Excel MVP


I don't know - I've always done it (on the rare occasions when I've
needed to) in the way I suggested.

But, someone else might know a way ...

Pete
 

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