+ Reply to Thread
Results 1 to 6 of 6

Separate multiple values in one cell into individual rows

  1. #1
    Registered User
    Join Date
    05-27-2015
    Location
    Minnesota
    MS-Off Ver
    2010
    Posts
    19

    Separate multiple values in one cell into individual rows

    I am trying to create a macro which would look at X number of rows, and for any cells which has multiple entries (separated by a comma), then it will insert a new row and paste the second value. It keeps doing this until all the cells in the column only have one value (no more commas)

    Current setup:
    Numbers
    12, 200, 291
    985
    45, 60

    What I want:
    Numbers
    12
    200
    291
    985
    45
    60

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Separate multiple values in one cell into individual rows

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: Separate multiple values in one cell into individual rows

    Try this.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-27-2015
    Location
    Minnesota
    MS-Off Ver
    2010
    Posts
    19

    Re: Separate multiple values in one cell into individual rows

    This worked great thank you!

    The entries to the table are manually entered, meaning human error is possible. If an entry is written in incorrect formats (incorrect spacing), is there any way to use enhance the macro for that?

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: Separate multiple values in one cell into individual rows

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    05-27-2015
    Location
    Minnesota
    MS-Off Ver
    2010
    Posts
    19

    Re: Separate multiple values in one cell into individual rows

    Quote Originally Posted by jindon View Post
    Please Login or Register  to view this content.
    Thank you again! This works great and was exactly what I was looking for.

+ 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. Setting the color of multiple different images based on individual cell values with VBA
    By jamesbrown008 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2016, 04:26 PM
  2. Splitting Cells with multiple values into separate rows
    By dracon6 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2014, 12:53 AM
  3. [SOLVED] Parse multiple values in a cell into separate rows
    By bcullers in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 01-25-2013, 03:03 PM
  4. [SOLVED] Separate values from a cell to individual cells
    By adilson.perez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2012, 03:11 PM
  5. Replies: 2
    Last Post: 05-12-2011, 01:34 PM
  6. deleting individual cells so cell values will wrap around rows
    By fintan.mcloughlin in forum Excel General
    Replies: 0
    Last Post: 03-31-2009, 07:04 AM
  7. Separate multiple entries in cell to individual cells
    By Jim15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2005, 12:04 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