convert special charatters

macro001

New Member
Joined
Sep 11, 2016
Messages
46
Hi
I have some data with special charatters like this:
all& # 039;
(without spaces)

I like to convert this in
all'

how do this?
thx
 
Last edited:

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Do all cells contain exactly all& # 039; ? Or is there some other form of consistency in the cells values?

If I understand correctly, you want to remove the special characters and replace them for a single '.
 
Last edited:
Upvote 0
Macro001


Check if this formula is what you want


=MID(REPLACE(A1,LARGE(IF(CODE(MID(UPPER(A1)&REPT(" ",1000),LIN($1:$1000),1))>64,IF(CODE(MID(UPPER(A1)&REPT(" ",1000),LIN($1:$1000),1))<91,LIN($1:$1000))),1)+1,1000,""),SMALL(IF(CODE(MID(UPPER(A1)&REPT(" ",1000),LIN($1:$1000),1))>64,IF(CODE(MID(UPPER(A1)&REPT(" ",1000),LIN($1:$1000),1))<91,LIN($1:$1000))),1),1000)




Decio
 
Upvote 0
I'm confused about exactly what the data is.

Do you have a text string that includes the & # and ; characters.

If your data is in A1 does =CODE(A1,3,1) return 38 ?
 
Upvote 0
thx for answer
but im use excel in italian and i not find translation of LIN($1:$1000) what is this?
 
Upvote 0
Try using this formula, if you have multiple special characters, it may need to be dragged right

=IFERROR(REPLACE(A1,FIND("&#",A1),6,CHAR(MID(A1,FIND("&#",A1)+2,3))), A1&"")
 
Upvote 0
I'm confused about exactly what the data is.

Do you have a text string that includes the & # and ; characters.

If your data is in A1 does =CODE(A1,3,1) return 38 ?
HI
you know this charatters like this & ' and other , but in my csv i have some like this
& # 039 (without spacing) and other
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,016
Members
448,936
Latest member
almerpogi

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