+ Reply to Thread
Results 1 to 9 of 9

Drop down list

  1. #1
    Registered User
    Join Date
    10-03-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Drop down list

    I made a list. When I click on a cell, a drop down list appears with the numbers 1,2,3 and 4.

    What I want to do is. If a cell = the value 500000 then what appears in the list is say for example 2,3,4 and if the value in a cell = the value 300000 then the values that appear in the drop down list is 1,2,3,4.

    Any way I can do this?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Drop down list

    There is no need to create a new thread when asked to change your thread title. My comment in your other thread...
    http://www.excelforum.com/excel-prog...313-lists.html
    ...explained how to change your title.

    Also, as I mentioned in your other thread...
    Also, dropdown lists are manually selected. If you want the cell contents to change, based on some other value, use vlookup or IF (if there are only a few options)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-03-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: Drop down list

    All I want to do is

    If cell B6 = 500000 then the values in the drop down list IS 1,2,3,4

    And if cell B6 = 300000 then the values in the drop down list is 5,6

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Drop down list

    OK do you mean that if B6=500000, then the only options in teh DD are 1, 2, 3 or 4?

  5. #5
    Registered User
    Join Date
    10-03-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: Drop down list

    yes correct.

    and if B6 = 300000 then the options in the drop down list would be 6,7

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Drop down list

    The way I would do this is to create 2 lists, 1 for 500000 and 1 for the other value, then give each list a name - I called them pick500000 and pick300000.

    Then use this as a LIST in Data Validation...
    =INDIRECT("Pick"&$B$6)

  7. #7
    Registered User
    Join Date
    10-03-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: Drop down list

    That's awesome! I managed to do this. Funny enough my current spread sheet I have used tons of the INDIRECT function for other stuff. But I didn't know we could use it for data validation and lists. Thanks )

  8. #8
    Registered User
    Join Date
    10-03-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: Drop down list

    Just a question. Is it possible to add the INDIRECT function to a spin button's CELL LINK?

  9. #9
    Registered User
    Join Date
    10-03-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: Drop down list

    Hmm btw. Suppose in one list I want values 1,2,3,4,5 all in a list. How do I make that happen? Coz in the code you provided:
    =INDIRECT("Pick"&$B$6)

    You made it cell B6 right? But in B6 we can just put one value. How to add multiple values?

+ 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. [SOLVED] Suppress drop-down list dependent on value chosen in another drop-down list
    By ptmald in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2013, 07:17 PM
  2. [SOLVED] Range in one drop down list depended on the selection in another drop down list
    By masben in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-26-2013, 10:36 AM
  3. How to create a drop down list based on the choices of another drop down list?
    By Happy jain in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2013, 01:54 AM
  4. Populate Drop-down list based on selection from previous drop-down list
    By Diventus in forum Excel - New Users/Basics
    Replies: 14
    Last Post: 01-11-2013, 10:55 AM
  5. Populate Drop-down list based on selection from previous drop-down list
    By poison_stone in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-11-2012, 06:10 PM
  6. Replies: 3
    Last Post: 04-16-2012, 10:14 PM
  7. Replies: 3
    Last Post: 05-19-2011, 03:08 AM
  8. Replies: 5
    Last Post: 10-27-2005, 01:55 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