+ Reply to Thread
Results 1 to 3 of 3

formula to delete all but the last 3 characters

  1. #1
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    formula to delete all but the last 3 characters

    Does anyone know the formula to delete all but the last 3 characters?

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581
    Quote Originally Posted by duugg
    Does anyone know the formula to delete all but the last 3 characters?

    Thanks in advance
    Assuming you're referring to one cell (A1 in this example):

    =RIGHT(A1,3)

    You may also wish to consider the following formula, which will remove any accidentally inserted spaces at the end of the string (it also removes double spaces from the middle -- you will have to determine if this is appropriate for what you are doing).

    =RIGHT(TRIM(A1),3)

    Scott

  3. #3
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438
    Maistrye,

    Thanks! it worked!

    Do you happen to know if there's a way to delete all rows above the bottom most one that have the same data in it.

    For example...

    B2
    C2
    D2

    All have the same 3 characters in it, let's say CNW.

    There is also irrelevant data in B1, C1 & D1

    I would like to automatically delete rows B & C and leave row D in there. Do you know if this can be done?

+ 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