=SUBSTITUTE(A1,B1, "~") ignore accents?

Windy Skies

New Member
Joined
Dec 27, 2012
Messages
47
Hi,

I have the two left columns. Note the accents in the columns, which are often not the same between columns 1 & 2. (I could delete the accents in column 1 but not column 2). My desired result is in column 3. Is this possible?

aìyīnsītǎntā zìrán búshì àiyīnsītǎn.tā zìrán búshì ~.
àibùshìshǒutā duì nàtái bǐjìběndiànnǎo àibúshìshǒu.tā duì nàtái bǐjìběndiànnǎo ~.

<tbody>
</tbody>
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Please clarify... are you always replacing the LAST word with the tilde symbol as your two examples show?
 
Upvote 0
Nope. Thanks for your reply.

Okay then, are you replacing just the word you are looking up with the tilde leaving the text following it (when there is text following it) alone or are you replacing all text from the word you are looking up to the end of the text with the tilde?
 
Upvote 0
Some other examples (without the accents):

airenwo de airen zai jiawo de ~ zai jia
wota he wo bu zai jiata he ~ bu zai jia

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Column 1 is a word that can occur anywhere in column 2 (an example sentence). I would like to replace only the word, nothing else.
 
Upvote 0
I think the op is asking for something like this:
<b>Sheet1</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:89px;" /><col style="width:226px;" /><col style="width:267px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >aìyinsitan</td><td >ta zìrán búshì àiyinsitan</td><td >ta zìrán búshì ~</td></tr></table> <br /><br /><span style="font-family:Arial; font-size:9pt; font-weight:bold;background-color:#ffffff; color:#000000; ">Excel tables to the web >> </span>

The word has to be replaced even though the accent marks don't match. Is this what you are after?
 
Upvote 0
I think it will take a little VBA to do this, is there any way you can supply a list of all the characters that would have these accents?
 
Upvote 0
Thanks for your reply.

I think this is all of them. If you're interested, these are the 5 tones of Chinese pinyin (the 5th is neutral and without a mark).

āáǎàa
ēéěèe
īíǐìi
ōóǒòo
ūúǔùu
ǖǘǚǜü

The file has some 40k rows.
 
Upvote 0

Forum statistics

Threads
1,216,503
Messages
6,131,020
Members
449,615
Latest member
Nic0la

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