#1   Report Post  
gmunro
 
Posts: n/a
Default Ranked list

Hello,

Based on the following example:

Item Quantity
A 2
S 7
D 3
F 6

I am looking for a ranking formula that will pull the data from the
first column based on the ranking of the second column
so that the end result will look like this
1 S
2 F
3 D
As S has the largest quantity, F 2nd largest etc

The list I will pull this from is variable in length but in the
hundreds.

Any help would be appreciated.

Glen

  #2   Report Post  
Ian
 
Posts: n/a
Default

Can't you use Data|Sort|Descending on the Quantity?

--
Ian
--
"gmunro" wrote in message
oups.com...
Hello,

Based on the following example:

Item Quantity
A 2
S 7
D 3
F 6

I am looking for a ranking formula that will pull the data from the
first column based on the ranking of the second column
so that the end result will look like this
1 S
2 F
3 D
As S has the largest quantity, F 2nd largest etc

The list I will pull this from is variable in length but in the
hundreds.

Any help would be appreciated.

Glen



  #3   Report Post  
gmunro
 
Posts: n/a
Default

I was hoping to pull a separate list, rather than running a data sort
(as easy as that is) and am relatively new to the Rank function. I
know I could do this with inserting a column and adding a vlookup, but
that will complicate other macros I have going on with this document.

With that, I am wondering if there is a formula that will do it.

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Enter this in C1, and copy down

=INDEX($A$1:$A$10,MATCH(ROW(),RANK($B$1:$B$10,$B$1 :$B$10),0))

it is an array formula, so commit with Carol-Shift-Enter. Change the 10 to a
realistic number for you

--
HTH

Bob Phillips

"gmunro" wrote in message
oups.com...
I was hoping to pull a separate list, rather than running a data sort
(as easy as that is) and am relatively new to the Rank function. I
know I could do this with inserting a column and adding a vlookup, but
that will complicate other macros I have going on with this document.

With that, I am wondering if there is a formula that will do it.



  #5   Report Post  
Ian
 
Posts: n/a
Default

"Bob Phillips" wrote in message
...
it is an array formula, so commit with Carol-Shift-Enter. Change the 10 to
a


Hi Bob

Who's Carol? :-)

--
Ian
--




  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

She's the damned spell-checker <vbg

--
HTH

Bob Phillips

"Ian" wrote in message
...
"Bob Phillips" wrote in message
...
it is an array formula, so commit with Carol-Shift-Enter. Change the 10

to
a


Hi Bob

Who's Carol? :-)

--
Ian
--




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find names on list 1 in list 2. list 1 4000 names list 2 400 name Ed Excel Worksheet Functions 1 September 4th 05 12:48 AM
Update master list with other lists Chab Excel Worksheet Functions 0 August 4th 05 03:46 PM
LOOP - Adddress List -to email Paul. Excel Discussion (Misc queries) 0 April 13th 05 09:54 AM
Refresh a Validation List? jhollin1138 Excel Discussion (Misc queries) 3 February 17th 05 05:48 PM
Extracting Values on one list and not another B Schwarz Excel Discussion (Misc queries) 4 January 7th 05 01:48 PM


All times are GMT +1. The time now is 07:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"