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

or

如何仅在Excel中提取文本之前/之后的空格或逗号?

如果您想从列表中提取文本之前或之后的文本,如下所示,是否有很好的方法来完成它? 让我告诉你一些诀窍在Excel空间之前或之后提取文本。

在公式之前或之后用空格或逗号提取文本

用Kutools for Excel在空格或逗号之前或之后提取文本

在空格之前或空格或任何其他分隔符之前提取文本

仅从一个单元格/列中将数字(或文本)提取到不同的列/行中

Kutools for Excel增强了它的功能 拆分单元格 实用程序并支持从一个单元格/列将所有文本字符或数字批量提取到两列/行。 全功能免费试用60天!
广告拆分单元格单独的文本编号

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

箭头蓝色右泡 在Excel中使用公式提取公式之前或之后的文本

只能使用公式从列表中快速提取文本之前的文本。

选择一个空白单元格,然后键入此公式 = LEFT(A1,(FIND(“”,A1,1)-1)) (A1是要提取文本的列表中的第一个单元格),然后按 输入 按钮。

提示建议:
(1)如果要在逗号之前或之后提取文本,可以更改 “”“,”.
(2)如果要仅在空间后提取文本,请使用此公式 = MID(A1,FIND(“”,A1)+ 1,256).
(3)此方法通过指定单元格中的第一个空格提取文本。 如果单元格中存在多个空格,例如“Katty J James”,则为公式 = MID(A1,FIND(“”,A1)+ 1,256) 将在第一个空格后提取所有字符。

注意丝带 公式太难记了? 将公式保存为自动文本条目,以便将来只需点击一下即可重复使用!
阅读全文... 免费试用

箭头蓝色右泡 使用Kutools for Excel在空间之前或之后提取文本

如果你已经安装 Kutools for Excel,你可以用它 提取文本 实用程序从列表中快速提取文本之前或之后的文本。

1。 选择列表并点击 Kutools > 文本 > 提取文本。 看截图:

2。 在弹出的对话框中输入 * 空间文本 框中单击 添加 按钮,只能检查这个新增的规则 提取列表 部分,然后单击 Ok 按钮。
小技巧:如果只想在空间后提取文本,请键入 空间 并按照 *文本 在这一步框。

3。 在另一个弹出对话框中,请指定输出提取数据的目标范围的第一个单元格地址,然后单击 OK 按钮。 到目前为止,您只能在提取空间之前看到文本。

注意:如果要在逗号前后提取文本,可以键入 *, or ,*文本 框。

Kutools for Excel - 包括多个用于Excel的300便捷工具。 全功能免费试用60天,无需信用卡! 现在加入


箭头蓝色右泡 在空格之前和空格/逗号之后分别同时提取文本

Kutools for Excel支持另一种实用工具 分裂细胞 实用程序来帮助我们在空格/逗号和空格/逗号之后的文本之前提取文本,并将它们输出到不同的单元格中。 请做如下操作:

1。 选择您要从中提取的文本字符串列表,然后单击 Kutools > 文本 > 拆分单元格.

2。 在打开的“分割单元”对话框中,指定分割类型 类型 部分,检查中的一个拆分分隔符 拆分 部分,然后单击 Ok 按钮。 见上面的截图:
在我们的情况下,我们检查 拆分为列 选项和 太空 选项,然后单击 Ok 按钮。 现在,文本字符串列表根据空间拆分为一列或多行。 看下面的截图:

注意:如果您需要在逗号前后提取文本,请检查 其他 选项,在第一个拆分单元格对话框中,并在下面的框中输入逗号“,”。


箭头蓝色右泡演示:通过Kutools for Excel在空格,逗号或其他分隔符之前或之后提取文本

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

