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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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,224,828
Messages
6,181,204
Members
453,022
Latest member
RobertV1609

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