Vlookup with duplicate values.

Addictions

Board Regular
Joined
May 27, 2018
Messages
60
Office Version
  1. 365
Hi,
Can somnoe help or navigate me on how to solve this problem
I would want to originaly have a vlookup to return values from Table 2 in to Table 1, A, B, C columns. The problem is with duplicates vlookup will always return the first found value.
Any ideas to solve this?

Table 1
Michael(90)(80)(60)

Table 2
Michael90
Michael80
Ana70
Michael60




Table 1
A B C D
1 Michael (90) (80) (60)


Table 2
A B
1 Michael 90
2 Michael 80
3 Ana 70
4 Michael 60
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
It should be:
I would want to originaly have a vlookup to return values from Table 2 in to Table 1, B, C, D columns.
 
Upvote 0
What version of Excel are you using? Please update you account details to show this.
 
Upvote 0
Thanks for that.
If you have the filter function how about

+Fluff New.xlsm
ABCDEFGHI
1
2Michael90Michael908060
3Michael80Ana70
4Ana70
5Michael60
6
7
Admin
Cell Formulas
RangeFormula
F2:H2,F3F2=TRANSPOSE(FILTER($B$2:$B$5,$A$2:$A$5=E2))
Dynamic array formulas.
 
Upvote 0
Ok, you'll probably get it next month.
How about

+Fluff New.xlsm
ABCDEFGHI
1
2Michael90Michael908060 
3Michael80Ana70   
4Ana70
5Michael60
6
Admin
Cell Formulas
RangeFormula
F2:I3F2=IFERROR(INDEX($B$2:$B$5,AGGREGATE(15,6,(ROW($B$2:$B$5)-ROW($B$2)+1)/($A$2:$A$5=$E2),COLUMNS($F2:F2))),"")
 
Upvote 0
Ok, you'll probably get it next month.
How about

+Fluff New.xlsm
ABCDEFGHI
1
2Michael90Michael908060 
3Michael80Ana70   
4Ana70
5Michael60
6
Admin
Cell Formulas
RangeFormula
F2:I3F2=IFERROR(INDEX($B$2:$B$5,AGGREGATE(15,6,(ROW($B$2:$B$5)-ROW($B$2)+1)/($A$2:$A$5=$E2),COLUMNS($F2:F2))),"")

How would you specify whole column instead fo specifing range?. Instead of $B$2:$B$5 it would be a B column. The first row has headers.
 
Upvote 0

Forum statistics

Threads
1,215,853
Messages
6,127,334
Members
449,376
Latest member
karenmccabe

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