Solved

Excel Drop Down List Auto Find

Posted on 2011-03-25
17
536 Views
Last Modified: 2012-05-11
I have a drop-down list in Excel with hundreds of items available for selection.

But I cannot type the first letter and have it jump down to the first entry within the list.

For example, if I type an "f'", the list statys stationary at the first entry.  It forces me to constantly manually scroll down and select the entry when I find it.  

How can I fix/do this?

BTW, what is this type of feature called?  I know there is a technical name for it...
0
Comment
Question by:HaimD
  • 9
  • 7
17 Comments
 
LVL 18

Expert Comment

by:Jerry Miller
ID: 35220161
Check this out and see if this an autocomplete solution that works for you.

http://www.ozgrid.com/Excel/autocomplete-validation.htm
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 35223180
This depends on what type of dropdown list you have.  If you have the list that shows up associated with Data Validation on a cell, then that is the style of dropdown.
If you have a "Forms" dropdown, you get the same thing.
However, if you use an ActiveX dropdown (also built into Excel) then you can get the functionality you seek.
For Excel 2003, you'll need to add the Controls Toolbox toolbar (found under View | Toolbars)
On there, locate the dropdown combo box and add it to the form.
Right-click and open the Properties window.  For the combo, you'll probably want to update:
* the LinkedCell property to match the location on the sheet where you want to save the selected Index of the value
* the ListFillRange property to match the hundreds of items to show
* MAYBE the Style property to change from "match as you type" (Combo style) to "match the first item with the letter you type" (List style)

when done, on that same toolbar, make sure to click on the Design button at the top (Triangle and pencil) to switch out of design mode into "run" mode.
0
 

Author Comment

by:HaimD
ID: 35298871
Thanks guys, but neither of these methods worked for me.  The first by jmiller1979 did not work as outlined in the link.  The second by rspahitz won't work becuase I cannot sort by the entries, nor filter, and copying per row is very difficult.  Am I out of luck then?
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 22

Expert Comment

by:rspahitz
ID: 35315149
I don't think the ActiveX Controls combobox requires that the items be sorted.  Why not give it a try.
0
 

Author Comment

by:HaimD
ID: 35315390
rspahitz,

I'm talking about sorting by rows of data, not sorting within the combobox itself...
0
 

Author Comment

by:HaimD
ID: 35777408
Due to lack of further responses and none of the answers , I take it that this cannot be done as I need in Excel 2003.  Thanks for offering suggestons....
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 35777972
Sorry--I guess I missed your previous comment.

As I understand it, you have a combobox with an unsorted list of items and you want the items in the list to highlight as you type the letters of the items you're seeking.  The combobox should do that if set in the right mode.

However, what do you want if you type a second letter?  Does it count as the second letter of a lookup, or does it count as a new lookup's first letter?
0
 

Author Comment

by:HaimD
ID: 35778014
The second letter would add to the lookup.

For example:
Type "J", then it would go down to Jack.
Then type "o", then it would go down to John.
Then type "n", then it would go down to Jonathan.

...as an example...
0
 
LVL 22

Accepted Solution

by:
rspahitz earned 500 total points
ID: 35778120
So I just added an ActiveX combobox to an Excel sheet.
I loaded it with data from cells a1:a10
I set the following property: MatchEntry = 0-fmMatchEntryFirstLetter
As needed, you can also change: Style = 2-fmStyleDropDownList
I click in it and type a letter and the first item appears without ever touching the dropdown portion.

Problem solved...?

0
 
LVL 22

Expert Comment

by:rspahitz
ID: 35778135
Ah, I see your next post...change MatchEntry to 1-fmMatchEntryComplete
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 35778246
Discussion continuing
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 35778274
FYI
you will also need code like this to load the combobox with the desired data:

Private Sub CommandButton1_Click()
    Dim objCell As Range
   
    For Each objCell In Range("A1:a10")
        Me.ComboBox1.AddItem objCell.Value
    Next
End Sub

And instead of CommandButton1_Click, you may want it in another procedure such as Workbook_Open or Worksheet_Activate, or possibly whenever certain cells Change values.
0
 

Author Comment

by:HaimD
ID: 35778284
Thanks rspahitz...you already gave me the answer I was looking for...
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 35786939
Are you still verifying the information I gave / do you need additional information?
0
 

Author Comment

by:HaimD
ID: 35787525
No thanks...I already accepted your solution.
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 35787718
Hmmm...for some reason the Accepted Solution is not appearing for me.  Can you review that?
0
 

Author Closing Comment

by:HaimD
ID: 35787740
This answers the question posed, even though it didn't actually solve my particular problem.  Thanks though!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question