Vlookup All Rows based on cell reference

Maximus2102

New Member
Joined
May 15, 2018
Messages
7
Hoping the experts here can help me. My workbook is set up like the below and my question is at the bottom.

Data Sheet - List of Owner Names, ID's #'s for the car, Type of car, State the car is located in, Color of the car, Qty of cars. (Name is in Column A, CAR ID in Column B etc..)

NameCAR IDCarStateColorQty
John S123ChargerCABlack1
John S234S80CABlue2
John S567AccordCAGrey1
Bob A153ViperFLBlue2
Bob A365CorvetteFLBlack1
Trey L785ChallengerTXDark Blue1
Trey L698M5TXGrey2
Chris P785ViperSCBlue1
Michael V487ChargerWARed1
Michael V223CorvetteWAWhite1
Michael V985WRX STIWADark Blue2
Michael V923XJWARed1
Michael V102S60WABlack1

<tbody>
</tbody>


Names Sheet - List of Owner Names starting in Cell A1 through A6
John S
Bob A
Trey L
Chris P
Michael V
< Select Your Name >

Selection Sheet -

Drop down box in Cell A1 to select the name

Data for the selected name should populate in cells C2:H6 of the Selection Sheet

<tbody>
</tbody>



Need:
On the Selection Sheet the user selects the appropriate name from the drop down box in cell A1 and the data for that name populates in the range of cells (C2:H6).
If there is less than 5 entries then the cells should be left blank.


Notes:
Each name on the Data Sheet will never have more than 5 entries since it will be populated once a week with the top 5 entries for each name.
New customer information can be added to the Data Sheet each week as well as the Names Sheet.


Question:
Is there a formula that will allow me to do this or is there a macro that I can use that will accomplish this?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Each name will have to have a unique value for cells C2:H6 to autopopulate appropriately. Is this possible or will each name have more than one possible result?
 
Upvote 0

Book1
ABCDEF
1NameCAR IDCarStateColorQty
2John S123ChargerCABlack1
3John S234S80CABlue2
4John S567AccordCAGrey1
5Bob A153ViperFLBlue2
6Bob A365CorvetteFLBlack1
7Trey L785ChallengerTXDark Blue1
8Trey L698M5TXGrey2
9Chris P785ViperSCBlue1
10Michael V487ChargerWARed1
11Michael V223CorvetteWAWhite1
12Michael V985WRX STIWADark Blue2
13Michael V923XJWARed1
14Michael V102S60WABlack1
Data



Book1
ABCDEFGH
1John S
23IdxNameCAR IDCarStateColorQty
31John S123ChargerCABlack1
42John S234S80CABlue2
53John S567AccordCAGrey1
6
Filter


In A2 just enter:

=COUNTIFS(Data!$A$2:$A$14,A1)

In B3 control+shift+enter, not just enter, and copy down:

=IF(ROWS($B$2:B2)>$A$2,"",SMALL(IF(Data!$A$2:$A$14=$A$1,ROW(Data!$A$2:$A$14)-ROW(INDEX(Data!$A$2:$A$14,1,1))+1),ROWS($B$2:B2)))

In C3 just enter, copy across, and down:

=IF($B3="","",INDEX(Data!A$2:A$14,$B3))
 
Upvote 0
oh my bad totally misunderstood that all options were to be shown!
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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