2013-03-12 133 views
1

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

請幫忙用2010 EXCEL

+0

你能解釋一下單元格的值嗎? – AsepRoro 2013-03-12 08:50:15

回答

0

你可以試試這個公式中的B1抄下

IM?

=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

圖像0​​和open in new tab看到它在全尺寸。

根據MVP Ron Coderre的代碼MrExcel