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;

[TABLE="width: 500"]
<tbody>[TR]
[TD]Column 1[/TD]
[TD]Column 2[/TD]
[TD]Column 3[/TD]
[TD]Column 4[/TD]
[/TR]
[TR]
[TD]Location number[/TD]
[TD]Location Name[/TD]
[TD]Number name[/TD]
[TD]Number[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Bristol[/TD]
[TD]Main[/TD]
[TD]012010304785[/TD]
[/TR]
[TR]
[TD]1235[/TD]
[TD]Bristol[/TD]
[TD]Secondary[/TD]
[TD]012035422524[/TD]
[/TR]
[TR]
[TD]1236[/TD]
[TD]Bristol[/TD]
[TD]Emergency[/TD]
[TD]012035487204[/TD]
[/TR]
[TR]
[TD]1245[/TD]
[TD]Manchester[/TD]
[TD]Main
[/TD]
[TD]016145685243[/TD]
[/TR]
[TR]
[TD]1246[/TD]
[TD]Manchester[/TD]
[TD]Secondary[/TD]
[TD]016146484125[/TD]
[/TR]
[TR]
[TD]1247[/TD]
[TD]Manchester[/TD]
[TD]Emergency[/TD]
[TD]016124554541[/TD]
[/TR]
[TR]
[TD]1256[/TD]
[TD]Leeds[/TD]
[TD]Main[/TD]
[TD]034554848424[/TD]
[/TR]
[TR]
[TD]1257[/TD]
[TD]Leeds[/TD]
[TD]Secondary[/TD]
[TD]034562545485[/TD]
[/TR]
[TR]
[TD]1258[/TD]
[TD]Leeds[/TD]
[TD]Emergency[/TD]
[TD]034565848155[/TD]
[/TR]
</tbody>[/TABLE]

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.

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Location Code[/TD]
[TD]1247[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Secondary[/TD]
[TD]016146484125
[/TD]
[/TR]
</tbody>[/TABLE]

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[TABLE="width: 500"]
<tbody>[TR]
[TD]016146484125[/TD]
[/TR]
</tbody>[/TABLE]
</body>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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