Ranking with multi criteria

jimblimm

Board Regular
Joined
May 11, 2012
Messages
219
My Setup

[TABLE="width: 311"]
<colgroup><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD]name[/TD]
[TD]COUNT[/TD]
[TD]ATTENDANCE [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]jake[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]536[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]sue[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]709[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]betty[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]357[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]jack[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]1438[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]trevor[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]1240[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

i am trying to get the ranking based on
first the count, then the attendance,

the highest of the count should be first,

but the lowest of the attendance should be second

in the rank should be

1.jake
2.trevor
3. betty
4.sue
5.jack
 
My Setup

[TABLE="width: 311"]
<TBODY>[TR]
[TD]name
[/TD]
[TD]COUNT
[/TD]
[TD]ATTENDANCE
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]jake
[/TD]
[TD="align: right"]11
[/TD]
[TD="align: right"]536
[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]sue
[/TD]
[TD="align: right"]9
[/TD]
[TD="align: right"]709
[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]betty
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]357
[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]jack
[/TD]
[TD="align: right"]9
[/TD]
[TD="align: right"]1438
[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]trevor
[/TD]
[TD="align: right"]11
[/TD]
[TD="align: right"]1240
[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]

i am trying to get the ranking based on
first the count, then the attendance,

the highest of the count should be first,

but the lowest of the attendance should be second

in the rank should be

1.jake
2.trevor
3. betty
4.sue
5.jack
Try this...

Book1
ABCD
1NameCountAttendRank
2jake115361
3sue97094
4betty103573
5jack914385
6trevor1112402
Sheet1

This formula entered in D2 and copied down:

=RANK(B2,B$2:B$6)+SUMPRODUCT(--(B2=B$2:B$6),--(C2>C$2:C$6))
 
Upvote 0
Try:

Code:
=RANK(B2,B$2:B$6,0)+SUMPRODUCT(--(B$2:B$6=B2),--(C$2:C$6< C2))
<c2))[ code]
<c2))
<c2)[ code]

Matty</c2)[></c2))
</c2))[>
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top