address Cleaning / Standardization

Welsh Mark3

Board Regular
Joined
Apr 7, 2014
Messages
164
Office Version
  1. 365
I have a file of about 2500 companies, however, the addresses are very badly formatted. There are no real defined column names such as address line 1, city state zip. In many cases the data is spread over many columns and if some cases repeated.

I would like to create an output where these addresses are cleaned and Standardized.

Does anyone have any recommendations? I don't think I'm going to find a perfect solution as the data is very bad, but it If can improve the structure it will be a great help. I also understand it's difficult to fully understand the data without seeing it. Is it possible to import a file to this forum?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Does anyone have any recommendations? I don't think I'm going to find a perfect solution as the data is very bad, but it If can improve the structure it will be a great help. I also understand it's difficult to fully understand the data without seeing it. Is it possible to import a file to this forum?
You are correct. It will be very difficult to come up with a fool-proof solution. There are just too many variations and "exceptions to the rule" (the same is true for parsing name into first and last name, given that people can have a multiple-word first name or last name).

Typically, what I try to do is come up with "rules" that handle most of the cases (I typically like to be at least 90%), and handle the rest manually. So the key here is to come up with those rules (in plain English). It is largely dependent on what the data looks like and how it is entered.

If you can come up with those rules, post them here and we will help you write what you need. If you aren't sure what the rules should be, please post a sampling of data that covers as many as the common variations as possible. You cannot upload files to this site. But there are tools you can use to post screen images. They are listed in Section B of this link here: http://www.mrexcel.com/forum/board-a...forum-use.html. Also, there is a Test Here forum on this board that you can use to test out these tools to make sure they are working correctly before using them in your question.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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