Finding Data in a Table Using Multiple search Criteria

Redlad91

New Member
Joined
Sep 29, 2015
Messages
11
Office Version
  1. 365
Hi,

I am looking to create a document which can find a specific bit of information based on multiple criteria.

Currently i have a function which looks at a table for a Specific phone number, What i want to do is pull more a number based on a location code and the name of the number for example see below;

Column 1Column 2Column 3Column 4
Location numberLocation NameNumber nameNumber
1234BristolMain012010304785
1235BristolSecondary012035422524
1236BristolEmergency012035487204
1245ManchesterMain
016145685243
1246ManchesterSecondary016146484125
1247ManchesterEmergency016124554541
1256LeedsMain034554848424
1257LeedsSecondary034562545485
1258LeedsEmergency034565848155

<tbody>
</tbody>

For the formula to work i want to be able to put in a location number in a box, and then the detail is given depending on the number i want i.e.

12
ALocation Code1247
BSecondary016146484125

<tbody>
</tbody>

The location code is a free form box so any number can be entered in here, the Number name is already on the sheet, I just want them to both be used and enter the number in the b2 box.

Currently for a single criteria search i am using - =IF(B2="","",(INDEX(Sheet3!F:F,MATCH("*"&B2&"*",Sheet3!A:A,))))

Any help would be appreciated but let me know if i haven't explained it that well
****** id="cke_pastebin" style="position: absolute; top: 410.4px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">Cui
016146484125

<tbody>
</tbody>
</body>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
try


Book1
ABCD
1Location numberLocation NameNumber nameNumber
21234BristolMain12010304785
31235BristolSecondary12035422524
41236BristolEmergency12035487204
51245ManchesterMain16145685243
61246ManchesterSecondary16146484125
71247ManchesterEmergency16124554541
81256LeedsMain34554848424
91257LeedsSecondary34562545485
101258LeedsEmergency34565848155
11
12
13Location Code1247
14Secondary16146484125
Sheet3
Cell Formulas
RangeFormula
B14{=INDEX(D2:D10,MATCH(INDEX(B2:B10,MATCH(B13,A2:A10,0))&A14,B2:B10&C2:C10,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,606
Messages
6,125,800
Members
449,261
Latest member
Rachel812321

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