+ Reply to Thread
Results 1 to 4 of 4

output dependent on selections from 2 drop down lists

Hybrid View

  1. #1
    Registered User
    Join Date
    10-24-2013
    Location
    Bismarck, ND
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    2

    output dependent on selections from 2 drop down lists

    I have two drop down lists, and I want to make it so when combinations are selected using both lists certain data appears as an output. So: The first drop down list has ABCD and the second has 1234, how do I make the outputs correlate with A and 1, A and 2, B and 1, B and 4, etc.

  2. #2
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: output dependent on selections from 2 drop down lists

    Can you provide a sample of what you want to accomplish. It isn't very clear from the description.

  3. #3
    Registered User
    Join Date
    10-24-2013
    Location
    Bismarck, ND
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    2

    Re: output dependent on selections from 2 drop down lists

    Sure,

    The first drop down list has the 4 states as options

    New York
    California
    Kentucky
    North Dakota

    The second drop down list has different types of wagers on horse racing:
    WPS
    Multiple
    Exotic
    Superexotic

    I need to have it where if you select "New York" and "WPS" it shows a certain set of data (distributions of money), that would be different than if you selected, for instance, "New York" and "Exotic."

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: output dependent on selections from 2 drop down lists

    Well, depending on the type of "drop down lists" something like this could work, assuming you fill in all the information you didn't supply

    Sub Data_Check()
    Dim dd2, dd3
    
    dd2 = Sheets("Sheet1").Shapes("Drop Down 2").ControlFormat.List(Sheets("Sheet1").Shapes("Drop Down 2").ControlFormat.Value)
    dd3 = Sheets("Sheet1").Shapes("Drop Down 3").ControlFormat.List(Sheets("Sheet1").Shapes("Drop Down 3").ControlFormat.Value)
    
    Select Case dd2
        Case Is = "A"
            Select Case dd3
                Case Is = "1"
                    'an output for A1 would go here
                Case Is = "2"
                    'an output for A2 would go here
                Case Is = "3"
                Case Is = "4"
            End Select
        Case Is = "B"
            Select Case dd3
                Case Is = "1"
                Case Is = "2"
                Case Is = "3"
                Case Is = "4"
            End Select
        Case Is = "C"
            Select Case dd3
                Case Is = "1"
                Case Is = "2"
                Case Is = "3"
                Case Is = "4"
            End Select
        Case Is = "D"
            Select Case dd3
                Case Is = "1"
                Case Is = "2"
                Case Is = "3"
                Case Is = "4"
            End Select
    End Select
    
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 09-25-2013, 02:35 PM
  2. Dependent Lists - Limit selections based on used values
    By jonmadjon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2013, 09:06 AM
  3. Replies: 7
    Last Post: 03-30-2012, 06:38 PM
  4. Combining selections from drop-down lists into a separate drop-down list
    By SCIFINUT in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-27-2012, 05:41 PM
  5. Replies: 9
    Last Post: 01-03-2012, 03:00 PM

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