Removing specific characters from a cell?

Mr2017

Well-known Member
Joined
Nov 28, 2016
Messages
644
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I've got dozens of cells where I need to remove the apostrophe and the '-' in the cell in order to make the data compatible with another system.

Eg if the cell A1 had the text

Goodfella's Greatest-Ever

I'd want to use a formula in B1 that removes the apostrophe and the dash.

Does anyone know how to do this, please?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi Tom

No, I hadn't, as I'm not sure how to use it in this case?
 
Upvote 0
Hi Special K-99

Thanks for posting that solution.

When I tried it, however, I got a "#NAME?" error?
 
Upvote 0
Hi Special K-99

Thanks for posting that solution.

When I tried it, however, I got a "#NAME?" error?
He has a typo. The first word should be SUBSTITUTE, not SUBSTITUE.
 
Last edited:
Upvote 0
=SUBSTITUE(SUBSTITUTE(A1,"'",""),"-","")

red should be SUBSTITUTE :laugh:

edit:

too late ;)
 
Last edited:
Upvote 0
Ok, thanks Joe - it works now.
 
Last edited:
Upvote 0
Thanks Special K-99 - it worked after adding the T before the E and after the U in the first 'Substitute' word.

Thanks again for posting this.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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