Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting a drop down list to a database 2

Status
Not open for further replies.

FC2008

Mechanical
Aug 4, 2008
106
Hi,

I have made a small database of different material types in excel. First column contains the name of the material, and the other columns are material properties.

I would like to make a drop-down list where I can choose a material and have excel automatically give the material properties in one row.

Any tips are greatly appreciated!
 
Replies continue below

Recommended for you

Hi,

I have not used AutoFilter before, but a quick look at it tells me that it is not what I'm looking for.

I would like to have the small database on a seperate worksheet, and have the drop-down on another sheet.
I do not think this can be acheived using AutoFilter.

Thanks
 
Is this what you want?



[link ]
btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Clyde's profile on LinkedIn
[/url]
 
Hi Clyde38,

that looks great! Is it possible to use a drop down, instead of the thing you use?
If not, this is still great.

Thanks!
 
By the way, how did you do it?
 
Look for "Form Controls". Select the control you want to use and put it in your work sheet. Assign the control properties by right clicking the control.

If you right click on the "List Box" in Sheet1 you can see the properties for an example.

"Form Controls" offer a few different options and I think a drop down box is one.

[link ]
btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Clyde's profile on LinkedIn
[/url]
 
That stuff works great! Thank you very much
 
Assign your data (list of values) a name.

Select Range where you want list of values to appear (input cells).
Data / Validation... Allow: List. Source: =Listname

Turn on in-cell dropdown for the dropdown menu you want.

Turn off ignore blanks and it will not allow any entries other than the ones in the list (which will appear in dropdown)

Example attached created in 2 minutes.

=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
 http://files.engineering.com/getfile.aspx?folder=c6b72ce7-93e3-41c9-a7f5-b4c93c728e39&file=DataValidationExample.xls
Both your suggestions are working beautifully!
Thank you very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor