Searchable Drop down List

GMC The Macro Man

Board Regular
Joined
Mar 23, 2023
Messages
104
Office Version
  1. 2021
Platform
  1. Windows
Hi guys
I have a drop down list of Pupil Names which i have a formula to to make it searchable as I don't have Office 365 and the new searchable function has not yet been released for Office 2021.
The customer has changed the way in which they supply the data to me, before it was just the FULL NAME but now its 1st Name / Last Name so i have added and extra column (C) to concatenate first and Last..
This works fine but now the searchable part of does not work properly as it sees the formula as data and will either return a Name if there is one there or a blank space.
This formula allows for up to 500 names to be entered on the data page but if only 150 are used then the drop down list would return 350 blank spaces then the 150 names.
I need a way to IGNORE the blanks in the Drop Down List
If you look at the attachment.
Columns A to C is the Data table "PupilNames".
Column E is the searchable list which uses "SORT, FILTER, ISNUMBER & SEARCH"
Column G is the Data Validation Drop Down List.

I hope someone can help
Thanks
George

Book1
ABCDEFGH
1First NameSurnameFull NameSort ListDatalist
2john smithjohn smith
3robertblackrobert black
4thomaswhitethomas white
5edwardbrownedward brown
6williamgreenwilliam green
7 edward brown
8 john smith
9 robert black
10 thomas white
11 william green
12
Pupil Names
Cell Formulas
RangeFormula
E2:E11E2=SORT(FILTER(PupilName[Full Name],ISNUMBER(SEARCH($G$2,PupilName[Full Name])),"not found"))
C2:C11C2=A2&" "&B2
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
G2List=$E$2#
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You are creating a space character in the full name column when it should be blank. Please try:

Book2
ABCDE
1First NameSurnameFull NameSort List
2john smithjohn smithedward brown
3robertblackrobert blackjohn smith
4thomaswhitethomas whiterobert black
5edwardbrownedward brownthomas white
6williamgreenwilliam greenwilliam green
7 
8 
9 
10 
Sheet1
Cell Formulas
RangeFormula
E2:E6E2=SORT(FILTER(C2:C10,C2:C10<>"",""))
C2:C10C2=IF(A2&B2="","",A2&" "&B2)
Dynamic array formulas.
 
Upvote 1
Solution
Or, probably simpler for column C

Excel Formula:
:=TRIM(A2&" "&B2)
 
Upvote 1
You are creating a space character in the full name column when it should be blank. Please try:

Book2
ABCDE
1First NameSurnameFull NameSort List
2john smithjohn smithedward brown
3robertblackrobert blackjohn smith
4thomaswhitethomas whiterobert black
5edwardbrownedward brownthomas white
6williamgreenwilliam greenwilliam green
7 
8 
9 
10 
Sheet1
Cell Formulas
RangeFormula
E2:E6E2=SORT(FILTER(C2:C10,C2:C10<>"",""))
C2:C10C2=IF(A2&B2="","",A2&" "&B2)
Dynamic array formulas.
Thanks Kev for taking the time to look at my post. This has worked perfectly
 
Upvote 0

Forum statistics

Threads
1,224,878
Messages
6,181,527
Members
453,053
Latest member
DavidKele

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
Back
Top