How to replace accented characters with regular characters in Excel?
Have you received some reports with accented characters in Microsoft Excel? It looks tedious to go through the whole workbook, and replace accented characters to regular ones manually, such as "û" to "u". And this article will introduce some tricky things to quickly replace accented characters with regular characters in Excel.
Excel Productivity Tools
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
For users who are experienced with Microsoft Excel, using VBA macro is an easy way to deal with this complicated work.
1. Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following macro in the Module Window.
Function StripAccent(thestring As String) Dim A As String * 1 Dim B As String * 1 Dim i As Integer Const AccChars= "ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðñòóôõöùúûüýÿ" Const RegChars= "SZszYAAAAAACEEEEIIIIDNOOOOOUUUUYaaaaaaceeeeiiiidnooooouuuuyy" For i = 1 To Len(AccChars) A = Mid(AccChars, i, 1) B = Mid(RegChars, i, 1) thestring = Replace(thestring, A, B) Next StripAccent = thestring End Function
3. Then go to a blank cell and paste the formula in a cell: =CheckStringCHAR(InString), for example =CheckStringCHAR("ù"), or =CheckStringCHAR(A2).
(1) Your Microsoft Visual Basic may not recognize accented characters at all, if it does not support Unicode. For example, when you paste the "š" in the Visual Basic, you may get "?". If so, this macro is not available.
(2) It does not replace accented characters in the strings of selected cell directly.
It requires too much skills and knowledge to use VBA macro. And the following method will help you work easier with only some clicks. Kutools for Excel's Replace Accented Characters tool makes it possible for you to replace all kinds of accented characters with regular characters easily at once.
1. Select the range in which you will replace all accented characters.
2. Click Kutools > Text > Replace Accented Characters…, see screenshot:
3. In Replace Accented Characters dialog box, click the Select all button to select all replace rules, and click the Ok button to replace all accented characters. see screenshot:
(1) If there are not some specific accented characters you want, you can click the Add rule button to add your own rules into the list box in above Replace Accented Characters dialog.
(2) You can customize new replacing rules in the Replace Accented Characters dialog box.
Now you will have all accented characters in strings of selected range converted to regular characters immediately. See screenshot:
Excel Productivity Tools
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 10 months agowhen you remove special character it also remove the space between the text ??
To post as a guest, your comment is unpublished.· 1 years agois it possible to replace multiple characters with another character? There is no way to say I want to replace Ã© by é
How can I do mass replacements like this in Kutools for Excel? I like the multireplace functionality but it would be a lot more useful if replacement of entire words would be possible. Anyboy any idea how I can do this?
To post as a guest, your comment is unpublished.
To post as a guest, your comment is unpublished.· 3 years agoHello,
Excellent Macro. Thanks for posting this. However I am wondering if I want to replace all of the characters in the excel file, how can I do that at once?
To post as a guest, your comment is unpublished.· 4 years agoOn the "Replace accented characters with regular characters with VBA" part, step 3, you must replace CheckStringCHAR for STRIPACCENT, which is the name of the function in the provided code!