+ Reply to Thread
Results 1 to 8 of 8

Remove characters

  1. #1
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    Remove characters

    Hello,
    I just need "simple" thing - here is datas
    Please Login or Register  to view this content.
    and I need to remove all characters, so after that It should be :
    Please Login or Register  to view this content.
    I can do it through replace function (character by character ) but it's not solution what I need. Will somebody help me please? Thank you
    Last edited by miso.dca; 11-06-2011 at 08:38 AM.

  2. #2
    Registered User
    Join Date
    11-05-2011
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Remove characters

    To Grab the numbers you could pick the Code Right for you. This is Formulas that you could quickly sort through a table of data that shows the exact same formating.

    C49 = Cell of Original Data
    -3 = Trim
    5 = Grab

    Please Login or Register  to view this content.
    - Trim the Last 3 Chars
    Please Login or Register  to view this content.
    - Trim the First 3 Chars
    Please Login or Register  to view this content.
    - Grabs the First 5 Chars
    Please Login or Register  to view this content.
    - Grabs the Last 5 Chars

    HOWEVER!!!

    This is what I would Recommend Doing.
    Please Login or Register  to view this content.
    Where as this Code is Going in D49

    C49 = Janko 10:20
    E49 = 5
    D49 = 10:20

    there are 5 Characters the " : " and the for numerical characters.

    Since the Formula is set to C49 and E49 - Where C49 is your Static Information and E49 is your Dynamic Information We would Have another Example as.

    C50 = Vianoce 154,75
    E50 = 6
    D50 = 154,75

    To get to D50 all you had to do was count that there are 6 Characters in C50 on the right side that you wanted to Keep. ^_^
    Last edited by demonspitfir; 11-06-2011 at 06:28 AM.

  3. #3
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Remove characters

    If your data starts in A1 you can also try

    Please Login or Register  to view this content.
    copied down
    Last edited by WasWodge; 11-06-2011 at 06:43 AM.
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  4. #4
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    Re: Remove characters

    demonspitfir :
    yes, I know this function but the trick is that I dont know If there will by this text with the exact datas - but thans


    paul555555 :
    your solution works perfect ! THANK YOU ! and what If there are much spaces than one? eg. :
    Please Login or Register  to view this content.
    somehow I need to tell excel take just last space, and other throw away ...

  5. #5
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Remove characters

    The only way of doing your last request that I know of is to use a macro. There is an example below (Not one that I wrote). Select the cells you wish altered and then run the code. Beware only select the cells you want altered and not entire columns as it will loop for ages.

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    Re: Remove characters

    uf, there is no easier way? I hoped that I can use some formula or something ... anyway thank you very much

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Remove characters

    Assuming your data is in A2 down try this in B2
    Please Login or Register  to view this content.
    Hope this helps.
    Attached Files Attached Files
    Last edited by Marcol; 11-06-2011 at 08:36 AM. Reason: Added example workbook
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  8. #8
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    Re: Remove characters

    great ! Thank you Marcol !

+ 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