Ranking with multi criteria

jimblimm

Board Regular
Joined
May 11, 2012
Messages
219
My Setup

nameCOUNTATTENDANCE
jake11536
sue9709
betty10357
jack91438
trevor111240

<colgroup><col><col><col><col span="2"></colgroup><tbody>
</tbody>

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
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
My Setup

name
COUNT
ATTENDANCE
jake
11
536
sue
9
709
betty
10
357
jack
9
1438
trevor
11
1240

<TBODY>
</TBODY>

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

Forum statistics

Threads
1,216,103
Messages
6,128,854
Members
449,472
Latest member
ebc9

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