Reputation: 57
I am looking to extract string after the last "/" and first "." in excel using one formula. I tried below and it works how can I combine them into one formula?
=MID(A1,FIND("=",SUBSTITUTE(A1,"/","=",LEN(A1)-LEN(SUBSTITUTE(A1,"/",""))))+1,256)
=MID(B1,1,FIND(".",B1)-1)
Upvotes: 0
Views: 1190
Reputation:
Try,
=REPLACE(TRIM(RIGHT(SUBSTITUTE(A1, "/", REPT(" ", LEN(A1))), LEN(A1))), FIND(".", TRIM(RIGHT(SUBSTITUTE(A1, "/", REPT(" ", LEN(A1))), LEN(A1)))), LEN(A1), "")
Upvotes: 1