+ Reply to Thread
Results 1 to 3 of 3

spliting text

  1. #1
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    spliting text

    I have in A1 "CNAN6"

    I want to strip it into 2 parts.

    CNA

    and

    N6

    The N6 is found using =RIGHT(A1,2) so thats easy. But how do I get the CNA part. Also note that this is not always going to be only 5 characters long. It could be 10. BUT the last two characters will always be split away from the rest of the string.

    Thanks for the help.

  2. #2
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651
    got it... thanks!

  3. #3
    Tom Ogilvy
    Guest

    RE: spliting text

    =right(a1,2)
    =left(a1,len(a1)-2)

    --
    Regards,
    Tom Ogilvy


    "sungen99" wrote:

    >
    > I have in A1 "CNAN6"
    >
    > I want to strip it into 2 parts.
    >
    > CNA
    >
    > and
    >
    > N6
    >
    > The N6 is found using =RIGHT(A1,2) so thats easy. But how do I get the
    > CNA part. Also note that this is not always going to be only 5
    > characters long. It could be 10. BUT the last two characters will
    > always be split away from the rest of the string.
    >
    > Thanks for the help.
    >
    >
    > --
    > sungen99
    > ------------------------------------------------------------------------
    > sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
    > View this thread: http://www.excelforum.com/showthread...hreadid=538024
    >
    >


+ 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