Replace hex characters with readable ones

opislak

Board Regular
Joined
Feb 28, 2017
Messages
68
Hi all,

From "Page Source Code" in Sharepoint, I can copy a list of names of users. However, in that list, special characters like accented ones in french, are put in hex code.
I know the formula "substitute", but as the characters may vary, I would like a generic formula to replace them.

e.g.:
O'Toole --> replace by O'Toole
Gérard --> replace by Gérard
François --> replace by François
Jerôme --> replace by Jerôme
etc.

Thanks for helping me out.
Patrick.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Perhaps like this ?

=IFERROR(IF(FIND("&#",A1)>=0,LEFT(A1,FIND("&#",A1)-1)&CHAR(MID(A1,FIND("&#",A1)+2,FIND(";",A1)-FIND("&",A1)-2))&MID(A1,FIND(";",A1)+1,100)),A1)

There may be better ways of doing this . . .
 
Upvote 0
Solution
FWIW these are "special" characters in html.


I suspect that you'd need to do some sort of lookup -- after setting up a table of expected values -- to get the correct character in Windows/Excel?
 
Upvote 0
Hi, if you want to understand the formula better, you can use Excel's Formula Evaluation tool to step through the various stages of the formula - that might be interesting for you, to try it with a few different input values.
 
Upvote 0

Forum statistics

Threads
1,215,147
Messages
6,123,297
Members
449,095
Latest member
Chestertim

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