Ranking with Index Match Functions

mellownando

New Member
Joined
Jun 8, 2017
Messages
2
'm looking for some guidance on creating this lookup in excel.

i have a table similar to below:

ABCDEFGH
1STATESalesPersonCountPercentageRANKMATX
2MAAA6899.4%1CCDD
3MABB39397.5%2AACC
4MACC566100.0%3BBEE
5TXBB3190.0%4-BB
6TXCC78522.3%5--
7TXDD2888.7%
8TXEE6640.0%

<tbody>
</tbody>

I am looking to have the output in cells G2:H6 return the salesperson based on the state and percentage, and if the percentage points are the same, then use the count as rank, giving the output above. I've read through some processes on using rank index match, but i couldn't figure out how to rank using secondary source when the first rank is tied.

Help!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
My apologies, but the TX column should actually rank as below:

1.DD
2.CC
3.BB
4.EE
5.-

If the percentage is tied, i would like to have the salesperson with the lowest count ranked higher than the person with the highest count.
 
Upvote 0
Welcome to Mr Excel forum

Maybe something like this


A
B
C
D
E
F
G
H
I
1
STATE​
SalesPerson​
Count​
Percentage​
Helper​
RANK​
MA​
TX​
2
MA​
AA​
68​
99,4%​
2​
1​
CC​
DD​
3
MA​
BB​
393​
97,5%​
3​
2​
AA​
CC​
4
MA​
CC​
566​
100,0%​
1​
3​
BB​
BB​
5
TX​
BB​
319​
0,0%​
3​
4​
-​
EE​
6
TX​
CC​
785​
22,3%​
2​
5​
-​
-​
7
TX​
DD​
28​
88,7%​
1​
8
TX​
EE​
664​
0,0%​
4​
9

Helper column (gray area)
Formula in E2 copied down
=COUNTIFS(A$2:A$8,A2,D$2:D$8,">"&D2)+COUNTIFS(A$2:A$8,A2,D$2:D$8,D2,C$2:C$8,"<"&C2)+1

Formula in H2 copied across and down
=IFERROR(INDEX($B$2:$B$8,MATCH($G2,INDEX(($A$2:$A$8=H$1)*$E$2:$E$8,),0)),"-")

Hope this helps

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,840
Messages
6,121,895
Members
449,058
Latest member
Guy Boot

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