如何提取特定的字符串

时间:2013-03-12 08:32:57

标签: excel extract

我想提取"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

1 个答案:

答案 0 :(得分:0)

你可以在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)

enter image description here

Right click在图片上,open in new tab以全尺寸查看。

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

相关问题