Matching top x results from a cell range and returning value from another column

paul2342

New Member
Joined
Apr 22, 2020
Messages
11
Office Version
  1. 2016
Platform
  1. Windows
Hi everyone,
Is there a way to adjust this formula slightly so that it can 'cope' if there are values that are the same in a list.

The idea is the top 5 largest values and their matching names like this below:

screen1.jpg


This is the source data example (taking the 1st and 2nd largest entries - this is the source for example, below):

screen2.jpg


and this is the lookup formula / sheet which looks it up from (I made a copy of it from the other one which is which the column letters are different).

This is the formula:

=INDEX('Top long movers (don''t touch)'!$G$4:$G$160, MATCH(LARGE('Top long movers (don''t touch)'!$J$4:$J$160, E10), 'Top long movers (don''t touch)'!$J$4:$J$160, 0))

The challenge is, if there's two entries with the same return value, I'd like the formula to show them both (I guess they are 'joint place" number "1"), so I am trying to get it to show then like this (or vice versa), as "Oil & Gas Drilling" and "Industrial Gases" are in 'joint' 1st place :) ?

1668794308513.png


Any help is greatly appreciated,

Best Regards,
Paul
 

Attachments

  • 1668794217027.png
    1668794217027.png
    5.6 KB · Views: 7

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
In column K put the following formula:
=J4-ROW()/10000
copy down.

Now you have a list where two equal numbers in column J have a slight difference in column K.
So in your
=INDEX('Top long movers (don''t touch)'!$G$4:$G$160, MATCH(LARGE('Top long movers (don''t touch)'!$J$4:$J$160, E10), 'Top long movers (don''t touch)'!$J$4:$J$160, 0))

you replace the $J with $K

Then hide column K
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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