UK Address Validation

cornelce

New Member
Joined
Jun 21, 2022
Messages
4
Office Version
  1. 2021
Platform
  1. MacOS
I have a list of UK addresses. Some are full, some are missing the postcode, some are missing the city name, but all are valid -- if you copy and paste the address into Google, they can all be found and are correct.

The current formatting only has spaces. No commas.

I am looking for a quick way to import all 25,000 lines and export in the correct (new) format.

Please take a look at the attached screenshot as that will make a lot of sense.

High quality screenshot: screenshot-5.jpg

Any and all help would be appreciated, thank you.
 

Attachments

  • screenshot-3.jpg
    screenshot-3.jpg
    126.7 KB · Views: 50

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Excel add ins and/or peripheral software recommendations accepted too. Thank you in advance.
 
Upvote 0
The honest answer, if you want something quick and easy is to use one of the many online services that offer this. Most are paid for but are relatively cheap - whilst this may look like a simple problem, it is very very difficult - it's why services that off this are typically chargeable

I've used Loqate before, but their pricing can be a bit opaque, but you could try something like: Address Validation Free tool | Geoapify
 
Upvote 0
Unfortunately their formatting is not all that accurate, the output is a bit off.

I wondered if my spreadsheet could be section off. So the postcode separated. Then removed from column A.

Then all individual words separated into columns, but somehow have the output going from right-to-left. This is the bit I struggle with.

Capitalising only the first letter of each word (not for the postcode column).

Then merging again, with commas, in the correct format?
 
Upvote 0
No, it's not possible without a 3rd party database like the ones I mentioned above. Your best best would be to use one of the services above to separate the address parts and then put them back together to match your requirements.

Getting the postcode is the easy bit. However, taking an example from your spreadsheet, a computer wouldn't know whether the below:
VBA Code:
FLAT 15 THE CHILTERNS GROVE HILL SOUTH WOODFORD LONDON
Separates as any of the below:
VBA Code:
FLAT 15 THE CHILTERNS GROVE, HILL SOUTH, WOODFORD LONDON
FLAT 15 THE CHILTERNS, GROVE HILL, SOUTH WOODFORD LONDON
FLAT 15 THE CHILTERNS GROVE HILL, SOUTH WOODFORD, LONDON
You need to be able to break the address apart and then compare against a broken apart properly formatted PAF file, to know how to rebuild it.
 
Upvote 0

Forum statistics

Threads
1,222,206
Messages
6,164,582
Members
451,905
Latest member
quauq

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