Search box

trevolly

Board Regular
Joined
Aug 22, 2021
Messages
120
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I'm wondering if it possible to have a worksheet (source) in my workbook that will have a long list of contact names in one column and then the contacts phone number in the next column.... then in a cell on a different worksheet apply the ability to type the contacts name and whilst typing this name, excel search the source worksheet and start to list results and their phone number?

I've been searching online but not sure of the function or ability to find any guides..

Thanks all.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
You can return this is as a list, or you can data validate the name results into a Drop down for selection.

It's easier if you convert your source data into an excel table "Contacts", then highlight all names & numbers of the table can give name range "Output"

This will dynamically update as you add new contacts to your source list

Search box_trevolly.xlsx
ABC
1Last NameNumberSearch
2Tony Stark4006243231
3Steve Rogers4006243241
4Chris Hemsworth.4006243251
5Natasha Romanoff4006243261
6Bruce Banner400624327 
7Clint Barton400624328 
8Josh Brolin.4006243291
9Scott Lang4006243301
10Robert Downey Jr.400624331 
11Chris Evans.4006243321
12Scarlett Johansson.4006243331
13Mark Ruffalo.400624334 
14Jeremy Renner.400624335 
15Paul Rudd.400624336 
Source
Cell Formulas
RangeFormula
C2:C15C2=IF(ISNUMBER(SEARCH(Search!$C$3,[@[Last Name]])),1,"")
Named Ranges
NameRefers ToCells
Output=Contacts[[Last Name]:[Number]]C2


Search box_trevolly.xlsx
BC
3SearchS
4
5NameNumber
6Tony Stark400624323
7Steve Rogers400624324
8Chris Hemsworth.400624325
9Natasha Romanoff400624326
10Josh Brolin.400624329
11Scott Lang400624330
12Chris Evans.400624332
13Scarlett Johansson.400624333
Search
Cell Formulas
RangeFormula
B6:C13B6=FILTER(Output,Contacts[Search]=1)
Dynamic array formulas.
Named Ranges
NameRefers ToCells
Output=Contacts[[Last Name]:[Number]]B6:C13
 
Upvote 0
Solution

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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