Excel公式将其中单元格可能包含多个值的列拆分为另一列,其中每个单元格仅包含一个值 [英] Excel Formula to split columns where cells may contain multiple values into another column, where each cell only contains a single value

查看:85
本文介绍了Excel公式将其中单元格可能包含多个值的列拆分为另一列,其中每个单元格仅包含一个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Excel中有一列如下所示:

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:

感谢您的帮助!

推荐答案

使用Powerquery,按换行分隔并分成新的行=)

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

让我们想象一下这组数据:

Let's imagine this set of data:

  • 选择您的数据,在此示例中为 A1:A7 .
  • 将该数据导入PowerQuery AKA Get& Transform(包括标题).
  • 在首页"下点击拆分列"并选择按分隔符".
  • 使用自定义定界符:#(lf),并在高级对号"Rows"下打钩.
  • 点击确定"并关闭PQ.您的结果在那里.
  • 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.

这篇关于Excel公式将其中单元格可能包含多个值的列拆分为另一列,其中每个单元格仅包含一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