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.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Select the column and press Ctrl + H
then replace "," with "" then replace all (without the quotatiosn)

Test it on the copy of your workbook.
 
Upvote 0
Then how about integrating

SUBSTITUTE(yourcell, ",", "") into your next column formula?

If you need help integrating it, post your formula here.
 
Upvote 0
I have the columns set up.

for example:
1 McCallum Drive Richmond Hill,, ON L4C 7T3

there is an extra comnma in this one along with many others and I need a way to be able to remove them without doing it mannually.

Also this example
7, Rue Longtin, #6 Saint-Constant, Que. J5A 1C4

it has 3 extra commas.
 
Upvote 0
Yes... =SUBSTITUTE (yourcell, ",", "") replaces all the occurrences of "," with "" in yourcell. However, the values of the inputs will not change meaning you will not permanently destroy the data and It is not doing it manually.

Try creating a helper column and type
=SUBSTITUTE(yourcell, ",", "") and drag down.
then see for yourself.
 
Upvote 0
Let me see if I'm reading you question correctly: In your addressing information do you want ONLY the commas that precede the Province abbreviation?
 
Upvote 0
How about =SUBSTITUTE(A1, ",,", ",")
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,673
Members
452,937
Latest member
Bhg1984

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