+ Reply to Thread
Results 1 to 9 of 9

Navigate in a drop down list

  1. #1
    Registered User
    Join Date
    09-19-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    48

    Navigate in a drop down list

    Hi

    I have a long drop down list of places in a cell. I want to bring out a particular place name (say India) by typing ' i ' or ' in ' in the cell. Or at least it should show all places starting with I. Is it possible in excel?

    Thanks for your help.

    Pal
    Last edited by pal_slg; 10-19-2011 at 01:54 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Navigate in a drop down list

    Hi Pal,

    Here is a sample that might work for you...
    Attached Files Attached Files
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    09-19-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Navigate in a drop down list

    Thanks Jeff. I see there is a cell designed inside another cell. How did you do it? Will the same rule apply in my requirement? I have attached a sheet, where I have a drop down list in Column A (A2:A12) and as I type D in one of these cells (Cell A2 or Cell A3 and so on) the places with D will show up. Is this possible?

    Thanks again!!
    Pal
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-08-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Navigate in a drop down list

    Quote Originally Posted by jeffreybrown View Post
    Hi Pal,

    Here is a sample that might work for you...
    How did you do this? Codes?

    Thanks!
    Mahal mo na, ayaw na niya.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Navigate in a drop down list

    Sorry I misread the part where you want to filter in each individual cell and not just a auto filter on the sheet.

    You can't do this with Data validation, but an alternative is to Create Dependent Lists. This way you could have one data validation to pick for instance, countries, and then the next data validation would narrow the search to cities within that country.

    To do it the way you suggest, I believe it might be able to be done through a combobox, but not really sure as I don't use combobox all that much.

    @xov0ct
    Yes this is with code. Open the Excel doc and select Alt + F11 which will open the VBE and then double click on the Sheet1 module to sheet the worksheet code.

    http://www.rondebruin.nl/code.htm

  6. #6
    Registered User
    Join Date
    09-19-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Navigate in a drop down list

    Thanks Jeff. Yes the dependent list is really useful. To create a dependent list i need to make some name ranges right? But one doubt is there. How many name list can be created in a excel sheet? does it handle a really large mane list - say about 5000? If it does then I think my problem is solved.

    Thanks for helping again.
    Pal

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Navigate in a drop down list

    I'm not realy sure what you are trying to do here, but here are some ideas.

    The attached Workbook "PlacesWithVBa.xls" offers two possibilities
    Sheet1
    Enter a starting letter in Column A (say A2), then confirm this using the "Tick" icon to the left of the formula bar.
    If there is a match in Sheet "Lookups" Column A there will now be a validation list in A2 (A2 will be blank)

    Sheet2
    Select a cell in column A
    A UserForm will appear.
    Enter a starting letter in the combobox.
    This combo should now have a list of the places beginning with your choice, the first found will be displayed.
    Select from this list > Press "Enter Selection"

    Workbook "Places.xls"
    This is as good as I can get without VBa
    Enter a letter in Column A the validation list should be in Column B

    Both workbooks use non-volatile dynamic named ranges from the Sheet "Lookups", Column B must be sorted A-Z
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  8. #8
    Registered User
    Join Date
    10-08-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Navigate in a drop down list

    Thanks, jeffreybrown.

  9. #9
    Registered User
    Join Date
    09-19-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Navigate in a drop down list

    Dear Marcol

    This is indeed an innovative idea! Thank you so much.
    Pal

+ 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