Code returns '63'. Looks like hyphen. Formula or VBA to Find/Replace

MikeL

Active Member
Joined
Mar 17, 2002
Messages
488
Office Version
  1. 365
Platform
  1. Windows
Hi,
I did a PDF to Excel conversion on Last Names. Some names have what appear to be hyphens which is expected. (ie Zeta-Jones).
But turns out a find and replace in Excel doesn't recognized this as a hyphen. I ran a Code function on the cell and which resulted in '63'.
How to Find/Replace with a true hyphen when I dont know what the symbol is that I am finding other than the Code resulting in 63 and it looking like a hyphen?

Thanks in advance.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Try in the Find box press and hold the Alt key and on the NUMERIC keypad, enter 0063 and in your replace just type your standard hyphen.

It must be entered on the NUMERIC keyboard and not the numbers running along the top.
 
Upvote 0
If Mark's approach doesn't work for you, try using a formula like this (assumes you have a character 63 in cell A2):

=SUBSTITUTE(A2,CHAR(63),CHAR(45))
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,681
Members
449,048
Latest member
81jamesacct

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