+ Reply to Thread
Results 1 to 4 of 4

Excel Drop Down Menu Work

  1. #1
    Registered User
    Join Date
    02-16-2007
    Posts
    4

    Excel Drop Down Menu Work

    I have an Excel sheet that I want to simplify for my users. I want to give them the ability to select data from a drop down and have the sheet prefill other columns based on their dropdown selection. I'm ok with the drop down part. I'm having trouble figuring out the next 2 steps. I have a sheet that has a workers title (HR Admin, accountant, I/T, etc). Each title has an associated code (ex 1234). So it's not possible to have the user memorize the code which is needed for billing purposes. They also have a billing rate associated with their title and code.
    So I now have a sheet (used for the dropdown menu) with 3 columns (Title, Code, & Rate). I want the drop down list to show their title, however when they select that title the code associated with that title fills the column (not the title) and the rate tied to that code fills the adjacent column in the spreadsheet.
    Am I asking too much of Excel? If not can someone help me figure out how to get this to happen?

    Thanks in advance.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I think you would need to use VLOOKUP() function.

    Set up a table somewhere with the Title and associated Codes and Rates.

    In the column next to the dropdown for Title.. enter a formula such as:

    =Vlookup(A1,$X$1:$Z$100,2,0) to extract the Codes

    where A1 contains the Title dropdown and X1:Z100 is the table you set up with Titles in column X.

    In the next column you would have something like:

    =Vlookup(A1,$X$1:$Z$100,3,0) to extract the Rates.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    jmorovich,

    Please read the forum rules below and then add the link to the other forum that you have posted the same question.

    To understand why we ask you to do this read the message to cross posters also below

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Well, at least I pretty much gave the same answer...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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