+ Reply to Thread
Results 1 to 8 of 8

Filter list of names by letter

  1. #1
    Registered User
    Join Date
    08-04-2012
    Location
    Bangkok, Thailand
    MS-Off Ver
    MS Office 365 Ver. 2304
    Posts
    40

    Filter list of names by letter

    I have created a worksheet in Excel, the first column of which I would like to populate with names of people.

    I want to be able to populate the names in a manner similar to data validation from a list. The list of potential names is quite extensive, so the enhancement to data validation I would like to include is the ability to filter the list by letter input. For example, I want to click in the first cell where a name will appear and have a drop-down box appear. When I enter the letter "s" in the drop-down list, I would like the list to show all the names beginning with "s". When I insert the second letter of the name, such as "m", I would like the drop-down list to be further narrowed to the names that begin with "sm", etc. At the point where the list is narrowed down enough, I want to click on the chosen name and have that name be entered in the cell.

    Additionally, with the pressing of the "enter" key, I would like the active cell to advance to the next cell in the column for name input and the process repeat over again.

    I have seen the Ozgrid, and it doesn't do what I want to do.

    Can anyone help me? I am quite a novice at this, so if I could ask for your suggestions to be remedial I would appreciate it. I'm still quite new to a lot of VBA jargon.

    Thank you so much for any help you can provide.

    Sincerely,

    Mark1011

  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,726

    Re: Filter list of names by letter

    What you are describing is called AutoComplete, but data validation does not support this. However, you can use a combo box instead to achieve this, and Debra Dalgleish describes all the steps on her website, here:

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

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    08-04-2012
    Location
    Bangkok, Thailand
    MS-Off Ver
    MS Office 365 Ver. 2304
    Posts
    40

    Re: Filter list of names by letter

    Hi Pete,

    Thank you for your response. Neither the Ozgrid nor the Contextures links do what I want my program to do.

    I know data validation doesn't support this, which is why I thought it necessary to resort to a macro. But I know nearly nothing about macros.

    I have tried the code in both Ozgrid and Contextures, and neither produce the result I desire. I think it will have to be something from scratch, and I just don't have the know-how to do it.

    Thank you for your kind assistance.

    Respectfully,

    Mark1011

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Filter list of names by letter

    hi Mark1011, I would not say that it is exactly what you want but may be it would be of some help to you.

    Select any cell or cells in A column in the range A2:A10. Start entering a word in a form (sample word list consists of the words start with "t"). As you type suggestions will appear and if you are satisfied with the suggestion press "+ =" button. The typed word would go to the active cell/cells and next cell becomes active. To close the typing assistant form press Alt+F4
    Attached Files Attached Files

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Filter list of names by letter

    'Dependent Drop Down in the same cell
    I have a technique for creating smaller sublists from a larger list, all operating in the same cell. The page here leads to three different examples of ways to use it...
    Data Validation Tricks

    Each version has its own sample page where you can download and see it in action.


    I "think" the sheet Single Name List leads to a project that essentially is what you're trying to do.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    08-04-2012
    Location
    Bangkok, Thailand
    MS-Off Ver
    MS Office 365 Ver. 2304
    Posts
    40

    Re: Filter list of names by letter

    Thank you both for your help.

    JBeaucaire, what you sent me is good, but it seems that I can only filter by 1 letter. I want the list to keep narrowing as I type in additional letters in the name. I appreciate your taking the time to respond.

    Watersev, what you sent me is really cool. It is about the closest thing I've seen to what I want to do. Could I ask you to assist me in the code to make it work in my worksheet?

    Thank you both very much!

    Respectfully,

    Mark1011

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Filter list of names by letter

    can you post your workbook with explanations?

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Filter list of names by letter

    Data Validation does not have that kind of "autocomplete". I filtering down to one letter is insufficient, you should read up on using ActiveX Combobox drop downs. Those do have an autocomplete option

+ 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