Formula to find closest match

p4nny

Board Regular
Joined
Jan 13, 2015
Messages
246
Hi,

I would like a "lookup" formula that would return the best possible match. (closest match)

Example

lookup_value - "BUILDING 421" ???

Array

column a column b
BUILDING 451 Manchester
BUILDING 361 Manchester
BUILDING 201 Manchester
BUILDING 108 Manchester
Office 12 Liverpool
Office 328 Liverpool
Office 214 Liverpool

I would like the lookup to return "Manchester" in this case.

Hope this is clear.

Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
What would you like for

Code:
[TABLE="width: 141"]
<tbody>[TR]
[TD]BUILDING 451[/TD]
[TD]Manchester[/TD]
[/TR]
[TR]
[TD]BUILDING 411[/TD]
[TD]Manchester[/TD]
[/TR]
[TR]
[TD]BUILDING 201[/TD]
[TD]Manchester[/TD]
[/TR]
[TR]
[TD]BUILDING 108[/TD]
[TD]Manchester[/TD]
[/TR]
[TR]
[TD]Office 12[/TD]
[TD]Liverpool[/TD]
[/TR]
[TR]
[TD]Office 328[/TD]
[TD]Liverpool[/TD]
[/TR]
[TR]
[TD]Office 214[/TD]
[TD]Liverpool[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,846
Members
449,471
Latest member
lachbee

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