标签: excel excel-formula
我需要从没有VBA的字符串中获取产品代码,例如:
this is product KAK 8732
this is product YUI 889
this is product SM 001
我想获得产品代码:
KAK 8732
YUI 889
SM 001
请帮助,谢谢
答案 0 :(得分:1)
= SUBSTITUTE("这是产品KAK 8732","这是产品","")
答案 1 :(得分:1)
试试这个:
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",60)),120))
或
=MID(A1,FIND("@",SUBSTITUTE(A1," ","@",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))-1))+1,255)
参见图片以供参考。