Solved

Excel Drop Down List Auto Find

Posted on 2011-03-25
17
534 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 22

Expert Comment

by:rspahitz
Comment Utility
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
Comment Utility
rspahitz,

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

Author Comment

by:HaimD
Comment Utility
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
Comment Utility
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
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 22

Accepted Solution

by:
rspahitz earned 500 total points
Comment Utility
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
Comment Utility
Ah, I see your next post...change MatchEntry to 1-fmMatchEntryComplete
0
 
LVL 22

Expert Comment

by:rspahitz
Comment Utility
Discussion continuing
0
 
LVL 22

Expert Comment

by:rspahitz
Comment Utility
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
Comment Utility
Thanks rspahitz...you already gave me the answer I was looking for...
0
 
LVL 22

Expert Comment

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

Author Comment

by:HaimD
Comment Utility
No thanks...I already accepted your solution.
0
 
LVL 22

Expert Comment

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

Author Closing Comment

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

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now