Delete "?" from text

SimonHughes

Well-known Member
Joined
Sep 16, 2009
Messages
507
Office Version
  1. 365
Platform
  1. Windows
Hello, I download reports into Excel where an apostrophe (') is returned as a question mark (?) which results in the word men's showing as men?s
I would like to replace but using the Replace function just deletes all of the text. Can anyone give me a solution to this?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Book1.xlsb
HIJ
2
3men?smen's
4
Sheet5
Cell Formulas
RangeFormula
J3J3=SUBSTITUTE(I3,"?","'")
 
Upvote 0
or this if you have a lot of rows to save copying down:

Excel Formula:
=BYROW(I3:I8,LAMBDA(row,SUBSTITUTE(row,"?","'")))
 
Upvote 0
Try using Replace dialog box.
In Find What field type ~?
In Replace What field type '
 
Upvote 0
Solution
You can use tilde sign in front of the ? in the Find what box like ~? and then the find and replace will work
 
Upvote 0
Book1.xlsb
HIJ
2
3men?smen's
4
Sheet5
Cell Formulas
RangeFormula
J3J3=SUBSTITUTE(I3,"?","'")
Yes, this works perfectly thanks. I see a different solution below which is what I will use in this instance, but thank you for replying, appreciated!
 
Upvote 0
Yes, this works perfectly thanks. I see a different solution below which is what I will use in this instance, but thank you for replying, appreciated!
youre welcome, thanks for feedback.

Rob
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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