+ Reply to Thread
Results 1 to 10 of 10

Separating data in a cell

  1. #1
    Forum Contributor
    Join Date
    04-02-2013
    Location
    Hollywood, Fl
    MS-Off Ver
    Excel 2010
    Posts
    110

    Separating data in a cell

    Hello all,
    I've been tasked with separating data within an Excel cell into it's own row. The difficulty I am having is, I need to keep the ticket number each piece of data within that cell is linked to. For example, I have Column A that has the ticket number, and column I has the serial numbers of each piece of equipment linked to that ticket number. I would like the serial numbers separated into their own row, but still keep the ticket number in which that equipment is connected to.

    Here's an example: Column A Column I
    Ticket # Serial Numbers on Account
    23999866 PAFR06598067 - MOPCUDTAM

    I would like to modify it into this:

    Ticket # Serial Numbers on Account
    23999866 PAFR06598067
    23999866 MOPCUDTAM


    Would I need a formula to do this, or is this something I can do using one of the Ribbon commands? Thank you for any and all assistance with this.

    Damian37

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Separating data in a cell

    could it be done with a sub in VBA?

  3. #3
    Forum Contributor
    Join Date
    04-02-2013
    Location
    Hollywood, Fl
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Separating data in a cell

    Quote Originally Posted by rcm View Post
    could it be done with a sub in VBA?
    I have access to VBA, and I've played around with VBA, but I'm not that proficient that I would know what coding to use that would break out the serial numbers the way I need them broken up.

  4. #4
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Separating data in a cell

    Could just do a text-to-columns on the data ribbon, using spaces as separators, and remove extra columns... Unless there are oddities outside of the example you posted.
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  5. #5
    Forum Contributor
    Join Date
    04-02-2013
    Location
    Hollywood, Fl
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Separating data in a cell

    Quote Originally Posted by Miraun View Post
    Could just do a text-to-columns on the data ribbon, using spaces as separators, and remove extra columns... Unless there are oddities outside of the example you posted.
    That's what I'm doing now, text-to-columns, but there are about 1500 rows and the text-to-columns creates new columns, which I am now having to transpose in order to place them in new rows, and then copy the correlating data to the new rows. I was hoping to find a quicker way to do this.

  6. #6
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Separating data in a cell

    Getting back to VBA. Send us a sample of the data, and the macro will be written ad-hoc
    Last edited by rcm; 08-20-2014 at 07:28 PM. Reason: typo

  7. #7
    Forum Contributor
    Join Date
    04-02-2013
    Location
    Hollywood, Fl
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Separating data in a cell

    Here's an example of the spreadsheet. The ticket numbers are in column A and the serial numbers are in column I. Currently they've been separated into new columns, but I would like them separated into new rows to assist when manipulating pivot tables. It is imperative I separate the serial numbers into new rows, without creating new ticket numbers for the serial numbers in each new row. I hope the spreadsheet I've attached explains my needs a little better than my words. Thanks again for all of your help.

    Damian37
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Separating data in a cell

    hoping this would help, run the macro
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    04-02-2013
    Location
    Hollywood, Fl
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Separating data in a cell

    Quote Originally Posted by rcm View Post
    hoping this would help, run the macro
    Thanks for the macro rcm. I'm trying to modify it to work with the original worksheet and I'm running into a couple of issues. The original worsheet has 13,738 rows. Some of them have more equipment listed in column I than others. I'm not sure if I'm modifying your code correctly or not. Here's what I've done

    Please Login or Register  to view this content.
    I think I have to change the sheet name. I tried updating the name to the name within the tab, but it doesn't like having the (1) in it. When I look at the list of tabs within the workbook, it's listing the data tab as Sheet 2, yet there is another tab within my Excel workbook labeled Sheet 2.
    Last edited by Damian37; 08-22-2014 at 09:18 AM.

  10. #10
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Separating data in a cell

    Please Login or Register  to view this content.
    Last edited by rcm; 08-23-2014 at 12:50 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. Separating cell data into 2 new cells.
    By Joe@WSC in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 07-07-2009, 10:10 AM
  2. Separating data in a cell
    By Groovingirl13 in forum Excel General
    Replies: 2
    Last Post: 10-23-2008, 02:41 PM
  3. Separating data in one cell to several
    By hodkd in forum Excel General
    Replies: 2
    Last Post: 05-19-2008, 03:17 PM
  4. [SOLVED] Separating data from a cell
    By Todd in forum Excel General
    Replies: 4
    Last Post: 09-06-2005, 05:05 PM
  5. [SOLVED] Separating data in a cell
    By chellegar in forum Excel General
    Replies: 4
    Last Post: 08-16-2005, 04:05 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