箭头蓝色右泡相关文章:


Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能30天免费试用。
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.
    Abbas Aziz · 6 months ago
    If i buy a licence then for how many days will it be valid for me?
    • To post as a guest, your comment is unpublished.
      kellytte · 5 months ago
      Hi Abbas Aziz,
      For license issues, please contact support@extendoffice.com
  • To post as a guest, your comment is unpublished.
    Atul · 2 years ago
    Hi,

    I want to know the formula which can give me the text after few characters. how to retrive that?

    can someone help with this

    Regards/-
    atul
    • To post as a guest, your comment is unpublished.
      Mahwish · 2 years ago
      Dear Atul,

      If u need exactly after certain character, (say 20 words incl space). You can go for DATA tab, Then select the column you want changes... then go to TEXT TO COLUMNS ribbon. After that a dialogue box will open and u can see Fixed width, Select it. Click next, then u will see 10, 20, 30..., click on 20 (or how many words u need after), then next. FINISH.

      CAUTION: Insert some blank columns after the required column to avoid any data loss
  • To post as a guest, your comment is unpublished.
    Tim · 2 years ago
    Hello,
    Perhaps you can help me?
    I like your information above, but as usual I have a different split column issue.
    So... I'm looking for a way to split a cell of text into to. The split must not come more that 30 characters (Including spaces) from the left but must be at a space or the immediate previous space to the 30th character point.

    So if the cell contained: "EMERGENCY MU/INITIAL FILL TO CONDENSER CTRL VAL"
    The 30th Character is the "C" of Condenser so the cell will split between "TO" and "Condenser"
    How do I write this code please?
    Many thanks for your help,
    Tim
  • To post as a guest, your comment is unpublished.
    Pappu Singh · 3 years ago
    SNJAI21470,,499,PO15135,8907617138985,Manuf

    How to extract third comma seprate value in other cell
  • To post as a guest, your comment is unpublished.
    Chad · 3 years ago
    Thank you so much!! so helpful!
  • To post as a guest, your comment is unpublished.
    Linda · 3 years ago
    I'm wanting to create a unique order number/side mark using text from different cells:

    EXAMPLE:

    Account: AB
    Contractor: Buffalo Run
    Address: 11453 Main St.

    In this example lets say everything before the colons are the column name and to the right of the colon is the data within the column. The unique ID/sidemark I want to create is using these cells. so the result is: [b]ABBR11453[/b], the break down of this ID:

    [b]AB [/b]= extracted from Cell 1 (Accounts)
    [b]BR [/b]= extracted from Cell 2 (Contractor), 1st letter of the first 2 words in this cell i.e. B for Buffalo and R for Run
    [b]11453 [/b]= extracted from Cell 3, only the numbers in the address

    I've watched tutorials and using the CONCATENATE, LEFT, MID and other functions and I'm not quite getting it. Can you PLEASE HELP!
  • To post as a guest, your comment is unpublished.
    Gus · 3 years ago
    I want to thank you, It took me over 3- 4 hours looking into different websites, help instructions and formula list, and finally you have the answer I needed. =LEFT(A1,(FIND(" ",A1,1)-1)) As quickbooks merged the part numbers with the descriptions in most of the inventory reports, I needed to build a report with vlookups and other formulas to get the inventory to show in days of stock but I was not able to extract the part number from the reports until I found your formula. Advertise it as a work around in Quickbooks reports and your website will be more popular.

    Cheers.
  • To post as a guest, your comment is unpublished.
    Trae · 3 years ago
    This was very helpful...!!!!
  • To post as a guest, your comment is unpublished.
    Starla Harrington · 4 years ago
    Hi,

    I am having trouble finding the formula for the following example I want to make a new column and have only the last name no first, middle initial, comma, or MD:

    John P. Smith, MD

    Thanks, Starla H.
  • To post as a guest, your comment is unpublished.
    Desiree · 4 years ago
    what is the purpose of the 256 at the end of the formula in the first example?
  • To post as a guest, your comment is unpublished.
    Desiree · 4 years ago
    In the first example about extracting the text after space only with the formula =MID(A1,FIND(" ",A1)+1,256). What is the purpose of the 256 in the formula?
  • To post as a guest, your comment is unpublished.
    Johann · 4 years ago
    Hello
    How can I extract text after first space to next space ?
    thank you
  • To post as a guest, your comment is unpublished.
    Sekhar · 4 years ago
    Try Trim(A1) or Clean(A1) where A1 is the cell you want to clean
  • To post as a guest, your comment is unpublished.
    Sekhar · 4 years ago
    try Trim(A1) or clean(A1)
    where A1 is the cell you want to clean spaces from
  • To post as a guest, your comment is unpublished.
    Vikram Jangir · 4 years ago
    Hi Sir
    Good Evening

    I want to know informatio about to remove space text after cell.
    kindly suggest me good formula about it.
    i have urgent need of this.

    Thanks,

    Vikram jangir