Excel Formula to split columns where cells may contain multiple values into another column, where each cell only contains a single value

拥有回忆 提交于 2021-01-29 09:17:06

问题


I have a column in Excel that looks like the below:

And what I want is a formula that can copy the column into the next column splitting each cell with multiple values so that each cell will only contain a single value. Similar to this:

Thanks for your help!


回答1:


Use Powerquery, Split by linefeed and into new rows =)

Let's imagine this set of data:

  • Select your data, A1:A7 in this example.
  • Import this data into PowerQuery AKA Get&Transform (including headers).
  • Under "Home" click, "Split Column" and choose "By Delimiter".
  • Use a custom delimiter: #(lf) and under advanced tick "Rows".
  • Hit "OK" and close PQ. Your results are there.



来源:https://stackoverflow.com/questions/64313259/excel-formula-to-split-columns-where-cells-may-contain-multiple-values-into-anot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!