+ Reply to Thread
Results 1 to 11 of 11

Formula to use in conjunction with UPPER to convert accented letters to non-accented

  1. #1
    Forum Contributor
    Join Date
    08-22-2013
    Location
    USA
    MS-Off Ver
    MS Office for Office 365 (Latest - 32-bit)
    Posts
    107

    Formula to use in conjunction with UPPER to convert accented letters to non-accented

    I have sheet full of names that look like this:

    Please Login or Register  to view this content.
    I would like to see if there is a formula that can convert these names to this:

    Please Login or Register  to view this content.
    I know I can use UPPER for getting them to uppercase, but what about converting the accented and other foreign characters to standard characters.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Formula to use in conjunction with UPPER to convert accented letters to non-accented

    Given the number of potential substitutes I don't think it's really feasible via formula -- there are User Defined Functions (UDF) published online that would do this, to extent character set supported, e.g.:

    https://www.extendoffice.com/documen...haracters.html

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula to use in conjunction with UPPER to convert accented letters to non-accented

    That one didn't work (for me) with all of the characters in the sample provided...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula to use in conjunction with UPPER to convert accented letters to non-accented

    Try this "brute force and ignorance" approach. I woudn't have attempted to set this up myself, if it hadn't been partly available online

    http://howtouseexcel.net/excel-formu...ted-characters

    I just added on a few more to cover those not already included.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-22-2013
    Location
    USA
    MS-Off Ver
    MS Office for Office 365 (Latest - 32-bit)
    Posts
    107

    Re: Formula to use in conjunction with UPPER to convert accented letters to non-accented

    Quote Originally Posted by Glenn Kennedy View Post
    Try this "brute force and ignorance" approach. I woudn't have attempted to set this up myself, if it hadn't been partly available online

    http://howtouseexcel.net/excel-formu...ted-characters

    I just added on a few more to cover those not already included.
    Hi Glenn. Thanks for that file!! I do have one issue though. When I try to copy your formula from your file to mine, it replaces some of the special characters in your formula with a question mark. Any ideas what could be going on here? I'm on the latest version of Excel 2016. Perhaps a difference in settings between our Excels?

  6. #6
    Forum Contributor
    Join Date
    08-22-2013
    Location
    USA
    MS-Off Ver
    MS Office for Office 365 (Latest - 32-bit)
    Posts
    107

    Re: Formula to use in conjunction with UPPER to convert accented letters to non-accented

    Glenn - I am realizing that there still a TON of characters missing (my list is about 5k names and I only presented a sample set here). I think I'm going to have to approach this with VBA as opposed to a formula. Thanks for your help.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula to use in conjunction with UPPER to convert accented letters to non-accented

    No problem... except that you might still have a problem. My first approach was to use the VBA approach in Post 2. I couldn't get some of your special characters into the VBA.... even though they pasted perfectly into Excel itself. It's something to do with the installed character sets... I know a bit about Excel but nothing about PCs.

    If it doesn't work.... TIO TIO. Turn it off. Turn it on.

    IF you do get a VBA solution, it's be nice if you posted it here, for my education and the benefit of others....

  8. #8
    Forum Contributor
    Join Date
    08-22-2013
    Location
    USA
    MS-Off Ver
    MS Office for Office 365 (Latest - 32-bit)
    Posts
    107

    Re: Formula to use in conjunction with UPPER to convert accented letters to non-accented

    Hi Glenn, thanks again. So I ended up having one of my devs do this in .NET using some of the framework's off-the-shelf normalization functions, and working it in a database table instead. This seemed to cover everything except a couple Nordic characters. I understand there is a .Net package out there called UniDecode that can handle those as well. We skipped over those for now as we got the majority of them.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,007

    Re: Formula to use in conjunction with UPPER to convert accented letters to non-accented

    As this is a public forum, it would be helpful to others if you would share the .NET solution you came up with. Thanks!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Contributor
    Join Date
    08-22-2013
    Location
    USA
    MS-Off Ver
    MS Office for Office 365 (Latest - 32-bit)
    Posts
    107

    Re: Formula to use in conjunction with UPPER to convert accented letters to non-accented

    Quote Originally Posted by AliGW View Post
    As this is a public forum, it would be helpful to others if you would share the .NET solution you came up with. Thanks!
    Ali, hi, absolutely - I didn't think it would apply since this is an Excel-centric forum, and we decided to go a non-Excel route, but sure thing:

    So what we did was take our list of names and load them into a SQL Server database table.

    Then he built a small console app using this code:
    Please Login or Register  to view this content.
    After that, we added the information about the Server, database, table name, and column names to the app.config and ran the program. It iterated over a list of 200k+ names in less than 2 seconds and normalized them.

    Then we simply exported the normalized names back into Excel.

    Hope this can help someone trying to accomplish the same.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,007

    Re: Formula to use in conjunction with UPPER to convert accented letters to non-accented

    Thank you.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Accented Characters Search
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2018, 01:31 PM
  2. Accented to Non Accented and Non Accented to Accented mapping
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2018, 04:00 PM
  3. [SOLVED] How to ignore accented characters in a string
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-17-2017, 01:36 AM
  4. Entering accented letter in Mac Excel
    By Gungaabayar in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 10-22-2016, 07:19 PM
  5. accented character problem
    By danuk76 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2015, 01:19 PM
  6. [SOLVED] Conditional replace accented characters with non-accented ones
    By greek in forum Word Programming / VBA / Macros
    Replies: 15
    Last Post: 04-22-2014, 09:41 PM
  7. Sort on accented (French) characters
    By greek in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-30-2011, 06:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1