+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Drop down box

  1. #1
    Registered User
    Join Date
    08-13-2011
    Location
    Staffordshire, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Smile Drop down box

    Hi, I've been creating a spreadsheet which contains a user form for employee details, which when you save it enters it in to a table on the same worksheet. I now want to be able to have a drop down box on a separate worksheet, where the first and last name are displayed. Then when the user clicks the name the rest of their details are displayed below. Any ideas? I thought maybe I could use a VLOOKUP, but I can't get it to work Thanks x

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Drop down box help!

    Good morning needhelp!

    ...and welcome to the forum!

    What you want to do is certainly possible, but you need to set your data sheet up correctly. I would suggest the names going down in column 1 and the employment details, DoB, department etc going across.

    For the drop down box, try experimenting with Data Validation (Data > Data Tools) : the bit you are interested in is to allow a list. You can link this to a cell range. This is the cell your VLOOKUP formula will look at, and use as a comparator.

    Once you've got the basics set up post back with any problems.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    08-13-2011
    Location
    Staffordshire, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Drop down box help!

    Hi thanks for the reply

    I've managed to use this code in every cell but changing the column number for each field, =VLOOKUP(B8, 'Add Employee'!A11:X14,2,TRUE), but I can't seem use a drop down box as a lookup value, if more than one cell is using it as a lookup value, is there a way round this? Also the cell reference needs to be A11:X200 but everytime I enter this the value in the field automatically goes to 0, I think this may be because there is no data past X14 yet?

    Thanks

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Drop down box help!

    Hi needhelp!

    Can you post your workbook, or what you've got so far and I'll take a look.

    HTH

    DominicB

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1