Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
CohenRB
 
Posts: n/a
Default Can I Rank on a second criteria if the first is equal?

i am trying to rank sets of data on units ordered. Where the returned values
are the same i then need to rank on units delivered.

I.E. Over the 88 regions in question the ordered units for the quarter in
some cases are the same. I don't want to end up with some regions being
ranked the same so i need a kind of RANKIF option, so IF the RANK is the same
as any other then a second RANK based on a second criteria (in this case
units delivered) needs to be considered.

Maybe an easier example is to consider football, where teams are ranked by
the points they have accumulated. If the points are the same they are then
ranked on the goal difference.
  #2   Report Post  
Posted to microsoft.public.excel.misc
robert111
 
Posts: n/a
Default Can I Rank on a second criteria if the first is equal?


you can order data by up to 3 criteria using data, sort.


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=554936

  #3   Report Post  
Posted to microsoft.public.excel.misc
Vincnet.
 
Posts: n/a
Default Can I Rank on a second criteria if the first is equal?

Hi!
I'm not sure it's directly feasible...
However - and fortunetaly - there's a plan B. If you're first criteria is in
column B and the 2nd criteria in column C, add a column before using the TANK
function with the following formula: B2+C2/1000000 (add some 0 if the column
C has numbers larger than in column B). You now can use the RANK function on
the new column...

Does it help?


--
KR

V.


"CohenRB" wrote:

i am trying to rank sets of data on units ordered. Where the returned values
are the same i then need to rank on units delivered.

I.E. Over the 88 regions in question the ordered units for the quarter in
some cases are the same. I don't want to end up with some regions being
ranked the same so i need a kind of RANKIF option, so IF the RANK is the same
as any other then a second RANK based on a second criteria (in this case
units delivered) needs to be considered.

Maybe an easier example is to consider football, where teams are ranked by
the points they have accumulated. If the points are the same they are then
ranked on the goal difference.

  #4   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default Can I Rank on a second criteria if the first is equal?

This of RANK as counting the number of entries that are the entry you're
looking at. Breaking a tie means counting the number of entries that are
equal to the current entry, but have some other field whose value is greater
than the current entry's. That's roughly the logic behind this formula:
=COUNTIF($B$1:$B$13,""&B1)+1+SUMPRODUCT(--($B$1:$B$13=B1),--($C$1:$C$13C1)) (that's for row 1; autofill into subsequent rows)
I've assumed that the data is in rows 1:13, with the primary criterion in
column B and secondary in column C.

"CohenRB" wrote:

i am trying to rank sets of data on units ordered. Where the returned values
are the same i then need to rank on units delivered.

I.E. Over the 88 regions in question the ordered units for the quarter in
some cases are the same. I don't want to end up with some regions being
ranked the same so i need a kind of RANKIF option, so IF the RANK is the same
as any other then a second RANK based on a second criteria (in this case
units delivered) needs to be considered.

Maybe an easier example is to consider football, where teams are ranked by
the points they have accumulated. If the points are the same they are then
ranked on the goal difference.

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
how to sumif in excel with a not equal criteria Ed New Users to Excel 2 April 30th 23 07:45 PM
To Rank on two Criteria tckok56 Excel Worksheet Functions 7 January 8th 06 09:23 PM
Need Advanced Filter with NOT equal string and OR criteria MK Excel Discussion (Misc queries) 5 December 7th 05 02:28 PM
Rank based on criteria Steve DeBruin Excel Worksheet Functions 3 August 31st 05 09:36 AM
How do I setup criteria in DSUM to sum values NOT equal (<>) Mark Rucker Excel Worksheet Functions 1 June 22nd 05 06:56 PM


All times are GMT +1. The time now is 05:26 PM.

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"