ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Rank(A1,C1:C5) - Rank using 2 ranges (https://www.excelbanter.com/excel-worksheet-functions/93010-rank-a1-c1-c5-rank-using-2-ranges.html)

goofy11

Rank(A1,C1:C5) - Rank using 2 ranges
 
I've found that when using the Rank function, the value you want to rank has
to be in the range of values you're comparing it to. That is why the
following formula doesn't work:
=Rank(A1,C1:C20)

What I'm trying to do is see how where something would rank if it was part
of another data set. Is there a way to accomplish this using some kind of
array formula?

Jeff





JMB

Rank(A1,C1:C5) - Rank using 2 ranges
 
this seemed to work for me

=RANK(A1,(C1:C20,A1))

"goofy11" wrote:

I've found that when using the Rank function, the value you want to rank has
to be in the range of values you're comparing it to. That is why the
following formula doesn't work:
=Rank(A1,C1:C20)

What I'm trying to do is see how where something would rank if it was part
of another data set. Is there a way to accomplish this using some kind of
array formula?

Jeff





goofy11

Rank(A1,C1:C5) - Rank using 2 ranges
 
Thanks! That worked like a charm.

"JMB" wrote:

this seemed to work for me

=RANK(A1,(C1:C20,A1))

"goofy11" wrote:

I've found that when using the Rank function, the value you want to rank has
to be in the range of values you're comparing it to. That is why the
following formula doesn't work:
=Rank(A1,C1:C20)

What I'm trying to do is see how where something would rank if it was part
of another data set. Is there a way to accomplish this using some kind of
array formula?

Jeff





JMB

Rank(A1,C1:C5) - Rank using 2 ranges
 
you're welcome. thanks for the feedback.

"goofy11" wrote:

Thanks! That worked like a charm.

"JMB" wrote:

this seemed to work for me

=RANK(A1,(C1:C20,A1))

"goofy11" wrote:

I've found that when using the Rank function, the value you want to rank has
to be in the range of values you're comparing it to. That is why the
following formula doesn't work:
=Rank(A1,C1:C20)

What I'm trying to do is see how where something would rank if it was part
of another data set. Is there a way to accomplish this using some kind of
array formula?

Jeff






All times are GMT +1. The time now is 04:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com