Forum Discussion

matej papez's avatar
matej papez
Copper Contributor
Apr 14, 2018

parsing the text

Hi,

 

I am interested in how to convert text that is grouped in one cell (with line break "alt+return") into each cell individually. And vice versa.

 

Please see attached picture.

  • Haytham Amairah's avatar
    Haytham Amairah
    Silver Contributor

    Hi Matej,

     

    This can easily be done by using Get & Transform (Power Query).
    But unfortunately, it's not supported on the Mac!

    • matej papez's avatar
      matej papez
      Copper Contributor
      Hi Haytham,

      no problem. I have windows too. Can you show me how to do it?
      Thank you.
      • Haytham Amairah's avatar
        Haytham Amairah
        Silver Contributor

        OK, please find the attached file to test the solution.

         

        You can update the row data and then refresh the next table (Right Click >> Refresh) to see how it works.
        This table is linked to a query that works behind the scenes and it converts the data to the shape you want!

         

        NOTE: If you don't have Excel 2016, you have to download and install the Power Query add-in.

         

        Update:

        I've updated the query in the workbook, looks like it was buggy!

Resources