【问题标题】:how to extract a particular string如何提取特定字符串
【发布时间】:2013-03-12 08:32:56
【问题描述】:

我想提取"eirnan" 加上后面跟着的其他数字。 我找不到任何匹配的解决方案..

例子

Please indicate/  the correct salesman id (Should be _Eirnan413431 _)
Please indicateEirnan3659 /  the correct salesman id (Should be __)
Please indicate / Eirnan84215; the correct salesman id (Should be __)
Eirnan421/Please indicate /  the correct salesman id (Should be __)
Please indicate/  the correct salesman id Eirnan4752151 /(Should be __)

请帮忙

我正在使用 EXCEL 2010

【问题讨论】:

  • 能否以单元格值为例进行说明

标签: excel excel-2010 extract


【解决方案1】:

你能在B1中试试这个公式并抄下来吗?

=MID(A1,FIND("Eirnan",A1,1),MAX(INDEX(ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))*ROW(INDIRECT("1:"&LEN(A1))),0))-FIND("Eirnan",A1,1)+1)

图片上的Right clickopen in new tab 以全尺寸查看。

基于 MVP Ron Coderre 在MrExcel 上的代码。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-19
    • 2021-11-08
    • 2015-03-09
    • 2017-07-08
    • 1970-01-01
    相关资源
    最近更新 更多