+ Reply to Thread
Results 1 to 7 of 7

Drop-Down Menus

  1. #1
    Registered User
    Join Date
    07-24-2006
    Posts
    57

    Drop-Down Menus

    My book contains 2 sheets. The second sheet is the following format:

    A---------B
    abc-----###
    def-----###

    And the list continues with text in column A and values in Column B for many, many values.

    In the first sheet, I want to have 2 drop down menus. They would be side by side for the sake of comparison. In each menu, one is able to see all of the different texts that are in column A in sheet 2. Therefore, one may choose 'abc' in one drop down menu, and 'def' in the other. Then, I would like the respective value from column B (sheet 2) to display below the drop down menu.

    So in Sheet 1, if I chose 'abc' in one menu, and 'def' in the other, i would get something like this in sheet 1:

    ABC----------DEF
    ###---------###

  2. #2
    Marcelo
    Guest

    RE: Drop-Down Menus

    Hi,

    why not use a Pivot Table? it certainly will help you a lot
    --
    regards from Brazil
    Thanks in advance for your feedback.
    Marcelo



    "aposatsk" escreveu:

    >
    > My book contains 2 sheets. The second sheet is the following format:
    >
    > A---------B
    > abc-----###
    > def-----###
    >
    > And the list continues with text in column A and values in Column B for
    > many, many values.
    >
    > In the first sheet, I want to have 2 drop down menus. They would be
    > side by side for the sake of comparison. In each menu, one is able to
    > see all of the different texts that are in column A in sheet 2.
    > Therefore, one may choose 'abc' in one drop down menu, and 'def' in the
    > other. Then, I would like the respective value from column B (sheet 2)
    > to display below the drop down menu.
    >
    > So in Sheet 1, if I chose 'abc' in one menu, and 'def' in the other, i
    > would get something like this in sheet 1:
    >
    > ABC----------DEF
    > ###---------###
    >
    >
    > --
    > aposatsk
    > ------------------------------------------------------------------------
    > aposatsk's Profile: http://www.excelforum.com/member.php...o&userid=36709
    > View this thread: http://www.excelforum.com/showthread...hreadid=573157
    >
    >


  3. #3
    Registered User
    Join Date
    07-24-2006
    Posts
    57
    Thanks, but do you mind giving me some hints on how I would set up a Comparison-like format using Pivot Tables? Perhaps a tutorial?

  4. #4
    Debra Dalgleish
    Guest

    Re: Drop-Down Menus

    You could use data validation to create the dropdown lists, as described
    here:

    http://www.contextures.com/xlDataVal01.html

    In the cells below, use a VLookup formula to return the value for the
    selected item. For example, if the first dropdown is in cell B3, enter
    the following formula in cell B4:

    =VLOOKUP(B3,ValuesTable,2,FALSE)

    where ValuesTable is the range on the second sheet that contains all the
    text and values.

    aposatsk wrote:
    > My book contains 2 sheets. The second sheet is the following format:
    >
    > A---------B
    > abc-----###
    > def-----###
    >
    > And the list continues with text in column A and values in Column B for
    > many, many values.
    >
    > In the first sheet, I want to have 2 drop down menus. They would be
    > side by side for the sake of comparison. In each menu, one is able to
    > see all of the different texts that are in column A in sheet 2.
    > Therefore, one may choose 'abc' in one drop down menu, and 'def' in the
    > other. Then, I would like the respective value from column B (sheet 2)
    > to display below the drop down menu.
    >
    > So in Sheet 1, if I chose 'abc' in one menu, and 'def' in the other, i
    > would get something like this in sheet 1:
    >
    > ABC----------DEF
    > ###---------###
    >
    >



    --
    Debra Dalgleish
    Contextures
    http://www.contextures.com/tiptech.html


  5. #5
    Registered User
    Join Date
    07-24-2006
    Posts
    57
    Quote Originally Posted by Debra Dalgleish
    You could use data validation to create the dropdown lists, as described
    here:

    http://www.contextures.com/xlDataVal01.html

    In the cells below, use a VLookup formula to return the value for the
    selected item. For example, if the first dropdown is in cell B3, enter
    the following formula in cell B4:

    =VLOOKUP(B3,ValuesTable,2,FALSE)

    where ValuesTable is the range on the second sheet that contains all the
    text and values.


    --
    Debra Dalgleish
    Contextures
    http://www.contextures.com/tiptech.html
    But the value "B3" in the vlookup formula has to change with respect to the value chosen in the drop down menu. How could I make this value comply with the drop-down menu choice?

  6. #6
    Registered User
    Join Date
    07-24-2006
    Posts
    57
    Nevermind!!

    Thank you!

  7. #7
    Debra Dalgleish
    Guest

    Re: Drop-Down Menus

    Did you try the formula?
    B3 is a reference to the cell, so the formula result in cell B4 should
    change when you select a different value from the dropdown in B3

    aposatsk wrote:
    > Debra Dalgleish Wrote:
    >
    >>You could use data validation to create the dropdown lists, as
    >>described
    >>here:
    >>
    >>http://www.contextures.com/xlDataVal01.html
    >>
    >>In the cells below, use a VLookup formula to return the value for the
    >>selected item. For example, if the first dropdown is in cell B3, enter
    >>the following formula in cell B4:
    >>
    >>=VLOOKUP(B3,VALUESTABLE,2,FALSE)
    >>
    >>where ValuesTable is the range on the second sheet that contains all
    >>the
    >>text and values.
    >>
    >>
    >>--
    >>Debra Dalgleish
    >>Contextures
    >>http://www.contextures.com/tiptech.html

    >
    >
    > But the value "B3" in the vlookup formula has to change with respect to
    > the value chosen in the drop down menu. How could I make this value
    > comply with the drop-down menu choice?
    >
    >



    --
    Debra Dalgleish
    Contextures
    http://www.contextures.com/tiptech.html


+ 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