+ Reply to Thread
Results 1 to 4 of 4

Split into smaller Shorter Descriptions.

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Split into smaller Shorter Descriptions.

    Good day, Gurus.

    See attached sample workbook. In real life I have several hundred rows of these long descriptions, and they need to be broken down to 69 characters or less because that is the character limit in the software I am importing the descriptions into. I have 3 fields available that I am importing into, but each field must be less than 69 characters.

    I need to take this one column and split it into 3 columns of no more than 69 characters each. However, the complicated part is I’d like to be able to do so where the split occurs as close to but not more than 69 characters, while at the same time not cutting a word in half. Is there a formula that would do this?
    Attached Files Attached Files
    Last edited by [email protected]; 02-17-2012 at 04:43 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Split into smaller Shorter Descriptions.

    Try:

    In B2:

    Please Login or Register  to view this content.
    in C2:

    Please Login or Register  to view this content.
    in D2:

    Please Login or Register  to view this content.
    each copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Split into smaller Shorter Descriptions.

    One way:

    B2: =LEFT(A2,FIND(" ",A2,LEN(A2)/3))
    C2: =MID(A2,FIND(" ",A2,LEN(A2)/3)+1,FIND(" ",A2,2*(LEN(A2)/3))-FIND(" ",A2,LEN(A2)/3))
    D2: =MID(A2,FIND(" ",A2,2*LEN(A2)/3)+1,LEN(A2)/3)

    and copy down.

    This breaks the text into roughly thirds based on the length of the original text. Otherwise, it's a cas of taking an arbitrary number less than 69 and looking for a space ... which may or may not work.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Split into smaller Shorter Descriptions.

    It's been a long time NBVC. I hope all is going well for you.

    This works beautifully. You are a genius!

    This is SOLVED. Have a good one.

+ 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