Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Multiple Rank function

I need a formula that will rank on two columns. So with the below example I
want to rank by Column 1 first, then by 2. So the answer would be as follows
in the below table. If there is a way to make it ascending and descending
rank, that would be helpful to know as well.

Column 1 Column 2 Formula answer
a 1 1
b 2 1
a 3 2
b 4 2

Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Multiple Rank function

For your example table, with data in A2:B5, in Cell C2 enter:

=1+SUMPRODUCT(($A$2:$A$5=A2)*($B$2:$B$5<B2))

and copy down.

This will give ties the same rank, with the next rank number skipped.

HTH,
Bernie
MS Excel MVP


" wrote in message
...
I need a formula that will rank on two columns. So with the below example I
want to rank by Column 1 first, then by 2. So the answer would be as follows
in the below table. If there is a way to make it ascending and descending
rank, that would be helpful to know as well.

Column 1 Column 2 Formula answer
a 1 1
b 2 1
a 3 2
b 4 2

Thanks in advance



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
Rank function Marc Shaw Excel Worksheet Functions 5 September 20th 07 10:30 PM
Rank function yshridhar Excel Worksheet Functions 9 August 27th 07 09:10 AM
Rank Function azlan Setting up and Configuration of Excel 1 July 10th 07 09:14 AM
rank/small with multiple ranges dave Excel Discussion (Misc queries) 2 March 23rd 05 04:48 PM
How to use RANK to break multiple ties. Brian Excel Worksheet Functions 1 February 3rd 05 05:27 PM


All times are GMT +1. The time now is 03:18 AM.

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

About Us

"It's about Microsoft Excel"