+ Reply to Thread
Results 1 to 6 of 6

How to get values when selecting from dropdown list

  1. #1
    Registered User
    Join Date
    03-20-2019
    Location
    australia
    MS-Off Ver
    MS OFFICE 2016
    Posts
    9

    How to get values when selecting from dropdown list

    Hi,

    I am wondering which formulas i should use for this.
    For example, if i select "Yes" from the dropdown list, i want to get "Apple". If i select "No" from the dropdown list, i want to get "Orange".

    Please refer to attached file.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: How to get values when selecting from dropdown list

    You could use this in B1:

    =IFERROR(VLOOKUP(A1,A3:F5,6,0),"")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-20-2019
    Location
    australia
    MS-Off Ver
    MS OFFICE 2016
    Posts
    9

    Re: How to get values when selecting from dropdown list

    Hi Pete,
    How about when i want to choose different values when selecting from the dropdown list?
    For example, when i select "Yes", how can i get "banana"? should i use "if"?

    Thank you so much for your help in advance!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: How to get values when selecting from dropdown list

    I think what you are trying to describe is what is called dependent data validation, e.g. you select "Fruit" in one drop-down (rather than "vegetable"), and then in another drop-down you can select from a list of fruits, but if you had selected vegetable in the first drop-down then the second drop-down would automatically present you with a list of vegetables that you could choose from.

    Is that what you are after?

    Pete

  5. #5
    Registered User
    Join Date
    03-20-2019
    Location
    australia
    MS-Off Ver
    MS OFFICE 2016
    Posts
    9

    Re: How to get values when selecting from dropdown list

    Yes thank you so much Pete!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: How to get values when selecting from dropdown list

    Okay, well Debra Dalgleish has an excellent section on dependent data validation on her website here:

    https://www.contextures.com/xlDataVal02.html

    That will explain everything you need to know to set it all up.

    Hope this helps.

    Pete

+ 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. How to do loading the dropdown list after selecting match some values?
    By riyajuweb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2018, 10:50 AM
  2. Selecting value from a dropdown list on a webpage using vba
    By newguy007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2017, 09:09 AM
  3. Replies: 1
    Last Post: 05-19-2015, 12:42 AM
  4. Selecting dropdown list from Webpage using vba
    By kiran527 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2014, 02:38 PM
  5. selecting names from dropdown list
    By dbuttery1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2007, 08:56 PM
  6. [SOLVED] result of selecting from the dropdown list should be a dropdown list
    By No News in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-05-2006, 11:15 AM
  7. result of selecting from the dropdown list should be a dropdown list
    By No News in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2006, 05:55 AM

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