# Searchable dropdown list

#### RAJESH1960

##### Active Member
Hi, I have created a dynamic searchable drop down list with around 1600 names and it's working perfect except for one thing. I have 2 names in the list "Rajesh" and "Rajesh Shah". Only one name appears in the drop down list when I type "rajesh". What could be the problem,?

#### Tom.Jones

##### Active Member
This should be
=OFFSET(H2,,,COUNTIF(Sheet1!\$H:\$H,"*?"),1)
or
=OFFSET(H2,,,COUNTIF(Sheet1!\$H\$2:\$H\$1472,"*?"))

### Excel Facts

If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

#### RAJESH1960

##### Active Member
Try to change this formula:

=OFFSET(H2,,,COUNTIF(\$H\$2:\$H\$1472,"?*"))
to this
=OFFSET(H2,,,COUNTIF(Sheet1!\$H\$2:\$H\$1472,"*?"),1)
Change Sheet1 with name of the sheet
=OFFSET(H2,,,COUNTIF(DD list!\$H\$2:\$H\$1472,"?*"),1)
I am getting a #Name? Error

#### RAJESH1960

##### Active Member
=OFFSET(H2,,,COUNTIF(DD list!\$H\$2:\$H\$1472,"?*"),1)
I am getting a #Name? Error
I think something wrong with the search function. It is not calculating the max function properly. It should show 1,2,3,4,5,6 and instead it is showing 1,1,2,2,3,3,. Can you help me with this

#### RAJESH1960

##### Active Member
I think something wrong with the search function. It is not calculating the max function properly. It should show 1,2,3,4,5,6 and instead it is showing 1,1,2,2,3,3,. Can you help me with this

Hi Tom Jones, Problem solved. Thanks for replying.

#### C Moore

##### Well-known Member
Helper column in the table like this, =ISNUMBER(SEARCH(\$F\$1,[@Name]))

Once again this is just a quick way to limit the items shown. The search box in the middle picture offers a similar function.

#### RAJESH1960

##### Active Member
Helper column in the table like this, =ISNUMBER(SEARCH(\$F\$1,[@Name]))
View attachment 19174View attachment 19175View attachment 19176

Once again this is just a quick way to limit the items shown. The search box in the middle picture offers a similar function.
Thanks for your effort Moore. But this is a list which I have to operate in multiple sheets using data validation and the main table will be hidden away.

Replies
1
Views
259
Replies
0
Views
49
Replies
1
Views
268
Replies
3
Views
154
Replies
0
Views
60

1,128,154
Messages
5,629,005
Members
416,358
Latest member
grsaltzman

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back