+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : Need to separate a description field in various character lines

  1. #1
    Registered User
    Join Date
    03-11-2011
    Location
    Orange County, California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Need to separate a description field in various character lines

    I am new here and kind of an excel noobie, but I need help splitting up a description that is way to long and returning the segments to a column. I tried to use the =mid() formula to count out, but I need each new cell in the column to reference the original part number with the segmented description. The load sheet can only take up to 72 characters, but can have duplicate materials. Here is an example:

    I want it to go from this(Material is A1 and Description is B1) to:

    MATERIAL# DESCRIPTION

    10312738 DISC, SANDING-12" DIAMETER, 80 GRIT, NO, HOLE, TYPE 248D, PRESSURE SENSTIVE, ADHESIVE BACKING, 3M, 25 PER BOX, PEOPLE HAVE BEEN COMPLAINING ABOUT, NORTON BRAND NOT STICKING GOOD ENOUGH., BUY 3M BRAND

    I need to have multiple lines but each description is limited 72 characters,

    MATERIAL # DESCRIPTION
    10312738 DISC, SANDING-12" DIAMETER, 80 GRIT, NO, HOLE, TYPE 248D, PRESSURE SENST
    10312738 IVE, ADHESIVE BACKING, 3M, 25 PER BOX, PEOPLE HAVE BEEN COMPLAINING ABOU
    10312738 T, NORTON BRAND NOT STICKING GOOD ENOUGH., BUY 3M BRAND

    Sorry about that primitive formatting (I also uploaded a sample workbook), but is there a way to do this without have to sort and do the function manually for all the materials? Some have descriptions that are 600 characters long. I was thinking this might need a macro and I am very inexperienced with these: The macro would count the characters in the description field and if there are more than 72 it would return the segmented values to another sheet and duplicate the material number with each piece of the description until it was all accounted for.

    Help would very much appreciated since I have about 10000 line items to check this.
    Thanks,

    Jason
    Attached Files Attached Files
    Last edited by NBVC; 03-13-2011 at 09:04 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: Need to separate a description field in various character lines

    See attached.

    Added a couple of helper columns.

    In C2:

    Please Login or Register  to view this content.
    copied down

    in D2:

    Please Login or Register  to view this content.
    copied down

    in E2:

    Please Login or Register  to view this content.
    In A11:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down as far as you need.

    In B11:

    Please Login or Register  to view this content.
    confirmed with just ENTER and copied down.
    Attached Files Attached Files
    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 Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need to separate a description field in various character lines

    The above is for 70 characters (I misread)... just replace any 70 occurance in any formula with 72 for you actual allowance.

    Attached revised sample
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-11-2011
    Location
    Orange County, California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need to separate a description field in various character lines

    Wow, I will work on that. So I just copy the formulas on down below my existing sheet with all 10000 parts and it will reference those?

    Thanks again for the quick and helpful response.

    Jason

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

    Re: Need to separate a description field in various character lines

    Yes it should... you can also put it on another sheet and make sure to reference the source sheet in the formula...

  6. #6
    Registered User
    Join Date
    03-11-2011
    Location
    Orange County, California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need to separate a description field in various character lines

    I am sorry to bother you again but when I try to make this in a bigger sample and get it to place it on another sheet it will not let me. I really am an excel novice, but I could swear I am getting the references right and it still won't return any value. Here is what I have done.
    Attached Files Attached Files

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

    Re: Need to separate a description field in various character lines

    You have to put apostrophes around sheet names that are multiple words so in A2

    Please Login or Register  to view this content.
    make sure after you enter this formula, you hold the CTRL and SHIFT keys down and then press ENTER, then copy it down.

    In B2 enter:

    Please Login or Register  to view this content.
    confirm as normal with ENTER only

  8. #8
    Registered User
    Join Date
    03-11-2011
    Location
    Orange County, California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need to separate a description field in various character lines

    Forgot about the CTRL+SHIFT and ENTER keys. It worked, thanks for everything.

    Jason

+ 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