我正在尝试编写一个excel forumla,其中包含以下内容:
http://www.saga.co.uk/money/taxandbenefits/carersallowance.asp
http://www.saga.co.uk/money/taxandbenefits/index.asp
并从这两个例子输出:
carersallowance
index
任何人都知道如何做到这一点?非常感谢帮助。
答案 0 :(得分:3)
如果您的示例是在A1尝试
=SUBSTITUTE(REPLACE(A1,1,LOOKUP(2^15,FIND("/",A1,ROW(INDIRECT("1:"&LEN(A1))))),""),".asp","")
答案 1 :(得分:3)
另一种方式;
=RIGHT(A1,LEN(A1)-FIND("::",SUBSTITUTE(A1,"/","::",LEN(A1)-LEN(SUBSTITUTE(A1,"/","")))))