ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Post code lookup (https://www.excelbanter.com/excel-worksheet-functions/119964-post-code-lookup.html)

Paul Williams

Post code lookup
 
Is it poosible to use this look up table

B7 Bolton
CH56 Cheshire
HU7 Hull
600 of these


to add to the full post code to create this

B7 1QR Bolton
CH56 8SX Cheshire
HU7 9FG Hull
B7 2QR Bolton
CH56 5fX Cheshire
HU7 8SG Hull
19000 of these


Any help would be greatly appreciated.

Paul.



Pete_UK

Post code lookup
 
Do you mean that you currently have:

B7 1QR
CH56 8SX
HU7 9FG
B7 2QR
CH56 5FX
HU7 8SG
19000 of these

and you want to add the locations from your lookup table to another
column adjacent to the full postcode?

Pete

Paul Williams wrote:

Is it poosible to use this look up table

B7 Bolton
CH56 Cheshire
HU7 Hull
600 of these


to add to the full post code to create this

B7 1QR Bolton
CH56 8SX Cheshire
HU7 9FG Hull
B7 2QR Bolton
CH56 5fX Cheshire
HU7 8SG Hull
19000 of these


Any help would be greatly appreciated.

Paul.



Paul Williams

Post code lookup
 
Yes that is right. It looked ok when i pasted it in but looked like this
when i posted it to the group.

The B7 and Bolton are also seperate cells.


"Pete_UK" wrote in message
oups.com...
Do you mean that you currently have:

B7 1QR
CH56 8SX
HU7 9FG
B7 2QR
CH56 5FX
HU7 8SG
19000 of these

and you want to add the locations from your lookup table to another
column adjacent to the full postcode?

Pete

Paul Williams wrote:

Is it poosible to use this look up table

B7 Bolton
CH56 Cheshire
HU7 Hull
600 of these


to add to the full post code to create this

B7 1QR Bolton
CH56 8SX Cheshire
HU7 9FG Hull
B7 2QR Bolton
CH56 5fX Cheshire
HU7 8SG Hull
19000 of these


Any help would be greatly appreciated.

Paul.





Pete_UK

Post code lookup
 
OK, Paul, suppose your lookup table occupies G1 to H600, and that you
have your full postcode in column A from A1 to A19000. Put this formula
in B1:

=VLOOKUP(LEFT(A1,FIND(" ",A1)-1),G$1:H$600,2,0)

Adjust the ranges to suit your situation and then copy the formula down
- a quick way is to select B1 and then double-click the fill-handle
(the small black square in the bottom right corner of the cursor).

You can then (with the formula cells still highlighted) click <copy
then Edit | Paste Special | Values (check) OK and <Esc to fix the
values.

Hope this helps.

Pete

Paul Williams wrote:

Yes that is right. It looked ok when i pasted it in but looked like this
when i posted it to the group.

The B7 and Bolton are also seperate cells.


"Pete_UK" wrote in message
oups.com...
Do you mean that you currently have:

B7 1QR
CH56 8SX
HU7 9FG
B7 2QR
CH56 5FX
HU7 8SG
19000 of these

and you want to add the locations from your lookup table to another
column adjacent to the full postcode?

Pete

Paul Williams wrote:

Is it poosible to use this look up table

B7 Bolton
CH56 Cheshire
HU7 Hull
600 of these


to add to the full post code to create this

B7 1QR Bolton
CH56 8SX Cheshire
HU7 9FG Hull
B7 2QR Bolton
CH56 5fX Cheshire
HU7 8SG Hull
19000 of these


Any help would be greatly appreciated.

Paul.




Paul Williams

Post code lookup
 
Thanks very much Pete. Works fine.

Paul.


"Pete_UK" wrote in message
oups.com...
OK, Paul, suppose your lookup table occupies G1 to H600, and that you
have your full postcode in column A from A1 to A19000. Put this formula
in B1:

=VLOOKUP(LEFT(A1,FIND(" ",A1)-1),G$1:H$600,2,0)

Adjust the ranges to suit your situation and then copy the formula down
- a quick way is to select B1 and then double-click the fill-handle
(the small black square in the bottom right corner of the cursor).

You can then (with the formula cells still highlighted) click <copy
then Edit | Paste Special | Values (check) OK and <Esc to fix the
values.

Hope this helps.

Pete

Paul Williams wrote:

Yes that is right. It looked ok when i pasted it in but looked like this
when i posted it to the group.

The B7 and Bolton are also seperate cells.


"Pete_UK" wrote in message
oups.com...
Do you mean that you currently have:

B7 1QR
CH56 8SX
HU7 9FG
B7 2QR
CH56 5FX
HU7 8SG
19000 of these

and you want to add the locations from your lookup table to another
column adjacent to the full postcode?

Pete

Paul Williams wrote:

Is it poosible to use this look up table

B7 Bolton
CH56 Cheshire
HU7 Hull
600 of these


to add to the full post code to create this

B7 1QR Bolton
CH56 8SX Cheshire
HU7 9FG Hull
B7 2QR Bolton
CH56 5fX Cheshire
HU7 8SG Hull
19000 of these


Any help would be greatly appreciated.

Paul.





Pete_UK

Post code lookup
 
Glad to help - thanks for feeding back.

Pete

Paul Williams wrote:

Thanks very much Pete. Works fine.

Paul.


"Pete_UK" wrote in message
oups.com...
OK, Paul, suppose your lookup table occupies G1 to H600, and that you
have your full postcode in column A from A1 to A19000. Put this formula
in B1:

=VLOOKUP(LEFT(A1,FIND(" ",A1)-1),G$1:H$600,2,0)

Adjust the ranges to suit your situation and then copy the formula down
- a quick way is to select B1 and then double-click the fill-handle
(the small black square in the bottom right corner of the cursor).

You can then (with the formula cells still highlighted) click <copy
then Edit | Paste Special | Values (check) OK and <Esc to fix the
values.

Hope this helps.

Pete

Paul Williams wrote:

Yes that is right. It looked ok when i pasted it in but looked like this
when i posted it to the group.

The B7 and Bolton are also seperate cells.


"Pete_UK" wrote in message
oups.com...
Do you mean that you currently have:

B7 1QR
CH56 8SX
HU7 9FG
B7 2QR
CH56 5FX
HU7 8SG
19000 of these

and you want to add the locations from your lookup table to another
column adjacent to the full postcode?

Pete

Paul Williams wrote:

Is it poosible to use this look up table

B7 Bolton
CH56 Cheshire
HU7 Hull
600 of these


to add to the full post code to create this

B7 1QR Bolton
CH56 8SX Cheshire
HU7 9FG Hull
B7 2QR Bolton
CH56 5fX Cheshire
HU7 8SG Hull
19000 of these


Any help would be greatly appreciated.

Paul.





All times are GMT +1. The time now is 09:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com