+ Reply to Thread
Results 1 to 7 of 7

Remove Characters

  1. #1
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57

    Remove Characters

    Hi,

    I need to write a vba code to remove all characters after "day" in a column. I cannot use Right or Left function.

    For example,
    May 2, 2013 Thursday First Edition
    May 1, 2013 Wednesday 1 - SYD Edition

    Output:
    May 2, 2013 Thursday
    May 1, 2013 Wednesday

    Thanks,
    Ling

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Remove Characters

    Using Worksheet Functions:-

    In A1 Cell
    May 2, 2013 Thursday First Edition

    In B1 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Using VBA

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Remove Characters

    Please Login or Register  to view this content.
    where a1 = cell to cut
    Last edited by humdingaling; 05-23-2013 at 03:58 AM. Reason: ...too slow

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Remove Characters

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Remove Characters

    thought user said cannot use Left or Right

  6. #6
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Remove Characters

    User said "cannot use Left or Right" AND user said "need VBA code"

    so, try below

    Please Login or Register  to view this content.
    Please click the * below if this helps

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Remove Characters

    touché
    well played

+ 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