Matching Values From A Data Set?

atelian

New Member
Joined
Sep 29, 2014
Messages
2
Hi All,

I have a data set where I need to find a specific number within an array and then find the corresponding name. I've inserted the table below. I'm looking to figure out who's weight is 5.8 and have that name get pulled from the "All Weights" table to the "Top Weights" table. The "All Weights" table will be updating all the time so it needs to be able to react to those changes as it goes. Also, if there is a tie for weight, I need to find a way to pull both names into different cells. I've tried a series of iferror vlookups, match formulas, I just can't figure it out. I don't know if I've explained this clearly but hopefully you can help.

Thanks!

Adam

Top Weights
NameWeight
#1TBD
5.8
#2TBD
5.2
#3 TBD
5.2
All Weights
NameWeight 1Weight 2Weight 3Weight 4Weight 5
Adam12345.2
Mike0.51.52.53.54.5
John1.22.23.24.25.2
Larry0.81.82.83.84.8
Chriss1.82.83.84.85.8

<tbody>
</tbody>
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
With your All weights table in Sheet1!A1:F6, ie Adam is in A2

in A8 put 5.8 then

=INDEX(B1:F1,MAX(IF(B2:F6=A8,COLUMN(B1:F1)-COLUMN(B1)+1)))
returns the column where 5.8 is located, ie Weight 5
=INDEX(A2:A6,MAX(IF(B2:F6=A8,ROW(A2:A6)-ROW(A2)+1)))
returns the row where 5.8 is located, ie Chriss

NOTE: Array formulas, use Ctrl-Shift-Enter
Also that there must be no duplicates in the table for this to work

If you Google Reverse 2-way lookup you may find a solution that allows duplicates
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,887
Messages
6,122,095
Members
449,064
Latest member
Danger_SF

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