This was started on a different post but I realized it was published 15 years ago so reposting..
I would like to display the entire length of the string up to the point chosen by the "Return set" ?
(this would include previous delimiters)
Would someone please be able to modify the "Answer" formula to suit?
Something along the below example:
Value: a/b/c/d/e
Return Set: 2
Delimiter: /
Answer: a/b
I have attached String example below
I would like to display the entire length of the string up to the point chosen by the "Return set" ?
(this would include previous delimiters)
Would someone please be able to modify the "Answer" formula to suit?
Something along the below example:
Value: a/b/c/d/e
Return Set: 2
Delimiter: /
Answer: a/b
I have attached String example below
Cell Formulas | ||
---|---|---|
Range | Formula | |
M5:M8 | M5 | =D12 |
P5:P8 | P5 | =IF(O5=1,LEFT(M5,FIND(O5,M5,1)-1),IF(N5=LEN(M5)-LEN(SUBSTITUTE(M5,O5,""))+1,RIGHT(M5,LEN(M5)-FIND("~",(SUBSTITUTE(M5,O5,"~",LEN( M5)-LEN(SUBSTITUTE(M5,O5,"")))),1)),MID(M5,FIND("~",SUBSTITUTE(M5,O5,"~",N5-1),1)+1,FIND("~",SUBSTITUTE(M5,O5,"~",N5),1)-FIND("~",SUBSTITUTE(M5,O5,"~",N5-1),1)-1))) |