Add a space into UK postcodes

hayleym

New Member
Joined
Jul 17, 2014
Messages
2
Hi everyone,

I am currently working on a list that contains 9k UK addresses. The postcodes are in the following format (no space):

B11LT
&
B120LD

As you can see that there is no set pattern with the amount of characters.

A postcode will always ends with 3 characters (number, letter, letter). Using this info, is there a way I can add the space in to all 9k postcodes?

All responses will be greatly appreciated
Hayley
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi Guys,

Both work perfectly!!

Thank you so much for your prompt replies, very much appreciated!!

Hayley
 
Upvote 0
Try

=LEFT(A1,LEN(A1)-3)&" "&RIGHT(A1,3)

Welcome to the MrExcel board!

Also ..

=REPLACE(A1,LEN(A1)-2,0," ")
a lot has happened in the years since Special-K99 and Peter_SSs posted these solutions, did they know that eight years in the future, someone facing an all night session of manually editing an endless list of postcodes would have hours saved and the gift of sleep, as a result of their helpful posts. thanks so much!
 
Upvote 0
@dsharp7th
Welcome to the MrExcel board!
Glad that this was still help to somebody. Thanks for letting us know. :biggrin:
 
Upvote 0

Forum statistics

Threads
1,222,194
Messages
6,164,508
Members
451,900
Latest member
lamski

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