Find and Replace Strings

Dave_Holland

New Member
Joined
Apr 10, 2014
Messages
2
Hi All,

I'm trying to carry out a find and replace type function with a table of postcodes and internal company identifier codes. Basically I would like the user to be able to type in the postcode in a workbook (rather than using ctrl+F and then manually doing it) and then in the next column along it auto-populates the internal identifier. The sample table is below, the table I imagine would have to be located somewhere in the workbook?

I would greatly appreciate any help as so far as simple '=FIND' '=SEARCH' of course don't work.

Thanks in advance

Dave

AB1 173
AB1 272
AB1 473
AB1 573
AB1 673
AB1 873
AB1072
AB10 173
AB10 273
AB10 673



<colgroup><col style="width: 48pt;" span="2" width="64">
<tbody>


</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
With your data in A1:b10, and the code you want to lookup in E3

=INDEX(B1:B10,MATCH(E3,A1:A10,0))
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

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