+ Reply to Thread
Results 1 to 6 of 6

Getting rid of unwanted characters

  1. #1
    Registered User
    Join Date
    08-07-2010
    Location
    London,England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Cool Getting rid of unwanted characters

    Hello,

    I have tried hard to no avail using the trim function to get rid of the unwanted characters before and after the numbers below :

    <---- 17026 ---->
    <---- 17027 ---->
    <---- 17049 ---->

    Any one with any ideas?

    Many thanks

    FO
    Last edited by fodejimi; 04-05-2011 at 11:26 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,042

    Re: Getting rid of unwanted characters

    how about this:


    =LOOKUP(99^99, --MID(A1, FIND(" ", A1), ROW($A$1:$A$30)))
    Never use Merged Cells in Excel

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

    Re: Getting rid of unwanted characters

    Have you tried the CLEAN() function?

    If it doesn't work, then what are those spaces? Try =CODE(LEFT(A1)) where A1 contains one of those strings to trim... what does that return?
    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.

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Getting rid of unwanted characters

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(D6,">",""),"-",""),"<","")+0

    where D6 holds <---- 17026 ----> leaves you with 17026
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  5. #5
    Registered User
    Join Date
    08-07-2010
    Location
    London,England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Getting rid of unwanted characters

    It worked. Many thanks to you all.

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

    Re: Getting rid of unwanted characters

    What worked?

    Please identify which solution worked for future users looking for answers.

+ 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