INDEX MATCH duplicate value issues

newbie37

New Member
Joined
Jan 27, 2019
Messages
2
Hi everyone

I'm having a few issues with duplicate values. In column E below the Sydney value keeps getting repeated. Any tips or better formulas would be much appreciated!

<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}td {padding:0px; mso-ignore:padding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl64 {text-align:left;}.xl65 {mso-number-format:"0\.0%"; text-align:right;}.xl66 {mso-number-format:"0\.0%";}.xl67 {border-top:.5pt solid #BFBFBF ; border-right:none; border-bottom:.5pt solid #BFBFBF ; border-left:none;}.xl68 {mso-number-format:"0\.0%"; border-top:.5pt solid #BFBFBF ; border-right:none; border-bottom:.5pt solid #BFBFBF ; border-left:none;}.xl69 {color:#53ACD6 ; font-weight:700; border-top:none; border-right:none; border-bottom:1.0pt solid #53ACD6 ; border-left:none; white-space:normal;}.xl70 {color:#53ACD6 ; font-weight:700; text-align:right; border-top:none; border-right:none; border-bottom:1.0pt solid #53ACD6 ; border-left:none; white-space:normal;}.xl71 {color:#53ACD6 ; font-weight:700; text-align:left; border-top:none; border-right:none; border-bottom:1.0pt solid #53ACD6 ; border-left:none; white-space:normal;}.xl72 {mso-number-format:0%;}--></style>
Row / columnABCDEF
1City%RankCity%
2Sydney5.0%1Kathmandu4.0%
3Riga5.0%2Sydney5.0%
4Zurich5.0%3Sydney5.0%
5Kathmandu4.0%4Sydney5.0%
6Paris5.0%5Sydney5.0%
7Samak7.0%6Samak7.0%

<tbody>
</tbody>


Formula for E2:
=+INDEX($A$2:$A$7,MATCH(SMALL($B$2:$B$7,D2),$B$2:$B$7,0))

Formula for F2:
=+INDEX($B$2:$B$7,MATCH(SMALL($B$2:$B$7,D2),$B$2:$B$7,0))

Thanks everyone!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try this formula for F2:

=SMALL($B$2:$B$7,ROWS($F$2:F2))

Formula for E2:

=INDEX(A:A,AGGREGATE(15,6,ROW($B$2:$B$7)/($B$2:$B$7=F2),COUNTIF($F$2:F2,F2)))
 
Upvote 0

Forum statistics

Threads
1,215,194
Messages
6,123,569
Members
449,108
Latest member
rache47

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