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

MikeL

Active Member
Joined
Mar 17, 2002
Messages
441
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.
 

Some videos you may like

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

MARK858

MrExcel MVP
Joined
Nov 12, 2010
Messages
13,978
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
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.
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,414
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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))
 

Watch MrExcel Video

Forum statistics

Threads
1,127,594
Messages
5,625,693
Members
416,127
Latest member
MALEPINZON

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
Top