Postcode Search

philb99

Active Member
Joined
Feb 3, 2014
Messages
410
Office Version
  1. 2013
Platform
  1. Windows
Hi - I have a member database >1000 in excel and wish to know how I can search for a number of different Postcodes for example B1, B23, CF16, DY9, DY16 SL5, AR6 and produce in a list, the name of the member and the Postcode.

Member Name is in Column F and Postcode in in Col K

With UK postcodes they can either start with one letter or two for example B1 or DY10 and the numbers could range from 1 to 99.

 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You could create a filter that only displays the requested postal code. The entire row will be shown. From there you can copy only the visible rows
and transfer that data to a separate worksheet (if this is desired).

Sound like a solution ?
 
Upvote 0
Many of the helpers here choose not to download files from other sites or, due to security restrictions at their workplace, are unable to download such files. You will generally get faster responses if you provide you small sample data directly in your post with XL2BB
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)

Is this the sort of thing you are after?

philb.xlsm
FKTUVW
1
2NamePost CodePostcodes of InterestNamePost Code
3Tony EvansB1 4XBB1Tony EvansB1 4XB
4Steve BrownB29 5RFB23Paul WillisDY13 4RF
5Paul WillisDY13 4RFCF16  
6John StoneDY1 5THDY9  
7DY13  
8SL5  
9AR6  
10  
11  
Sheet1
Cell Formulas
RangeFormula
V3:V11V3=IFERROR(INDEX(F:F,AGGREGATE(15,6,ROW(F$3:F$11)/ISNUMBER(MATCH(LEFT(K$3:K$11,FIND(" ",K$3:K$11)),U$3:U$9&" ",0)),ROWS(V$3:V3))),"")
W3:W11W3=IF(V3="","",VLOOKUP(V3,F$3:K$11,6,0))
 
Upvote 0
Solution
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

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