Drop Down List

DJFANDANGO

Board Regular
Joined
Mar 31, 2016
Messages
122
Office Version
  1. 365
Platform
  1. Windows
Good Day my brave excell'ers!

I have a sheet (Sheet2) with the list below

[Sheet2]
[TABLE="width: 500"]
<tbody>[TR]
[/TR]
[TR]
[TD][/TD]
[TD="align: center"]a[/TD]
[TD="align: center"]b[/TD]
[TD="align: center"]c[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Bob[/TD]
[TD]obs[/TD]
[TD]tech[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]mark[/TD]
[TD]nav[/TD]
[TD]elec[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]john[/TD]
[TD]tac[/TD]
[TD]mech[/TD]
[/TR]
</tbody>[/TABLE]

On [Sheet1] I'd like to have a Drop-Down list in A1, then when a name is selected it populates (B and C) with the relevant information... is this dooable? (is that even a word...?)

[Sheet1]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]a[/TD]
[TD="align: center"]b[/TD]
[TD="align: center"]c[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD][NAME Drop-Down][$A1][/TD]
[TD]Populate from $B1[/TD]
[TD]Populate from $C1[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Many thanks for the help!
Steve
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Re: Drop Down List Help

Create a named range on sheet 2 with this formula.

Code:
=OFFSET(Sheet2!$A$1,0,0,COUNTA(Sheet2!$A:$A))

Then in A1 on Sheet1, add data validation, choose 'List', and for the source write '=Names'.

Then in cells B1 and C1 on Sheet1, enter the following formulas respectively.

Code:
=IF(A1="","",INDEX(Sheet2!B1:B3,MATCH(A1,Sheet2!A1:A3,0)))
Code:
=IF(A1="","",INDEX(Sheet2!C1:C3,MATCH(A1,Sheet2!A1:A3,0)))
 
Upvote 0
Re: Drop Down List Help

Lrobbo314,

Thanks for that, maybe I'm not grasping the first part, I have selected the name 'range' in 'Sheet2' and called it [Names], where do i place the '=offset code?

Many thanks
 
Upvote 0
Re: Drop Down List Help

You go to the formulas tab on the Ribbon and select 'Name Manager'. Then click 'New'. It'll ask you for a name and a formula. The name should be 'Names', and the formula is the offset code. This will give you a dynamic named range, meaning that as you add names to the list your drop down will be updated, that you can use to make your dropdown list. Then, you select the cell that you want to have the drop down list, click on data validation, select 'List', and for 'Source' you type '=Names'.
 
Upvote 0
Re: Drop Down List Help

Another approach.
On Sheet2, insert headings above the data you have shown (it's unusual not to have headings for data like that anyway).
Select the headings and data on Sheet2 and on the Insert ribbon tab choose Table & tick My table has headers.

Excel Workbook
ABC
1NameData 1Data 2
2Bobobstech
3marknavelec
4johntacmech
Sheet2




On Sheet1 select cell A1
Data ribbon tab -> Data Validation drop-down arrow -> Data Validation... -> Settings tab -> Allow: List -> Source: =INDIRECT("Table1[Name]") -> OK (Note: If you have other tables then check or rename the Sheet2 table in the Name Manager on the Formulas ribbon tab)
Formula in B1 is copied across (& down if necessary)

Excel Workbook
ABC
1johntacmech
Sheet1
#VALUE!
 
Upvote 0
Re: Drop Down List Help

Hi Peter,

Got it working! Thanks a bunch!

Steve
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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