Sort Data by 'Most Relevant'

PostTIT

Board Regular
Joined
Aug 22, 2016
Messages
94
I'm using an 'advanced' VLOOKUP formula (below this paragraph) to let the user find the relevant values based on the input. The user inputs an abbreviation into cell Q10 on sheet 1 which in R10 and downwards a list is then shown giving relevant data from the table that is looked up on sheet 2. (Table on sheet 2 has two columns, an abbreviation and a description column respectively).

Code:
{=IF($Q$10=""," No Definitions Available ",IF(ROWS($R$10:R10)>$T$5," No Definitions Available ",INDEX('Acronym Index'!$G:$G,SMALL(IF(ISNUMBER(SEARCH($Q$10,'Acronym Index'!$F$2:$F$10082)),ROW('Acronym Index'!$F$2:$F$10082)),ROWS($R$10:R10)))))}

It currently shows data results in R10-downwards alphabetically (which I totally understand why, it's meant to), however I would very much like it to sort in order of most relevant. So if there is an exact match to the input then that is shown at the top of the list, and then the list can proceed alphabetically after that. And maybe if an answer has already been given (in the exact match) then it doesn't need to be duplicated in the alphabetical section.

Currently the formula above is just a formula however I can imagine that a macro would be the way forward. Any help would be great!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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