A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Rank Function: Refer to more than one range



 
 
Thread Tools Display Modes
  #1  
Old September 23rd, 2008, 03:31 PM posted to microsoft.public.excel.worksheet.functions
Gary T
external usenet poster
 
Posts: 26
Default Rank Function: Refer to more than one range

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
  #2  
Old September 23rd, 2008, 03:40 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Rank Function: Refer to more than one range

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

On Sep 23, 3:31*pm, Gary T wrote:
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


  #3  
Old September 23rd, 2008, 03:49 PM posted to microsoft.public.excel.worksheet.functions
Gary T
external usenet poster
 
Posts: 26
Default Rank Function: Refer to more than one range

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

"Pete_UK" wrote:

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

On Sep 23, 3:31 pm, Gary T wrote:
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



  #4  
Old September 23rd, 2008, 03:57 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Rank Function: Refer to more than one range

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

On Sep 23, 3:49*pm, Gary T wrote:
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



"Pete_UK" wrote:
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


On Sep 23, 3:31 pm, Gary T wrote:
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- Hide quoted text -


- Show quoted text -


  #5  
Old September 23rd, 2008, 06:10 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Rank Function: Refer to more than one range

Try this:

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

--
Biff
Microsoft Excel MVP


"Pete_UK" wrote in message
...
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

On Sep 23, 3:49 pm, Gary T wrote:
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



"Pete_UK" wrote:
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


On Sep 23, 3:31 pm, Gary T wrote:
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- Hide quoted text -


- Show quoted text -



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.