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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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 :LOL:

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,215,432
Messages
6,124,856
Members
449,194
Latest member
HellScout

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