index match with repeated values

valmir

Board Regular
Joined
Feb 10, 2021
Messages
235
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone:
I need a fix to this rank formula returning repeated values when the two last columns match.
Is it possible to add a tiebreaker, related for example to the first column?
Otherwise, the fix can be applied to the index match formula, whatever is easier or you find to be more effective. I'm adding the original table, how the ranked table currently looks like and how it is supposed to look when fixed.
Thanks

In AF2, I am using:

=RANK.EQ($J2;$J$2:$J$17)+COUNTIFS($J$2:$J$17;$J2;$I$2:$I$17;">"&$I2)

In L2 I am using:

=IFERROR(INDEX($B$2:$J$17;MATCH(A2;$AF$2:$AF$17;0);1);"")

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAF
1JVEDMSGPJVEDMSGPJVEDMSGP
21ACA10101101CAA110040+43CAA110040+435
32BAI100104-40PET110031+23PET110031+2316
43CAA110040+43PRI110010+13PRI110010+131
54CCU10101101PRO110021+135
65DES10100001ACA10101101ACA101011015
76FER10101101CCU101011015
87INT100101-10DES1010000113
98LIB100112-10FER1010110113
109MAQ100113-20SAG1010110115
1110PET110031+23SCC101000012
1211PRI110010+13SRC101011013
1312PRO110021+13WIL101011013
1413SAG10101101INT100101-10INT100101-105
1514SCC10100001LIB100112-105
1615SRC10101101MAQ100113-20MAQ100113-205
1716WIL10101101BAI100104-40BAI100104-405
Sheet1
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQRSTUAF
1JVEDMSGPJVEDMSGP
21ACA10101101CAA110040435
32BAI100104-40PET1100312316
43CAA11004043PRI110010131
54CCU10101101PRO110021135
65DES10100001ACA101011015
76FER10101101CCU101011015
87INT100101-10DES1010000113
98LIB100112-10FER1010110113
109MAQ100113-20SAG1010110115
1110PET11003123SCC101000012
1211PRI11001013SRC101011013
1312PRO11002113WIL101011013
1413SAG10101101INT100101-105
1514SCC10100001LIB100112-105
1615SRC10101101MAQ100113-205
1716WIL10101101BAI100104-405
Master
Cell Formulas
RangeFormula
L2:T17L2=SORTBY(B2:J17,AF2:AF17,1)
Dynamic array formulas.
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQRSTUAF
1JVEDMSGPJVEDMSGP
21ACA10101101CAA110040435
32BAI100104-40PET1100312316
43CAA11004043PRI110010131
54CCU10101101PRO110021135
65DES10100001ACA101011015
76FER10101101CCU101011015
87INT100101-10DES1010000113
98LIB100112-10FER1010110113
109MAQ100113-20SAG1010110115
1110PET11003123SCC101000012
1211PRI11001013SRC101011013
1312PRO11002113WIL101011013
1413SAG10101101INT100101-105
1514SCC10100001LIB100112-105
1615SRC10101101MAQ100113-205
1716WIL10101101BAI100104-405
Master
Cell Formulas
RangeFormula
L2:T17L2=SORTBY(B2:J17,AF2:AF17,1)
Dynamic array formulas.
It's amazing how you guys make this stuff look so simple! Thank you so much Sir! :biggrin:???
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,835
Messages
6,121,880
Members
449,057
Latest member
Moo4247

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