+ Reply to Thread
Results 1 to 6 of 6

Taking Cell Content to Seperate Columns

  1. #1
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Taking Cell Content to Seperate Columns

    Hello. I had a code that would take cell content and put it into separate columns. Since then my computer crashed and I cannot find the code I had. It was ran through Macro. Hoping someone can help duplicate the code of its function. Please see the attached file for what I am working with
    Each of these were in separate column. There is a lot of content in each cell. The original code would add numbers in orderto each Make/Model/Sub Model/ Ending Year/ Beginning Year/
    Make1 Model1 Submodel1 etc and keep counting.

    Bumper Location (application):Front

    Universal:No

    Make:JEEP

    Model:CJ5

    Submodel:BASE

    Beginning Year:1976

    Ending Year:1988
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Taking Cell Content to Seperate Columns

    This seems to work....

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Re: Taking Cell Content to Seperate Columns

    Thank you for the reply. I need it to remain in the same row. So I would need multiple columns (multple columns) not multiple rows....for example
    Row 1: Bumper Location (application) Universal Make Model Submodel Beginning Year Ending Year Application Notes Bumper Location (application) Universal Make Model Submodel Beginning Year Ending Year Application Notes

    So with the example in my previous post after head space I need that to be a new column Make=Chevy Make under it Chevy and repeat making new columns now rows.

    The may be other content from column a to f that needs to remain there as well.
    Last edited by ryanb4614; 04-24-2014 at 07:34 PM.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Taking Cell Content to Seperate Columns

    Well, your example workbook left a lot to the imagination and spreading your data out along a row and duplicating columns violates all 'good data' rules. Anyway, try this version

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 04-25-2014 at 09:50 AM.

  5. #5
    Forum Contributor
    Join Date
    07-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    136

    Re: Taking Cell Content to Seperate Columns

    I understand this is a done of data. This is what ebay requires for product uploads. Its a pain and I am just trying to figure it out. What you have supplied works great. Is there a way for this macro not to delete the other columns before application1...it can remove application1 and application2

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Taking Cell Content to Seperate Columns

    Not sure what you mean - try removing this line from the macro to keep the original data:

    Please Login or Register  to view this content.
    Note that the autofit will make the columns with the original data really wide, so you may want to remove that line as well.
    Last edited by Bernie Deitrick; 04-25-2014 at 02:03 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Taking content and writing to a file
    By steve777888 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-03-2013, 01:02 PM
  2. Replies: 3
    Last Post: 04-29-2012, 12:50 AM
  3. Copying text in cell into seperate specific columns
    By marc thomas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2012, 12:40 PM
  4. Seperate cells depending on content
    By alogoc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-24-2009, 10:32 AM
  5. Taking seperate pieces of info from one cell into two others
    By Don Juan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2008, 07:35 PM

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