+ Reply to Thread
Results 1 to 3 of 3

Extract all but last two words

  1. #1
    Registered User
    Join Date
    03-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    48

    Extract all but last two words

    Hi

    Iam trying to extract all but the last two words in a variable length string.

    The last two words are a constant length both 9 digits long.

    I have attached a sample spreadsheet.

    How can I do this?

    macke
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Extract all but last two words

    try to use this
    =left(A2,len(A2)-20)

    but this:
    both 9 digits long
    must be the true
    Last edited by tom1977; 12-12-2011 at 07:12 AM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Registered User
    Join Date
    03-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Extract all but last two words [SOLVED]

    Brilliant thank you. it works perfectly.

    macke

+ 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