+ Reply to Thread
Results 1 to 39 of 39

Multiple rows in 1 cell to multiple cells

  1. #1
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Multiple rows in 1 cell to multiple cells

    Hi!

    I have table that contains cells with multiple rows. Is there a formula to split the cell into multiple cells so that each row is in different cell?
    There is no common symbol in the end of each row to use good old 'text to columns'.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,799

    Re: Multiple rows in 1 cell to multiple cells

    You can do it in two steps.

    1. In Find & Replace:
    Find: ALT+010
    Replace : |
    2. Now use text to columns with the pipe symbol (|) as your delimiter.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    08-21-2012
    Location
    London
    MS-Off Ver
    Office 365 MAC
    Posts
    107

    Re: Multiple rows in 1 cell to multiple cells

    Hi there

    Have you tried LEFT, RIGHT and MID? If you search on youtube there are plenty of help examples of the functions on there.

    Hope it helps
    Learner, making mistakes, asking daft questions.

  4. #4
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    i hope I managed to add file. It changed to | but text to columns does not work
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    @Ed - those formulas wont work this time. data too different

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,799

    Re: Multiple rows in 1 cell to multiple cells

    That's because of the {}, which Excel reads differently.

    Do you need to keep the parenthesis?

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Multiple rows in 1 cell to multiple cells

    Didn't refresh

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,799

    Re: Multiple rows in 1 cell to multiple cells

    Pardon?

  9. #9
    Forum Contributor
    Join Date
    08-21-2012
    Location
    London
    MS-Off Ver
    Office 365 MAC
    Posts
    107

    Re: Multiple rows in 1 cell to multiple cells

    Try the attached.

    I have given the example using the text I think you had before you did Find/Replace?

    If your data is in a table it will autofill the appropriate formula down the column.

    Hope it helps
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    08-21-2012
    Location
    London
    MS-Off Ver
    Office 365 MAC
    Posts
    107

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by robert26 View Post
    @Ed - those formulas wont work this time. data too different
    See example

  11. #11
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Multiple rows in 1 cell to multiple cells

    Is it something like this you are looking for?
    Enter formula in A2 and drag formula down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A
    1 {A}
    |{B}
    |{C}
    |{F}
    |
    2 {A}
    3 {B}
    4 {C}
    5 {F}
    6
    For your region you may need to replace all instances of comma with semi:colon ;
    Last edited by AlKey; 08-08-2018 at 11:23 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by AliGW View Post
    Pardon?
    I hadn't refreshed the board before I posted.
    After hitting Reply I realised that my suggestion didn't work, so removed it.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,799

    Re: Multiple rows in 1 cell to multiple cells

    OK - thanks for the clarification. Mystery solved!

  14. #14
    Forum Contributor
    Join Date
    08-21-2012
    Location
    London
    MS-Off Ver
    Office 365 MAC
    Posts
    107

    Re: Multiple rows in 1 cell to multiple cells

    @Robert26 - it would appear you have at least one solution to your problem. Please let us know how you get on

  15. #15
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by AliGW View Post
    That's because of the {}, which Excel reads differently.

    Do you need to keep the parenthesis?
    Yes I do. This is just an example, but there would be some cells that begin with { and some that end with }. No cell would be {...}, but original data has them.

  16. #16
    Forum Contributor
    Join Date
    08-21-2012
    Location
    London
    MS-Off Ver
    Office 365 MAC
    Posts
    107

    Re: Multiple rows in 1 cell to multiple cells

    does each 'Row' of data have the same number of characters in? ie {A} being three?
    IF so then, try the formula I posted

  17. #17
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by EdRooney View Post
    Try the attached.

    I have given the example using the text I think you had before you did Find/Replace?

    If your data is in a table it will autofill the appropriate formula down the column.

    Hope it helps
    Thank you for assistance, but as I mentioned, data are different and {A} section does not have strict digit number.

  18. #18
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by AlKey View Post
    Is it something like this you are looking for?
    Enter formula in A2 and drag formula down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A
    1 {A}
    |{B}
    |{C}
    |{F}
    |
    2 {A}
    3 {B}
    4 {C}
    5 {F}
    6
    For your region you may need to replace all instances of comma with semi:colon ;
    Thanks. Basically it works as I need. The only thing is that data are in column A (so I would need B1:B4 for A1 and then I cant really drag the formula for A2 (assuming data is somehow similar)

  19. #19
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by EdRooney View Post
    does each 'Row' of data have the same number of characters in? ie {A} being three?
    IF so then, try the formula I posted
    No, it may vary

  20. #20
    Forum Contributor
    Join Date
    08-21-2012
    Location
    London
    MS-Off Ver
    Office 365 MAC
    Posts
    107

    Re: Multiple rows in 1 cell to multiple cells

    If you go back to suggestion by AliGW... did that idea work? Perhaps change the "|" with another delimiter option such as comma or whatever?

  21. #21
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    Is there any formula somehow similar to =SUBSTITUTE to replace those mystical ALT+010 symbols?
    So that when I get original data in column A, Excel automatically replaces them with "|"?

  22. #22
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    Yes that worked. "|" was fine. {} problem appeared after that.

  23. #23
    Forum Contributor
    Join Date
    08-21-2012
    Location
    London
    MS-Off Ver
    Office 365 MAC
    Posts
    107

    Re: Multiple rows in 1 cell to multiple cells

    Seriously, Find / Replace will do it!

    I found this by doing a google search...


    In the "Find what:" box you can enter the line-break code, which is character number 10.
    To do this, press and hold the Alt key, and then enter the numbers 010 from the numeric part of the keyboard.
    On my computer in the box there is then a small dot blinking when the cursor is still in the entry box.
    To enter the numbers you need to use the numbers from the Num-lock part of the keyboard (with the numbers above the letters on your keyboard it doesn't work). If you have data imported from another source, sometimes the line breaks are also represented by character 13 instead of 10.

    In the "Replace with:" dialog you can enter a space to have the line-breaks replaced with spaces. You can also leave that blank to have the line-breaks removed.

  24. #24
    Forum Contributor
    Join Date
    08-21-2012
    Location
    London
    MS-Off Ver
    Office 365 MAC
    Posts
    107

    Re: Multiple rows in 1 cell to multiple cells

    Can you post a small sample of the data you are referring to?

  25. #25
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    I know it works. THat is not the problem. My question is can it be automated. So that say data in column A have multiple rows, but in column B they aare replaced with |.

  26. #26
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    No, unfortunately data are confidential.

  27. #27
    Forum Contributor
    Join Date
    08-21-2012
    Location
    London
    MS-Off Ver
    Office 365 MAC
    Posts
    107

    Re: Multiple rows in 1 cell to multiple cells

    Ok, I appreciate the data is confidential. I guess what I was trying to understand was what the text looked like in the cells?

    If the find replace works, but I take it the data can change from time to time?... then record a macro whereby you go through the steps you need to perform. Then you can create a button and assign the macro. Everytime you hit the button it will carry out the same function, but remember it will overwrite your existing, delimited data

  28. #28
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,799

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by EdRooney View Post
    Seriously, Find / Replace will do it!

    I found this by doing a google search...


    In the "Find what:" box you can enter the line-break code, which is character number 10.
    To do this, press and hold the Alt key, and then enter the numbers 010 from the numeric part of the keyboard.
    This is exactly what I suggested in post #2 - you didn't need to do a Google search for it!!!

  29. #29
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    I can send original data example tomorrow. I am using different PC at the moment.
    Data change. They are basically text exported from MS Outlook.
    Unfortunately I understand next to nothing from Macroses

  30. #30
    Forum Contributor
    Join Date
    08-21-2012
    Location
    London
    MS-Off Ver
    Office 365 MAC
    Posts
    107

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by AliGW View Post
    This is exactly what I suggested in post #2 - you didn't need to do a Google search for it!!!
    I know, I was refocussing his mind!

  31. #31
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,799

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by robert26 View Post
    No, unfortunately data are confidential.
    Provide dummy data that are representative of the real data and their layout.

    Unless you are prepared to make an effort to meet your helpers halfway, why should they give freely of their time to help you? You are expecting a lot and giving very little.

  32. #32
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by AliGW View Post
    Provide dummy data that are representative of the real data and their layout.

    Unless you are prepared to make an effort to meet your helpers halfway, why should they give freely of their time to help you? You are expecting a lot and giving very little.
    As I sai, I will provide data tomorrow.

  33. #33
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,799

    Re: Multiple rows in 1 cell to multiple cells

    Good - thank you.

  34. #34
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    Quote Originally Posted by EdRooney View Post
    I know, I was refocussing his mind!
    The problem was still unsolved because excel did not split the cell as I wanted. Then I had a follow-up question. There was no need to go back.

  35. #35
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,799

    Re: Multiple rows in 1 cell to multiple cells

    We shall all wait for your sample workbook - there's no point in any further speculation until it's here.

  36. #36
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    See attachment.
    ALT+010 works, but I am looking for formula so that it automatically substitutes this 'space' with '|' or whatever else.
    Attached Files Attached Files

  37. #37
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,799

    Re: Multiple rows in 1 cell to multiple cells

    You need CHAR(10):

    =SUBSTITUTE(A1,CHAR(10),"|")

  38. #38
    Registered User
    Join Date
    07-25-2017
    Location
    Latvia
    MS-Off Ver
    MS Office 2010
    Posts
    91

    Re: Multiple rows in 1 cell to multiple cells

    Thank you for help That what I was looking for.

  39. #39
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,799

    Re: Multiple rows in 1 cell to multiple cells

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Macro to split cell with multiple rows into multiple cells
    By dobracik in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-23-2017, 10:02 AM
  2. Replies: 1
    Last Post: 01-15-2016, 09:59 AM
  3. Count number of Rows with multiple criteria (multiple valued cells)
    By garog in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-09-2014, 01:33 PM
  4. Reformating multiple cells into multiple rows base on cell value.
    By rrough in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-25-2013, 01:17 PM
  5. [SOLVED] Select multiple cells with lowest number from multiple rows
    By NeilMcCauley in forum Excel General
    Replies: 14
    Last Post: 08-05-2012, 06:52 AM
  6. Selecting multiple cells in multiple columns and rows to paste into a single row.
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2012, 04:03 PM
  7. Replies: 7
    Last Post: 08-16-2010, 11:48 AM

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