+ Reply to Thread
Results 1 to 3 of 3

Remove characters in a string.

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    20

    Smile Remove characters in a string.

    Hi,

    I want to remove the nine (any number) right or left characters in a string:

    Xxlakslfjoasg123456789
    should become
    Xxlakslfjoasg

    or

    123456789Xxlakslfjoasg
    should become
    Xxlakslfjoasg

    i.e. like an inverted "right() or left() function".

    Appreciate the help

    Jesper

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Remove characters in a string.

    So you're saying remove the 9 numerics ?

    =IF(ISNUMBER(--LEFT(A1&0));REPLACE(A1;1;9;"");LEFT(A1;LEN(A1)-9))

    where A1 holds string

    (you may need to Translate functions per your installation)

  3. #3
    Registered User
    Join Date
    01-28-2010
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Remove characters in a string.

    Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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