+ Reply to Thread
Results 1 to 5 of 5

How to use two pull down lists to pull information from a third table

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    How to use two pull down lists to pull information from a third table

    Hi, can you help with a problem I'm having.

    I have two pull down lists, one with 10 letter choices (A-I) and the other with the months of the year. So this obviously gives 120 possible choices. What I need is the user to choose one choice from each list and then, depending on what is chosen, a number of specific fields are then populated from given values in a separate table (which would either be on the same worksheet or on the second page, whatever is easier).

    So below is a sample from the second table. A choice of "B" and "Apr", for example, would select the "6" (these figures are dates in that month). I then need this number to populate 3 specific fields in the first worksheet. Additionally I then need the display to add a given number, so the first box would show "6" plus 2, the second box would show that same 6 plus 5 and the third box would show the 6 plus 10. The 2, 5 and 10 are constant and will always be added to the number chosen.

    ....Jan.....Feb.....Mar.....Apr
    A...3........4........3........4
    B...6........7........5........6
    D...8........9........8........8
    E...11.....12......11......10
    F...14.....15......14......12
    __________________________

    First page:
    Choice: B
    Choice: Apr

    The dates chosen are:
    [8] [11] [16]

    __________________________
    Choice: F
    Choice: Mar

    The dates chosen are:
    [16] [19] [24]
    __________________________

    I hope this is clear. I have no idea how to achieve this. Can anyone help?
    Last edited by RibbleValley; 06-06-2012 at 09:54 PM.

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: How to use two pull down lists to pull information from a third table

    I'm pretty sure you are going to need code for this. However, finding someone to recreate the workbook and the criteria you are describing may not be so easy. You should upload a mock workbook with mock data (nothing personal or sensitive). A before and after scenario of what you have and what you want will go a long way too.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to use two pull down lists to pull information from a third table

    I would say you just need the INDEX() function using 2 MATCH() functions to provide the row and column values.

    With your sample values in A1:E6 - your Letter choice in B9 and your Month choice in B10 then use this to get first result:

    =INDEX($B$2:$E$6,MATCH($B9,$A$2:$A$6,0),MATCH($B10,$B$1:$E$1,0))+2

    Change the 2 at the end to a 5 for the second result and to a 10 for the third result

  4. #4
    Registered User
    Join Date
    06-06-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to use two pull down lists to pull information from a third table

    That solved the problem perfectly. Thank you very much!

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to use two pull down lists to pull information from a third table

    You're welcome. Don't forget to mark your thread as SOLVED (see instructions in rule #9 by clicking Forum Rules button @ top of page).

+ 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