提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何在Excel中通过空格/逗号/分隔符分割文本?

如果你有一个数据列列表,并且你希望通过一个特定的分隔符将它们分成几列,就像下面显示的截图一样,你如何在Excel中分割它们? 也许有些用户只是想到了文本到列的功能,但现在我不仅会介绍文本到列的功能,还会为您介绍一个VBA代码。

将文本字符串按空格/逗号/分隔符与文本列分隔成多个列

将文本字符串按空格/逗号/分隔符分隔成多个行/列

轻松地将文本和数字从一个单元格/列分成不同的列/行

轻松地将多个工作表/工作簿/ CSV文件组合成一个工作表/工作簿

将来自不同工作簿的几十张纸合并到一张纸上可能会很麻烦。 但用Excel的Kutools 合并(工作表和工作簿) 实用程序,只需点击几下即可完成! 全功能免费试用60天!
广告结合床单书1

Office选项卡在Office中启用选项卡式编辑和浏览,使您的工作更轻松......
Kutools for Excel - 最佳办公生产力工具将解决您的大部分Excel问题
  • 重用任何东西: 将最常用或最复杂的公式,图表和其他任何内容添加到您的收藏夹中,并在将来快速重复使用它们。
  • 超过20文本功能: 从文本字符串中提取数字; 提取或删除部分文本; 将数字和货币转换为英语单词...
  • 合并工具:多个工作簿和表格合二为一; 合并多个单元格/行/列而不丢失数据; 合并重复行和总和...
  • 拆分工具:根据价值将数据拆分为多个表格; 一个工作簿到多个Excel,PDF或CSV文件; 一列到多列......
  • 粘贴跳过 隐藏/过滤行; 数和总和 按背景颜色; 创建邮件列表和 通过Cell的价值发送电子邮件...
  • 超级过滤器: 创建高级过滤方案并应用于任何工作表; 排序 按周,日,频率等; 筛选 通过大胆,公式,评论......
  • 超过300强大的功能; 适用于Office 2007-2019和365; 支持所有语言; 在公司轻松部署; 全功能60天免费试用。

箭头蓝色右泡 将文本字符串按空格/逗号/分隔符按文本分列功能分割为多列

“文本到列”功能对于将列表拆分为Excel中的多列非常有用。 此方法正在讨论如何使用Excel中的“文本到列”功能通过指定的分隔符分割数据。 请做如下操作:

1。 选择要按分隔符分隔的列列表,然后单击 数据 > 文本到列。 看截图:

2。 然后a 将文本转换为列向导 对话框弹出,并检查 分隔 选项,然后单击 下一步 按钮。 看截图:

3。 在打开转换为文本到列向导 - 步骤2的3对话框中,请检查您需要分隔数据的分隔符。

注意:如果您需要用特殊的分隔符分割文本字符串,请检查 其他 选项,然后在下面的框中输入分隔符。

4。 点击 。 现在您可以看到所选列中的列表已被指定的分隔符分割为多个列。


箭头蓝色右泡 用Kutools for Excel将空格/逗号/分隔符分割为多行/多列

以上方法只能将文本字符串拆分为多个列。 这种方法将为Excel引入Kutools 拆分单元格 实用程序可以轻松地在Excel中通过指定的分隔符将文本字符串拆分为多行或多列。


1。 选择要分割文本字符串的范围(在我们的例子中,我们选择范围A1:A9),然后单击 Kutools > 文本 > 拆分单元格.

doc分割文本01

2。 在打开“拆分单元格”对话框中,请检查 拆分为行 选项或 拆分为列 在你需要的选项 类型 部分,接下来在中指定一个分隔符 指定一个分隔符 部分,然后单击 Ok 按钮。 见上面的截图:

现在另一个分割单元对话框弹出,请选择目标范围的第一个单元格并单击 OK 按钮。

doc将文本拆分为行列10

免费下载Kutools for Excel


箭头蓝色右泡演示:按空格/逗号/分隔符将文本字符串分割成多行/列

在这个视频中, Kutools Kutools Plus 选项卡添加 Kutools for Excel。 如果需要,请点击 60天免费试用,不受限制!

轻松地将文本和数字从一个单元格/列分成不同的列/行

Kutools for Excel增强了它的功能 拆分单元格 实用程序并支持将一个单元格/列的所有文本字符和数字批量分隔成两列/行。 全功能免费试用60天!

广告拆分单元格单独的文本编号


