+ Reply to Thread
Results 1 to 4 of 4

Reomving a set numer of characters from a text string

  1. #1
    Registered User
    Join Date
    01-10-2006
    Posts
    2

    Reomving a set numer of characters from a text string

    Hi,

    I have a column with a variable length single text string in each cell between 9 & 36 characters. I want to consistently split or remove the last (rightmost) 8 characters from this string, and leave the left part of the string ( like a reverse concatanation). Is there a function to do this?

    Thanks in anticipation.

  2. #2
    Roger Govier
    Guest

    Re: Reomving a set numer of characters from a text string

    Hi

    You will need to do the splitting into 2 cells.
    With data in A1, enter in B1 =IF(LEN(A1<9,"",LEFT(A1,LEN(A1)-8)
    In C1 =IF(LEN(A(<9,"",RIGHT(A1,8))

    If you want to delete the original column A, then first you would need
    to copy the complete range of cells in B:C and Paste Special>Values to
    convert the cells to hard data in place of the formulae.

    --
    Regards

    Roger Govier


    "ado1963" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi,
    >
    > I have a column with a variable length single text string in each cell
    > between 9 & 36 characters. I want to consistently split or remove the
    > last (rightmost) 8 characters from this string, and leave the left
    > part
    > of the string ( like a reverse concatanation). Is there a function to
    > do
    > this?
    >
    > Thanks in anticipation.
    >
    >
    > --
    > ado1963
    > ------------------------------------------------------------------------
    > ado1963's Profile:
    > http://www.excelforum.com/member.php...o&userid=30305
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=499695
    >




  3. #3
    Bob Phillips
    Guest

    Re: Reomving a set numer of characters from a text string

    =LEFT(A1,LEN(A1)-8)

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "ado1963" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > I have a column with a variable length single text string in each cell
    > between 9 & 36 characters. I want to consistently split or remove the
    > last (rightmost) 8 characters from this string, and leave the left part
    > of the string ( like a reverse concatanation). Is there a function to do
    > this?
    >
    > Thanks in anticipation.
    >
    >
    > --
    > ado1963
    > ------------------------------------------------------------------------
    > ado1963's Profile:

    http://www.excelforum.com/member.php...o&userid=30305
    > View this thread: http://www.excelforum.com/showthread...hreadid=499695
    >




  4. #4
    Registered User
    Join Date
    01-10-2006
    Posts
    2
    Thank you both

+ 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