+ Reply to Thread
Results 1 to 4 of 4

Extract all but x number of characters

  1. #1
    Registered User
    Join Date
    04-20-2005
    Posts
    6

    Extract all but x number of characters

    Please help -
    I need to extract a cell and have the new cell contain everything but the last 8 characters.

    I appreciate any and all solutions.

    Thanks

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    This formula should work for you:

    =IF(LEN(A1)<9,"",LEFT(A1,LEN(A1)-8))

    The above will return all characters except the 8 right characters. It will return nothing if the length of the cell is 8 or less characters.

    HTH

    Jason

  3. #3
    Registered User
    Join Date
    04-20-2005
    Posts
    6

    Perfect

    Thanks for an immediate response. I've been working about 2 hours on this one.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Here's another way

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

+ 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