faster way to clean up a database?

samanthamcleish

New Member
Joined
May 16, 2011
Messages
4
I am trying to clean up a data base and was wondering if you knew a faster way to do it. The addresses have extra commas which doesnt allow the address to show in the next column properly until the comma is removed.
 
note that the 15 in the 2nd formula assumes that the state/zipcode (or whatever you call it in canada) are roughly fixed in length. you should change that number to what makes sense. hope it helps some.
Excel Workbook
BC
31 McCallum Drive Richmond Hill,, ON L4C 7T31 McCallum Drive Richmond Hill, ON L4C 7T3
47, Rue Longtin, #6 Saint-Constant, Que. J5A 1C47 Rue Longtin #6 Saint-Constant, Que. J5A 1C4
Sheet2
Excel 2007
Cell Formulas
RangeFormula
C3=SUBSTITUTE(B3,",,",",")
C4=SUBSTITUTE(LEFT(B4,FIND(",",B4,LEN(B4)-15)-1),",","") &","& RIGHT(B4,LEN(B4)-FIND(",",B4,LEN(B4)-15))
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,224,585
Messages
6,179,703
Members
452,938
Latest member
babeneker

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