help with lookup

Noxqss38242

Board Regular
Joined
Sep 15, 2017
Messages
223
Office Version
  1. 2016
Have values in Column U
Have names in Column K

example:
K U
Banks 20
Beard 24
Collie 26
Foster 26
Martin 34
Parish 34
Pinson 37

These ranks will change depending on what options are chosen on a slicer. Column U is a formula to pull small/large based on values added from columns N, O, P.

Long story short, how do I extract names based of U if there are duplicate values? How do I get it to pull Collie and Foster?
Currently it is pulling Collie and Collie as it stops looking as soon as a match is found.

Hope that makes sense...
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Maybe:

Book1 (version 1).xlsb
KUVWX
1
2Banks20amtNames
3Beard2426Collie
4Collie26Foster
5Foster26 
6Martin34 
7Parish34
8Pinson37
9Pinson37
Sheet4
Cell Formulas
RangeFormula
X3:X6X3=IFERROR(INDEX(K:K,AGGREGATE(15,6,ROW($K$2:$K$9)/($U$2:$U$9=$W$3),ROWS($X$3:$X3))),"")
 
Upvote 0
Cell Formulas
RangeFormula
N65:N100N65=IFERROR(VLOOKUP(K65,$B$65:$C$100,2,0),"")
O65:O100O65=IFERROR(VLOOKUP(K65,$B$105:$C$140,2,0),"")
P65:P100P65=IFERROR(VLOOKUP(K65,$B$145:$C$180,2,0),"")
Q65:Q100Q65=SUM(N65:P65)
T65T65=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+1)
T66T66=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+2)
T67T67=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+3)
T68T68=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+4)
T69T69=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+5)
T70T70=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+6)
T71T71=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+7)



Names are in column K65:K100 (left out for privacy)

Column T are the "numbers" I'm wanting to match against the names
Same issue, a lookup is only pulling first instance and won't move past if name is already used, so it will put the name twice.

Hope this paints a better picture. Thank you for the help!
 
Upvote 0
Previously my numbers were in column U but while trying the formula I thought leaving a gap between numbers may have caused the error so I moved the "sum" column left causing my "U" column to now be in column "T".

Wasn't trying to give you false info before, but I have tried your formula and it wasn't working so I was playing with variations to include removing the gap.
Now it is just the way it is posted...I still can't figure it out though. Playing Thomas Edison over here but still no luck...haha.
 
Upvote 0
Now I'm confused. Could you post a sample sheet, with the names, data, matching numbers, and location where you want the result? For the names, just something like a, b, c, etc. would be fine.
 
Upvote 0
Productivity Report.testing.xlsx
LMNOPQRSTU
64TTSRTDTSUMRankName
65A1028266420????
66B224285424????
67C2113124626????
68D98112826????
69E61132028????
70F3018196734????
71G   034????
72H   0
73I322126
74J19233274
75K26121755
76L831544
77M32272281
78N18101038
79O20211657
80P1462747
81Q729440
82R125724
83S25303388
84T420226
85U1117634
86V27162164
87W23241562
88X3332460
89Y13191446
90Z28251871
91AA31332993
92BB1771337
93CC2143046
94DD5152040
95EE123134
96FF1532855
97GG169934
98HH   0
99II24262575
100JJ2912353
Report Card
Cell Formulas
RangeFormula
N65:N100N65=IFERROR(VLOOKUP(K65,$B$65:$C$100,2,0),"")
O65:O100O65=IFERROR(VLOOKUP(K65,$B$105:$C$140,2,0),"")
P65:P100P65=IFERROR(VLOOKUP(K65,$B$145:$C$180,2,0),"")
Q65:Q100Q65=SUM(N65:P65)
T65T65=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+1)
T66T66=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+2)
T67T67=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+3)
T68T68=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+4)
T69T69=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+5)
T70T70=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+6)
T71T71=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+7)


So in this instance L65:L100 has the names.
Column "U" with the ???? is where I want the answers/formula.

Rank 20 should = E
Rank 24 =R
Rank 26 = I
Rank 26 = T
Rank 28 = D
Rank 34 = U
Rank 34 = EE

the way I have the "rank" pulling numbers is to ignore the zeros so I then have the lowest scores overall.
Problem I'm having is that my lookup is pulling the first name only so for "rank 26" it is pulling I twice and for "rank 34" it is pulling "U" twice.
 
Upvote 0
With the way your sheet is set up, try this:

Book1 (version 1).xlsb
TU
64RankName
6520E
6624R
6726I
6826T
6928D
7034U
7134EE
72
Sheet4
Cell Formulas
RangeFormula
T65T65=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+1)
U65:U71U65=INDEX(L:L,AGGREGATE(15,6,ROW($Q$65:$Q$100)/($Q$65:$Q$100=T65),COUNTIF($T$65:$T65,T65)))
T66T66=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+2)
T67T67=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+3)
T68T68=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+4)
T69T69=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+5)
T70T70=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+6)
T71T71=SMALL($Q$65:$Q$100,COUNTIF($Q$65:$Q$100,0)+7)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

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