Sorting Rank Results

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
593
Office Version
  1. 365
Platform
  1. Windows
I have a table that I determine the rank # with this formula:=SUMPRODUCT((ABS(AF7-0)>ABS(AF$5:AF$19-0))+0)+1

To get this:

<colgroup><col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:1938;width:40pt" width="53"> <col style="mso-width-source:userset;mso-width-alt:512;width:11pt" width="14"> </colgroup><tbody>
[TD="class: xl65, width: 64"]Rank #[/TD]
[TD="width: 53"][/TD]
[TD="width: 14"][/TD]

[TD="class: xl65"]3[/TD]
[TD="class: xl65"]JKL[/TD]
[TD="class: xl65"]7[/TD]

[TD="class: xl65"]12[/TD]
[TD="class: xl65"]GGHHI[/TD]
[TD="class: xl65"]5[/TD]

[TD="class: xl65"]6[/TD]
[TD="class: xl65"]XYZ[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]6[/TD]
[TD="class: xl65"]AABCC[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]6[/TD]
[TD="class: xl65"]DDEEFF[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]3[/TD]
[TD="class: xl65"]GHI[/TD]
[TD="class: xl65"]7[/TD]

[TD="class: xl65"]3[/TD]
[TD="class: xl65"]MNO[/TD]
[TD="class: xl65"]7[/TD]

[TD="class: xl65"]1[/TD]
[TD="class: xl65"]ABC[/TD]
[TD="class: xl65"]8[/TD]

[TD="class: xl65"]1[/TD]
[TD="class: xl65"]DEF[/TD]
[TD="class: xl65"]8[/TD]

[TD="class: xl65"]6[/TD]
[TD="class: xl65"]STU[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]6
[/TD]
[TD="class: xl65"]VW[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]6
[/TD]
[TD="class: xl65"]PQR[/TD]
[TD="class: xl65"]6
[/TD]

</tbody>

What I looking to do is on another spreadsheet in the workbook put these in order by rank.


<colgroup><col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:1938;width:40pt" width="53"> <col style="mso-width-source:userset;mso-width-alt:512;width:11pt" width="14"> </colgroup><tbody>
[TD="class: xl65, width: 64"]Rank #[/TD]
[TD="width: 53"][/TD]
[TD="width: 14"][/TD]

[TD="class: xl65"]1[/TD]
[TD="class: xl65"]ABC[/TD]
[TD="class: xl65"]8[/TD]

[TD="class: xl65"]1[/TD]
[TD="class: xl65"]DEF[/TD]
[TD="class: xl65"]8[/TD]

[TD="class: xl65"]3[/TD]
[TD="class: xl65"]JKL[/TD]
[TD="class: xl65"]7[/TD]

[TD="class: xl65"]3[/TD]
[TD="class: xl65"]GHI[/TD]
[TD="class: xl65"]7[/TD]

[TD="class: xl65"]3[/TD]
[TD="class: xl65"]MNO[/TD]
[TD="class: xl65"]7[/TD]

[TD="class: xl65"]6[/TD]
[TD="class: xl65"]XYZ[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]6[/TD]
[TD="class: xl65"]AABCC[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]6[/TD]
[TD="class: xl65"]DDEEFF[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]6[/TD]
[TD="class: xl65"]STU[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]6[/TD]
[TD="class: xl65"]VW[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]6[/TD]
[TD="class: xl65"]PQR[/TD]
[TD="class: xl65"]6[/TD]

[TD="class: xl65"]12[/TD]
[TD="class: xl65"]GGHHI[/TD]
[TD="class: xl65"]5[/TD]

</tbody>

Is there a formula that will take the 1st table and put it into rank order like the 2nd table on another spreadsheet?

Thank for you help
James
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
How about


Excel 2013/2016
ABCDEFGH
1
23JKL71ABC8
312GGHHI51DEF8
46XYZ63JKL7
56AABCC63GHI7
66DDEEFF63MNO7
73GHI76XYZ6
83MNO76AABCC6
91ABC86DDEEFF6
101DEF86STU6
116STU66VW6
126VW66PQR6
136PQR612GGHHI5
ADP
Cell Formulas
RangeFormula
F2=SMALL($A$2:$A$13,ROWS($A$1:A1))
G2=IFERROR(INDEX(B$2:B$13,AGGREGATE(15,6,(ROW(B$2:B$13)-ROW(B$2)+1)/($A$2:$A$13=$F2),COUNTIF($F$2:$F2,$F2))),"")
H2=IFERROR(INDEX(C$2:C$13,AGGREGATE(15,6,(ROW(C$2:C$13)-ROW(C$2)+1)/($A$2:$A$13=$F2),COUNTIF($F$2:$F2,$F2))),"")
 
Upvote 0
WOW! Aggregate?! I will give it a try. Thanks.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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