Data Validation with Keyword search

RAMU

Active Member
Joined
Dec 11, 2009
Messages
345
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. Mobile
Hi,
In My Sheet2 There are about 4000 names in column B
As an instance giving 5 only, like Bruce Lee, Jackey Chang, Silvester Stalone, Silva Arora, Jack Maa
Now in Sheet1 Column B" every cell I need to put Data Validation along with keyword search option, mean if I write Sil, two names will be shown "Silvester Stalone & Silva Arora", or if I write Jack then also two names will be shown "Jackey Chang & Jack Maa". Similarly if I write cha, then also Jackey Chang will be shown. Ans the names which will be shown I shall select any one of those & shall enter in that particular cell.
The same process will be applicable for all cells of Column B in Sheet1. But the main Data are in Column B of Sheet2.

Is there any way out to apply such searchable Data Validation in each cell ? Pls note it is quite impossible for me to use combo box in each cell manually.
Regards
RAMU
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Please, check this out:
Search deList
Hi,
Excellent, no doubt it is serving my purpose. only one option, if can be possible, instead of Alt + Right if it could be possible any single key, it can be more user friendly. Otherwise it is no doubt a great job, Hats off to you.
 
Upvote 0
Hi,
Excellent, no doubt it is serving my purpose. only one option, if can be possible, instead of Alt + Right if it could be possible any single key, it can be more user friendly. Otherwise it is no doubt a great job, Hats off to you.
You can reassign a function key to Alt_Right

VBA Code:
Public Sub subMain()
  
  Application.OnKey "{F1}", "subAltRight"
      
End Sub

Public Sub subAltRight()

  Application.SendKeys ("^{Right}")

End Sub

Sub subReset()
  
  Application.OnKey "{F1}"
  
End Sub
 
Upvote 0
if can be possible, instead of Alt + Right if it could be possible any single key,
Try this:
  1. Open VBA window (press ALT+F11)
  2. Open VBAProject Search_deList
  3. Open module xDav_1 > check out this part:
VBA Code:
Option Explicit
'shortcut key to show the userform:
Public Const xdvKey As String = "%{RIGHT}"   'Alt+Down Arrow
'Public Const xdvKey As String = "{F12}"

'In a range with data validation (with List type)
'pressing ALT+RIGHT will show the Useform.
'To change the shortcut: change "%{RIGHT}". Refer to this article:
'https://docs.microsoft.com/en-us/office/vba/api/excel.application.onkey
'============================================================================================

So, for example, if you want to change shortcut key to F12, then change this part:
VBA Code:
Public Const xdvKey As String = "%{RIGHT}"   'Alt+Down Arrow
'Public Const xdvKey As String = "{F12}"

to this:
VBA Code:
'Public Const xdvKey As String = "%{RIGHT}"   'Alt+Down Arrow
Public Const xdvKey As String = "{F12}"

Save the project then restart Excel.

Note: the description says Alt+Down Arrow, it's wrong, it should be Alt+Right Arrow, but it won't affect the code.
 
Upvote 0
You can reassign a function key to Alt_Right

VBA Code:
Public Sub subMain()
 
  Application.OnKey "{F1}", "subAltRight"
     
End Sub

Public Sub subAltRight()

  Application.SendKeys ("^{Right}")

End Sub

Sub subReset()
 
  Application.OnKey "{F1}"
 
End Sub
Correction. % instead of ^.

VBA Code:
Option Explicit

Public Sub subMain()
  
  Application.OnKey "{F1}", "subAltRight"
      
End Sub

Public Sub subAltRight()

  Application.SendKeys ("%{Right}")

End Sub

Sub subReset()
  
  Application.OnKey "{F1}"
  
End Sub
 
Upvote 0
Thanks to both of you for a great solution, the major issue is if I try to apply this for my office purpose, I have to install the add-in to every user's system & all users don't use same version of office. it could be better if I could get a formula driven solution.
Apart from this I must give a BIG thanks to both of you from core of my heart.
 
Upvote 0
Try this:
Book1
ABCDE
1
2Master ListSeach ListSearch name:Jack
3Bruce LeeJackey ChangValidation Cell -> Jackey Chang
4Jackey ChangJack Maa
5Silvester Stalone
6Silva Arora
7Jack Maa
Sheet5
Cell Formulas
RangeFormula
B3:B4B3=FILTER(A3:A7,ISNUMBER(SEARCH(E2,A3:A7)),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
E3List=$B$3#
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,116
Members
453,021
Latest member
Justyna P

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