+ Reply to Thread
Results 1 to 5 of 5

How to eliminate rows with foreign text characters ?

  1. #1
    Registered User
    Join Date
    09-28-2010
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    86

    How to eliminate rows with foreign text characters ?

    Hi, people,

    Using Excel 2007,
    I have one column of about 1500 people's first names.
    Some include foreign characters, like the "e" with a slant over it.
    I want to eliminate/delete all rows that have anything except
    abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
    in them. How to do that, please?

    Thanks.

    Mark53
    Last edited by Mark53; 05-18-2011 at 05:36 PM. Reason: clarification

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to eliminate rows with foreign text characters ?

    Possibly:

    In a new column try formula:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER, where A2 contains first original string.


    Copy down.

    Then filter this column through Data|Filter|Autofilter for TRUE and delete those rows.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-28-2010
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: How to eliminate rows with foreign text characters ?

    Thanks for the reply, NBVC, but it ain't workin'.
    They All come up as TRUE.
    The names are in Column D, starting in Row 1, so I put D1 twice in your formula instead of A2.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to eliminate rows with foreign text characters ?

    Try:

    =OR(ISNA(MATCH(MID(UPPER(D1),ROW(INDIRECT("1:"&LEN(D1))),1),CHAR(ROW(INDIRECT("65:90"))),0)))

    confirmed with CTRL+SHIFT+ENTER

    This assumes one word in each cell....

    If there are spaces you want to ignore then...

    =OR(ISNA(MATCH(MID(UPPER(SUBSTITUTE(D1," ","")),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(D1," ","")))),1),CHAR(ROW(INDIRECT("65:90"))),0)))
    Last edited by NBVC; 05-18-2011 at 05:02 PM.

  5. #5
    Registered User
    Join Date
    09-28-2010
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: How to eliminate rows with foreign text characters ?

    I have Very little understanding of that formula, but It WORKed !
    THANKS Very Much. NBVC.
    I couldn't do the "Data|Filter" thing, so I just Sorted that column.
    All is well. Life is good. There is peace on earth. OK,... not really.

    Thanks.

    Mark53

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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