Split Multiple Lines into Separate Rows with Excel Power Query

Тәжірибелік нұсқаулар және стиль

In this video, we have values on multiple lines in a cell that we want to split into separate rows. We achieve this with a simple Power Query transformation.
Power Query makes this task very easy. No need for Macros or complicated formulas.
Find more great free tutorials at;
www.computergaga.com
** Online Excel Courses **
Excel VBA for Beginners ► bit.ly/2JvnnRv
Advanced Excel Tricks ► bit.ly/3CGCm3M
Excel Formulas Made Easy ► bit.ly/2t3netw
The Ultimate Excel Course - Learn Everything ► bit.ly/UltimateExcel
Creating Sports League Tables and Tournaments in Excel ► bit.ly/2viGg3J
Connect with us!
LinkedIn ► / 18737946
Instagram ► / computergaga1
Twitter ► / computergaga1

Пікірлер: 115

  • @Christopher_vg
    @Christopher_vg3 ай бұрын

    Thank you! This is exactly what I was looking for.

  • @Computergaga

    @Computergaga

    2 ай бұрын

    Glad it was helpful!

  • @jjvirginia
    @jjvirginia5 жыл бұрын

    Thank you so much for sharing this functionality, it saved me a tremendous amount of time :)

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    You're very welcome.

  • @dgkebbekus0624
    @dgkebbekus06244 жыл бұрын

    This just saved me and my team about 30 hours of manual work. What a fantastic tip&trick! This is a must learn for analysts that receive text data from ancillary feeds! Tank you so much!

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    You're very welcome. These comments is why I do it. So happy to help Greg.

  • @ardhityabayuaji7911
    @ardhityabayuaji79115 жыл бұрын

    Thank you for the lesson, it indeed helps me finish my administrative task quickly.

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    Great to hear. Thank you ardhitya.

  • @srikantapatra8265
    @srikantapatra82653 жыл бұрын

    Excellent! Thanks for sharing this lesson. It helps to finish my work at a faster rate.

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    Awesome! You're welcome Srikanta.

  • @yuelianglu8746
    @yuelianglu87464 жыл бұрын

    Thank you so much!!! Such a life saver for my academic research !!!!

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Great to hear that I could help Yueliang. It is my pleasure.

  • @FutureMissyPrissyRN
    @FutureMissyPrissyRN2 жыл бұрын

    thanks you are a excel guru it worked perfectly

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    No worries. Thank you, Stan.

  • @aswadhama
    @aswadhama4 жыл бұрын

    Awesome. Simple and effective. Thank you so much!!!

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    You're welcome Basaveswara. Thank you.

  • @alvincena234
    @alvincena2344 жыл бұрын

    Thank you so much for this simple yet helpful tutorial, much love from the Philippines :)

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    You're welcome. Thank you.

  • @FernandoMoreiraR
    @FernandoMoreiraR3 жыл бұрын

    Man you saved me from long pointless work with this PowerQuery tip, thanks mate!

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    No problem 👍

  • @jaskiegrain1854
    @jaskiegrain18544 жыл бұрын

    Thank so much you just solved my problem today! WFH here in Philippines! God bless you!

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Glad it helped. Take care Jaskie.

  • @villa1948
    @villa19484 жыл бұрын

    Thanks for this great functionality.. will save me tons of time

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Excellent! You're very welcome.

  • @tarunarora7612
    @tarunarora76124 жыл бұрын

    I think this might be rare video which is very helpful to know some basic fundamentals about what Power query is andd how to use it. Thanks

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Thank you Tarun.

  • @mohideenthassim7180
    @mohideenthassim71806 жыл бұрын

    Thanks Alan for this video, appreciate your dedicated work in sharing your training videos Best Regards Mohideen

  • @Computergaga

    @Computergaga

    6 жыл бұрын

    You're welcome Mohideen, thank you.

  • @Ignc1981
    @Ignc19812 жыл бұрын

    Excellent mate! You helped me a lot. Cheers from Brazil.

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    No worries. Thank you, Rodrigo.

  • @stephaniehoban3233
    @stephaniehoban32334 жыл бұрын

    Thanks that worked perfectly!

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Excellent! Happy to help Stephanie.

  • @nishantharao766
    @nishantharao7663 жыл бұрын

    Thank you for solving my problem on splitting !

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    No worries! My pleasure Nishantha.

  • @katidaniel
    @katidaniel3 жыл бұрын

    Thank You! Was very useful!

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    Awesome! 😊

  • @miguelcorral1217
    @miguelcorral12172 жыл бұрын

    Thanks a lot! You are amazing, bro!! Blessings!!

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Thanks 😊 Blessings to you also Miguel.

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi6 жыл бұрын

    Thank you so much for sharing

  • @Computergaga

    @Computergaga

    6 жыл бұрын

    You're welcome Syed.

  • @andiaz2011
    @andiaz20112 жыл бұрын

    Thanks you so much. Exactly what I need.

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Great to hear. Happy to help.

  • @nguyentuanvi3132
    @nguyentuanvi31323 жыл бұрын

    big thanks to you, sir. You just saved my life.

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    My pleasure, Nguyễn 👍

  • @Sabitha-mn8wl
    @Sabitha-mn8wl4 жыл бұрын

    Very Useful!

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Thank you.

  • @Roshan-kf3dh
    @Roshan-kf3dh4 жыл бұрын

    Is there a way to get a single long row of data into multiple rows of equal colums. For eg. I have 1 row with columns A-ABC but I need it as a table of rows with data only from A-Q columns. Please comment the link if you already have a video on this. Thanks!

  • @jstarine
    @jstarine2 жыл бұрын

    It’s very useful!! Thankiew

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    You're welcome 😊

  • @JM-gy8jz
    @JM-gy8jz5 ай бұрын

    You just saved me hours of manual work. Haha. Thanks a lot.

  • @Computergaga

    @Computergaga

    5 ай бұрын

    My pleasure 👍

  • @rahulkalingeri1206
    @rahulkalingeri12063 жыл бұрын

    Hello, How can I do a reverse of this? I have multiple values in a cell in power query, separated by comma and I would like to display it with a carriage return (alt+enter) when I load it to table in excel. Is this possible?

  • @yiyiwang8861
    @yiyiwang8861 Жыл бұрын

    Hi, my table has multiple columns that need to be split. But this function only works to split one column only. Is there a way to split multiple columns?

  • @dimasyogapratama3930

    @dimasyogapratama3930

    Жыл бұрын

    Hi did you manage to solve your case??please let me know, i have same problem

  • @manishjain6317
    @manishjain63174 жыл бұрын

    thank you very much!

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    You're welcome Manish.

  • @czhao9792
    @czhao97923 жыл бұрын

    THANK YOU!

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    You're very welcome 👍

  • @ismailismaili0071
    @ismailismaili00716 жыл бұрын

    Smart thank you

  • @Computergaga

    @Computergaga

    6 жыл бұрын

    You're welcome Ismail, thanks.

  • @shirleybaumer3485
    @shirleybaumer34854 жыл бұрын

    Hi, thanks for the great video! Do you know if it's possible to do it in Google Sheets as well?

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Thank you Shirley. Sorry, but I do not Google Sheets well enough.

  • @saraleopardi4236
    @saraleopardi42363 жыл бұрын

    Hi Computergaga! Could you please tell me what's in the bracket?

  • @entertainmentgalaxy971
    @entertainmentgalaxy9716 жыл бұрын

    thanks for sharing

  • @Computergaga

    @Computergaga

    6 жыл бұрын

    You're welcome Haider.

  • @Friend-z-Mania
    @Friend-z-Mania3 жыл бұрын

    Thanks a lot for the video..Wonderful VIdeo

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    Thank you very much.

  • @almostaverageroger
    @almostaverageroger3 жыл бұрын

    Thank you sooo much

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    Welcome Roger 😊

  • @joeblack02051999
    @joeblack020519993 жыл бұрын

    thanks for your video, very helpful. Do you know how if I want to split them after 2nd LF?

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    Thank you, Ferry. You could maybe split by the first occurrence and then do it on the first occurrence again.

  • @stevennye5075
    @stevennye50754 жыл бұрын

    Interesting!

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Thank you Steven.

  • @federicoricca5522
    @federicoricca55223 жыл бұрын

    This is great! Thank you so much. Do you think it would be possible to split multiple columns into rows? Suppose instead of just one result column, you have resultA and resultB, both with the same structure, i.e. same number of line breaks.

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    Thank you. Multiple line breaks, yes absolutely. If you did want columns into rows, you could use Unpivot Columns - kzread.info/dash/bejne/ZJ2MyKutlbLIibA.html

  • @jiewenluo5545

    @jiewenluo5545

    2 жыл бұрын

    I want to ask the exact same question!!!!

  • @flowsy8545
    @flowsy85455 ай бұрын

    Thanks a lot

  • @Computergaga

    @Computergaga

    Ай бұрын

    Most welcome

  • @LotfyKozman
    @LotfyKozman6 жыл бұрын

    Thanks for this video. In this example, how can I tell PQ to provide me with a table that contains the office name, and only the last number In the result column, such as (London 20). Thanks.

  • @Computergaga

    @Computergaga

    6 жыл бұрын

    You're welcome Lotfy. We could perform the steps in the video. And then insert an Index column from 1 on the Add Column tab. Then Add a Custom Column and insert the formula - =Number.Mod([Index],4). This will result in 0 for the last result for each office. We can then filter that column to show only those with 0 in the Mod column. Then remove the Index and Mod columns and load to the table. Hope that makes sense.

  • @excelworx8712
    @excelworx87124 жыл бұрын

    Thanks Alan. You turned a mountain into a molehill!

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Great to hear Rajan 👍

  • @Saivasista7
    @Saivasista74 жыл бұрын

    Hi. could you please tell me how can I split if I have two or more colums in which split is required

  • @ravikpatel

    @ravikpatel

    3 жыл бұрын

    did you figure this out?

  • @bartoszbieniek3042

    @bartoszbieniek3042

    3 жыл бұрын

    for future please try watching this video: kzread.info/dash/bejne/fIGD0NRsdLLXqc4.html Also remember to use "#(lf)" instead of ";" as you want to split after line break!

  • @wobwab
    @wobwab4 жыл бұрын

    This method works if you have only one column. But not for more than one column to split at once. The option "Split Column" is grayed out.

  • @erp73
    @erp735 жыл бұрын

    Hi first thanks for this video. I have a csv file where there is 2 columns that is comma separated (size and stock) and when i split fx the size everything is okay like your video - but when i split stock the same way everything changes so where fx size was S, M, L it is now S,S,S,S,M,M,M and so on. So the second separation splits the first separation again.... So how can i split again without the first separation splits again? Hope it makes sense :-). Thank you

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    It should split the columns that are selected so I think you must have accidentally selected both. You could modify this by deleting a step in the applied steps on the right.

  • @erp73

    @erp73

    5 жыл бұрын

    @@Computergaga Hi yes that is what I thought at first, but I have tried it a few times and it still splits the first split again.

  • @mujerranchera3489
    @mujerranchera34894 жыл бұрын

    Hello Do you know what might be wrong if the Advanced Options doesn't give the option of split by row or column?

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Sorry, I don't know why this is.

  • @debbienkuna6855
    @debbienkuna68552 жыл бұрын

    This was a great tutorial however what if you have tons of data on one spreadsheet and you will be performing the power query multiple time is my case. I do not know how to return my split data to my original spreadsheet.

  • @mohamedabdelaziz9971
    @mohamedabdelaziz99715 жыл бұрын

    THE SPLIT TO ROWS IN THE ADVANCED OPTIONS IS NOT AVAILABLE IN OFFICE 2016

  • @akshatavagyani1058
    @akshatavagyani10583 жыл бұрын

    Thanks for the sharing, however I am not able to view rows option under advanced options, it showing only column

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    I'm not sure why this is. Maybe it is an older version? All versions should have rows under Advanced Options.

  • @roniedhaka
    @roniedhaka Жыл бұрын

    very useful. I have a huge excel file with 100+ rows and 10+ columns. Some rows have multiple line items. Not all rows have the same set of lines- there are differences, which means some particular cell has 3 lines, some 5 lines, and some 10+. is that method showing this video also work?

  • @Computergaga

    @Computergaga

    Жыл бұрын

    Thank you. Yes, it should work as it uses the delimiter. As long as the delimiter is the same, then no worries on how many rows. But give it a try with your data.

  • @roniedhaka

    @roniedhaka

    Жыл бұрын

    @@Computergaga Hi, i just tried but failed. In your example you have multiple lines in one column, the rest column is single-line text. My file has several columns with several lines in each column. Like- column A has 4 lines, Column B has 4 line, Column C has 5 lines etc. Now, I want to split column B into multiple rows but with the same split of Columns A and C lines. (each line should match next columns line)

  • @dimasyogapratama3930

    @dimasyogapratama3930

    Жыл бұрын

    @@roniedhaka Hi did you manage to solve your case??please let me know, i have same problem

  • @Lina-iu2iy
    @Lina-iu2iy3 жыл бұрын

    Hello, thank you for your video. I tried several times to do this but I am getting this message each time "Container exited unexpectedly with code 0xFFFFFFFF" . Do you happen to know the reason by any chance? Thank you in advance!

  • @senthamarais3983
    @senthamarais39833 жыл бұрын

    Old vision varuma? In this row separate also telme

  • @ExceliAdam
    @ExceliAdam6 жыл бұрын

    Power Query makes many Excel task easy 😀

  • @Computergaga

    @Computergaga

    6 жыл бұрын

    It certainly does. I love it.

  • @atindrasinhvaghela390
    @atindrasinhvaghela3904 жыл бұрын

    How can we use this function in Microsoft Excel 2013? I didn't found in From/Table Range in Data Menubar in Microsoft Excel 2013.

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    In Excel 2013, Power Query is an Add-In. You can find more details here - shorturl.at/ghlT5

  • @ashutoshsaraswat1175
    @ashutoshsaraswat11754 жыл бұрын

    THE SPLIT TO ROWS IN THE ADVANCED OPTIONS IS NOT AVAILABLE IN OFFICE 2016 . How can i do it in office 2016

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    I thought it was there. May have to wait for the update.

  • @adeelbaig6063
    @adeelbaig60632 жыл бұрын

    How to do this in MS Excel 2016

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Power Query is available in Excel 2016 so I would expect the same approach. I also have this video kzread.info/dash/bejne/oaiBzsWPc6W4eZM.html which provides another solution for you to try.

  • 4 жыл бұрын

    I need to split a cell that has pieces of data separated by an enter, something like this -This is a row of data -This is the enter -This is another row for some reason, this option won't work for me :(

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Yes, your data is in separate rows as opposed to different lines in a row. So a different technique is needed.

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    As long as there is a consistency or a pattern something can be done. This video might give you ideas - kzread.info/dash/bejne/l4qJpZuBla3Jldo.html. Also Column from Examples might help.

  • 4 жыл бұрын

    @@Computergagathat's not quite what I have but I appreciate the response :)

  • @davidrussell3189
    @davidrussell31892 жыл бұрын

    The final step didn't work. It didn't load back to the worksheet

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Sounds like it may have loaded as a connection. On the right, you will see a Queries pane with the query. If not, click Data > Queries & Connections. Right-click the Query and click Load To. Select Table and click a cell on the sheet 👍 Or, try again and ensure at the final step to use the drop-down list and click Load To to specify a table instead of connection only.

Келесі