+ Reply to Thread
Results 1 to 9 of 9

Help needed:Changing dropdown values based on look up cell

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Help needed:Changing dropdown values based on look up cell

    Hi All,

    I have a scenario when i pasting the values in A2 column the B2 column drop down have to change by looking at the values pasted in A2 cell.

    I have attached an example file for reference.

    Thanks
    Elango
    Attached Files Attached Files
    Last edited by Elangovan89; 01-06-2014 at 12:30 PM. Reason: My problem has been resolved.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help needed:Changing dropdown values based on look up cell

    Looks like you don't want a dropdown as there is only 1 correct entry for any value in A2. You want a formula
    In B2 copied down
    =IF(OR(A2={"banana","Apple","Orange"}),"Fruit", IF(OR(A2={"Carrot","Potato","Tomoto"}),"Vegetable", IF(A2="Beer", "Drink","")))
    Questions?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Help needed:Changing dropdown values based on look up cell

    Hi Chemist,

    Yeah, I have a question in case if more than a 1 correct entry how it could be done?

    Thanks for your help!

  4. #4
    Registered User
    Join Date
    12-24-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Help needed:Changing dropdown values based on look up cell

    Hi Chemist,

    How you put {} for criteria's in formula.. If I type Manually it doesn't take Criteria. If I Use CTRL+SHIFT+Enter, it takes full formula into array.

    Thank you for your help.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help needed:Changing dropdown values based on look up cell

    Elangovan
    Read up on it here: http://www.contextures.com/xlDataVal02.html

    Chetansuri,
    In this case, they are manually entered. These are not entered with CNTRL SHFT ENTER. I tested them before I replied. If you have a specific issue, start a new thread and upload a workbook (Go Advanced>Manage Attachments)

  6. #6
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Help needed:Changing dropdown values based on look up cell

    Chemist,

    I have already goggled that page. Here in the A2 cell I am not using drop down I am copy pasting the values. Hence based on the pasted values the drop down values have to change.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help needed:Changing dropdown values based on look up cell

    It would work the same way, just skip the part where you set up the initial dropdown. In Column B would be your INDIRECT dropdowns.

    If it's still not making sense, maybe upload a better example where column B can have more than one result.

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help needed:Changing dropdown values based on look up cell

    Here is a complex example using your original example, where you have many possibilities which narrow to a few catagories (fruit, vegetable, drink) which expand to a list. Here we'd use a combination of VLOOKUP and INDIRECT. See attachment.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Help needed:Changing dropdown values based on look up cell

    Hi Chemist,

    It was awesome!!! I really appreciate your help on this... Thank you so much. The formula was exceeded my expectations.

    Keep up the good work mate!

    Regards
    Elango

+ 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: 2
    Last Post: 07-01-2013, 10:51 AM
  2. Changing Cell value based on Dropdown selection
    By src16 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-01-2013, 09:17 AM
  3. Replies: 4
    Last Post: 08-01-2012, 08:55 AM
  4. Help needed to display values as dropdown
    By johnabrahambio in forum Excel General
    Replies: 0
    Last Post: 05-24-2012, 01:10 AM
  5. changing cell color based on changing values
    By tvonbehren in forum Excel General
    Replies: 2
    Last Post: 09-16-2009, 12:33 PM

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