+ Reply to Thread
Results 1 to 8 of 8

Split Cell data into rows

  1. #1
    Forum Contributor
    Join Date
    08-17-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    132

    Split Cell data into rows

    Hi Experts,

    I Please go through the attached spreadsheet. I have data in column A and Column E & F shows the required output.

    Many thanks for your help.
    Regards,
    BS
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: Split Cell data into rows

    Nice approach would probably use regular expressions, but "quick and dirty" can be based on series of split functions.
    starting with something like
    sets_of_data_in_a_row = Split(Replace(Cells(currentrow, "B"), " ", ""), "&")
    then splitting for , and finally checking (and splitting) for -
    Is that enough suggestion, or shall I show sample code?
    Best Regards,

    Kaper

  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Split Cell data into rows

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Split Cell data into rows

    Try the attached
    Attached Files Attached Files
    多么想要告诉你 我好喜欢你

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: Split Cell data into rows

    OK, I can see that ready-code not just-directions prevails
    And we have two other approaches (string functions and regular expressions covered)
    So let me show also my propsition of (quite compact, isn't it) code using cascade splitting:

    Please Login or Register  to view this content.
    Last edited by Kaper; 02-06-2014 at 05:56 AM.

  6. #6
    Forum Contributor
    Join Date
    08-17-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: Split Cell data into rows

    All provided solutions are unique and worked as per requirement. How to mark it solved.

    Thanks for your help and time.

    Regards,
    BS
    Last edited by BS Singh; 02-06-2014 at 03:17 PM.

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Split Cell data into rows

    Kaper, very good and compact code, but you assumed only 2 characters before numbers

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: Split Cell data into rows

    Sure, only two, and exactly two.
    It follows the sample and ... I know that in many cases it is just like that.
    Two_letters_and_number codes are almost as popular as TLA (three-letter acronym) ;-)

+ 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. Large data in cell plz help me how to split into rows
    By bsaimsc in forum Excel General
    Replies: 26
    Last Post: 07-09-2013, 02:57 PM
  2. [SOLVED] Split a cell of data into multiple rows
    By otterandrews in forum Excel General
    Replies: 4
    Last Post: 03-24-2013, 11:59 PM
  3. [SOLVED] Split data from one cell into two new rows
    By ports83 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2012, 01:59 AM
  4. Macro to split a cell data into rows and copying other cells as it is in rows
    By shaan65 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-26-2010, 12:45 AM
  5. Macro to split a single cell data into rows and copying other cells as it is in rows
    By Pankaj Sonawane in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-25-2010, 07:09 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