OzGrid

AutoComplete for Data Validation List

< Back to Search results

 Category: [Excel]  Demo Available 

AutoComplete for Data Validation List

 

Auto Complete Typing in an Excel Data Validation List

Data Validation

Those that have used data validation will know that it is a very handy feature, especially the List option. The List option allows us to have a cell show a drop-down arrow, which the user can then select from.

Draw-Back

However, when we do the above we must either scroll to the needed item in the Validation list, or type the whole word. What would be really nice is if Excel would AutoCompletebased on our list! Unfortunately no such standard feature exists in Excel.

The Solution

  1. Go To Tools>Options - Edit And Check Enable AutoComplete For Cell Values
  2. Move Your List Of Items Is In The Range Immediately Above The Validation Cell.
  3. Hide The Rows Above Your Validation Cell.

Now, as you type Excel will look at the list above the Validation cell and AutoComplete based on it.

List is Dynamic and/or Resides on Another Worksheet

Lets say your list is on Sheet2 and you wish to use the Validation List with AutoComplete on Sheet1.

On Sheet1 A1 Enter =Sheet2!A1 and copy down including as many spare rows as needed (say 300 rows total). Hide these rows and use this formula in the Refers to: for a dynamic named range called MyList:

=OFFSET(Sheet1!$A$1,0,0,MATCH("*",Sheet1!$A$1:$A$300,-1),1)

Now in the cell immediately below the last hidden row use Data Validation and for the List Source use =MyList

 

See also: Index to Excel VBA Code and Index to Excel Freebies and Lesson 1 - Excel Fundamentals and Index to how to… providing a range of solutions and Index to new resources and reference sheets

 

See also:

Array Formulas - Excel Array Formulas
Assign Macros in Excel

 

Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions.

 


Gallery



stars (0 Reviews)