+ Reply to Thread
Results 1 to 4 of 4

Deleting and replacing characters in a cell

  1. #1
    Registered User
    Join Date
    02-11-2015
    Location
    brazil
    MS-Off Ver
    mac os 2011
    Posts
    5

    Deleting and replacing characters in a cell

    Hello there, I need some help with a macro!

    In a cell, I have, for instance: TTCAAGGACACACACTCCAGTGG.
    I need a macro for two things and I need it for all the cells in a row:

    1) deleting the last three characters, making it: TTCAAGGACACACACTCCAG
    2) replace the first eight characters for N, making it: NNNNNNNNCACACACTCCAG

    Anyone, please?

    Thanks in advance

    Fred

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Deleting and replacing characters in a cell

    maybe try UDF
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-11-2015
    Location
    brazil
    MS-Off Ver
    mac os 2011
    Posts
    5

    Re: Deleting and replacing characters in a cell

    Got it JieJeen! Thanks a lot!
    Last edited by fredrbcc; 02-11-2015 at 02:47 PM.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Deleting and replacing characters in a cell

    FWIW:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Deleting part of cell contacts, replacing or keeping some
    By twckfa16 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-08-2013, 08:41 PM
  2. Replacing characters in 1 cell with contents of others
    By MrRed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2012, 01:57 PM
  3. Deleting first characters from a cell
    By sheenyp in forum Excel General
    Replies: 2
    Last Post: 11-11-2010, 08:42 AM
  4. Deleting last two characters in a cell
    By patentprio in forum Excel General
    Replies: 14
    Last Post: 03-03-2010, 07:08 PM
  5. Macro for deleting certain characters in a cell
    By neilcarden in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-07-2007, 12:13 PM

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