+ Reply to Thread
Results 1 to 2 of 2

Removing text

  1. #1
    Registered User
    Join Date
    06-28-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    1

    Removing text

    Hi All

    Need help to remove text within a cell

    Mac123ab
    KFC321
    BK999ab
    Longjohn22ab
    PizzaH45

    The data which I require to remove is "ab" which may/may not be present.
    The "ab" would always be at the end of the data.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    38,145

    Re: Removing text

    Either do a global replace or use SUBSTITUTE in a helper cell.

    =SUBSTITUTE(A1,"ab","")

    or a VBA routine to remove the text in the cell (also using SUBSTITUTE)


    Regards, TMS
    Trevor Shuttleworth - Excel Aid

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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