【发布时间】:2019-05-03 19:20:31
【问题描述】:
我有一个包含大约 4000 行多行单元格的 Excel 文件,我需要删除每个单元格的最后一行。
所有单元格的格式如下 - 每个单元格的最后一行也以相同的单词 (CODE:) 开头,但长度可能不同:
this is the first line
this is the second line
this is the third line
CODE: 123456789
收件人:
this is the first line
this is the second line
this is the third line
我也试过用“|”替换换行符符号并使用删除最后一个“|”之后的所有内容的公式但没有成功,几乎我发现的每个公式都在 Excel 中返回错误。
this is the first line|this is the second line|this is the third line|CODE:123456789
收件人:
this is the first line|this is the second line|this is the third line
多行或带符号无关紧要 - 任何一种方式都适合我。
【问题讨论】:
-
什么是多行单元格?合并单元格?
-
一个包含换行符(alt+enter)的单元格,我的错。
-
标记为重复,使用链接中的代码找到最后一个“|”的位置然后使用 mid 选择该字符之前的所有内容
-
什么版本的 Excel?
标签: excel