Help with Ranking?

MichaelRSnow

Active Member
Joined
Aug 3, 2010
Messages
409
Is it possible to rank based on 2 criteria, TEXT and VALUE. i.e. the table list as illustrated below, rank based on columns B and C. So rank any with a value of X only against X's, rank any with a value of Y only against Y's and so?</SPAN>
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D- RANK (COLUMNS B&C)[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]X[/TD]
[TD]0.5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Y[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Z[/TD]
[TD]1.5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]X[/TD]
[TD]0.25[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Y[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Z[/TD]
[TD]1.5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]X[/TD]
[TD]0.85[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Y[/TD]
[TD]2.25[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Z[/TD]
[TD]1.25[/TD]
[TD]1[/TD]
[/TR]
</TBODY>[/TABLE]
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi, try:

Excel Workbook
ABCD
1ABCD- RANK (COLUMNS B&C)
2AX0.52
3AY11
4AZ1.52
5BX0.251
6BY22
7BZ1.52
8CX0.853
9CY2.253
10CZ1.251
Sheet1
 
Upvote 0
Maybe the array formula:

Code:
=RANK.EQ($C$2,($B$2:$B$10=$B$2)*$C$2:$C$10)
 
Upvote 0
Hi, try:

Sheet1

*ABCD
ABCD- RANK (COLUMNS B&C)
AX
AY
AZ
BX
BY
BZ
CX
CY
CZ

<COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"></COLGROUP><TBODY>
[TD="bgcolor: #cacaca, align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]

[TD="align: right"]0.5[/TD]
[TD="align: right"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]

[TD="align: right"]1.5[/TD]
[TD="align: right"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]

[TD="align: right"]0.25[/TD]
[TD="align: right"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]

[TD="align: right"]1.5[/TD]
[TD="align: right"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]

[TD="align: right"]0.85[/TD]
[TD="align: right"]3[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]

[TD="align: right"]2.25[/TD]
[TD="align: right"]3[/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]

[TD="align: right"]1.25[/TD]
[TD="align: right"]1[/TD]

</TBODY>

Spreadsheet Formulas
CellFormula
D2=COUNTIFS($B$2:$B$10,B2,$C$2:$C$10,"<"&C2)+1

<TBODY>
</TBODY>

<TBODY>
</TBODY>


Excel tables to the web >> Excel Jeanie HTML 4


Thanks, works perfectly
 
Upvote 0

Forum statistics

Threads
1,222,143
Messages
6,164,174
Members
451,880
Latest member
2da

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