Searchable dropdown list

RAJESH1960

Active Member
Joined
Mar 26, 2020
Messages
482
Office Version
  1. 2019
Platform
  1. Windows
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
Joined
Sep 20, 2011
Messages
340
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
This should be
=OFFSET(H2,,,COUNTIF(Sheet1!$H:$H,"*?"),1)
or
=OFFSET(H2,,,COUNTIF(Sheet1!$H$2:$H$1472,"*?"))
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

RAJESH1960

Active Member
Joined
Mar 26, 2020
Messages
482
Office Version
  1. 2019
Platform
  1. Windows
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
Joined
Mar 26, 2020
Messages
482
Office Version
  1. 2019
Platform
  1. Windows
=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
Joined
Mar 26, 2020
Messages
482
Office Version
  1. 2019
Platform
  1. Windows
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.
Answer - =IF(ISNUMBER(SEARCH(CELL("contents"),F3)),MAX($E$2:E2)+1,0)
 

C Moore

Well-known Member
Joined
Jan 17, 2014
Messages
558
Office Version
  1. 365
Platform
  1. Windows
Helper column in the table like this, =ISNUMBER(SEARCH($F$1,[@Name]))
1595968875622.png
1595968934513.png
1595968957555.png


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
Joined
Mar 26, 2020
Messages
482
Office Version
  1. 2019
Platform
  1. Windows

Watch MrExcel Video

Forum statistics

Threads
1,130,383
Messages
5,641,835
Members
417,240
Latest member
pjohnsonexcel

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top