箭头蓝色右泡相关文章:


Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Bob · 13 days ago
    This just shows how horrible excel is...how about a SPLIT function?? Duh...
  • To post as a guest, your comment is unpublished.
    Eric · 7 months ago
    Ok, so here is a problem I am stuck on that I cannot seem to resolve. I am looking to break up a long string of text with the following requirements:
    1) Text can only be broken up at a space (not in the middle of a word)
    2) The total length for each parsed cell must be as close to 40 characters as it can get using the space rule above.

    For example, this comes in a single cell: "It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief". In this example, I would expect the formula to break up this text into 4 cells:

    It was the best of times, it was the
    worst of times, it was the age of
    wisdom, it was the age of foolishness,
    it was the epoch of belief

    I keep getting wrapped around the axle trying to use a combo of left,mid,right and search/find formulas, but not only is it very inelegant, but as soon as I run into a non-unique word, my find formula breaks down.
  • To post as a guest, your comment is unpublished.
    Guest · 8 months ago
    Thanks. It is really helpful.
  • To post as a guest, your comment is unpublished.
    Cosmas Kirui Tugatt · 9 months ago
    Hello, How do i separete a long sentence into columns like


    12534_MK_EC0102-Kanyuambora_OUTA 172.22.118.13 255.255.255.192 172.22.118.1. I need the process of separating to columns of: Site ID 12534_MK_EC0102; Site Name Kanyuambora_OUTA;IP 172.22.118; Mask 255.255.255; Gateway 172.22.118.1. Kindly assist.
    • To post as a guest, your comment is unpublished.
      kellytte · 7 months ago
      Hi Cosmas,
      How do you want to split the lone sentences by? In your example, you can split the sentence by the delimiter “_” or “;” or “.”
      Just try them as you need!
    • To post as a guest, your comment is unpublished.
      TxCentrist · 7 months ago
      You can use the FIND and LEN commands to separate fields, for example :
      A1: 12534_MK_EC0102-Kanyuambora_OUTA 172.22.118.13 255.255.255.192 172.22.118.1.
      B1: =FIND(" ",$A$1) B2: =FIND(" ",$A$1,B1+1) B3: "Fill Down From B2"
      C1: =LEFT($A$1,B1) C2: =RIGHT(LEFT($A$1,B2),B2-B1) C3: "Fill Down From C2"
    • To post as a guest, your comment is unpublished.
      kellytte · 8 months ago
      Hi Cosmas,
      You can apply the Text to Columns feature on the Data tab in Excel Ribbon. In the Wizard, please set both delimiters of space and custom delimiters -, and it will split your long cell content to desired columns.
  • To post as a guest, your comment is unpublished.
    Suraj Gupta · 1 years ago
    Thank you so much for posting this, it's really very helpful at times.
  • To post as a guest, your comment is unpublished.
    Huy Nguyen · 1 years ago
    "172.22.118.13
    255.255.255.192
    172.22.118.1"

    how do i split that cell information into 3 columns?
    • To post as a guest, your comment is unpublished.
      kellytte · 8 months ago
      Hi Huy,
      How do you want to split the cells by? By length? By delimiter of dot? Or others?
  • To post as a guest, your comment is unpublished.
    Someone in the offic · 1 years ago
    THAK YOU!!!
  • To post as a guest, your comment is unpublished.
    An African Dictator · 1 years ago
    Thanks god, and by that I mean you for this. Saved me a lot work. Thank you again.
  • To post as a guest, your comment is unpublished.
    Some Guy · 2 years ago
    This saved me hours of retyping a list of addresses. THANK YOU!!!!
  • To post as a guest, your comment is unpublished.
    Sriram Balaji · 2 years ago
    i need to sperate a word from sentence in excel sheet which is present in the single cell.

    eg : abcds ----- sri
  • To post as a guest, your comment is unpublished.
    Samuel · 2 years ago
    Kudos to you guys you make my day
  • To post as a guest, your comment is unpublished.
    Home Address · 2 years ago
    Please enter text of your comment!
  • To post as a guest, your comment is unpublished.
    Reena · 2 years ago
    Thanks for this information. It's very useful and easy to understand.
  • To post as a guest, your comment is unpublished.
    NoName · 3 years ago
    :D It's cool!

    P.S. Why do I need to add more words here... :-?
  • To post as a guest, your comment is unpublished.
    Hina · 4 years ago
    hina excel ghskj t'amfngeh 'afkndjgb s'difhjsdfnsalodfhakaf