remove ' from exported data

hawilder

New Member
Joined
Sep 1, 2010
Messages
27
Hello -

I have an excel spreadsheet with data that was exported from a database and all the fields have ' (apostrophe) in front of them. I need to remove this character from the last name and first name columns so I can consolidate them with 6 other spreadsheets (I've found that some of the names are duplicates on these sheets once they were all merged together the ' prevents the "remove dups" function from working -- only one of the spreadsheets has this so duplicate names show up when Ido remove dups.)

this is what it looks like.. I've tried everything i know possible

LName
'Smith
'Wilder
'Goon

Any help is much appreciated.... :confused::eeek::nya::biggrin:
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Select all the names. Press ctrl + h. In the dialog box that opens type ' in the Find What field and leave Replace With field empty. Click Replace All.
 
Upvote 0
Take these steps and one of these methods should work.

From your worksheet, press Alt+F11 (careful, that's ALT + F11) which will take you to the Visual Basic Editor. Next, press Ctrl+G which will take your cursor into the Immediate Window.

Where the cursor is flashing, follow these steps:

Type in or paste this...
ActiveSheet.UsedRange.Value = ActiveSheet.UsedRange.Value
...and hit the Enter key.

Type in or paste this...
ActiveSheet.UsedRange.Replace what:=Chr(145), Replacement:=""
...and hit the Enter key.

Type in or paste this...
ActiveSheet.UsedRange.Replace what:=Chr(146), Replacement:=""
...and hit the Enter key.

Type in or paste this...
ActiveSheet.UsedRange.Replace what:=Chr(180), Replacement:=""
...and hit the Enter key.


Finally, press Alt+Q and see if those apostrophe-looking characters are gone.

The apostrophe character is ascii #39 and not a good idea to replace with nothing, as it will change text such as "It's Mom's and Dad's Anniversary" to "Its Moms and Dads Anniversary".
 
Last edited:
Upvote 0
Hello -

I have an excel spreadsheet with data that was exported from a database and all the fields have ' (apostrophe) in front of them. I need to remove this character from the last name and first name columns so I can consolidate them with 6 other spreadsheets (I've found that some of the names are duplicates on these sheets once they were all merged together the ' prevents the "remove dups" function from working -- only one of the spreadsheets has this so duplicate names show up when Ido remove dups.)

this is what it looks like.. I've tried everything i know possible

LName
'Smith
'Wilder
'Goon

Any help is much appreciated.... :confused::eeek::nya::biggrin:

How about Data\Text-To-Columns\Delimited\Other '
 
Upvote 0

Forum statistics

Threads
1,224,543
Messages
6,179,429
Members
452,914
Latest member
echoix

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