I have the abstract string "firstString/secondString/thirdString/fourthString" in C2.
I want to use a single Excel formula (not VBA; no helper cells) to extract "secondString". Any ideas?
Note that "*String" is any arbitrary sequence of characters, not including "/". So, the formula must depend on only the delimiters ("/"), not the length of substrings or the characters themselves in between.
Also, the solution must be limited to Excel 2003 functions.
Off-hand, the best I can do is:
=REPLACE(LEFT(C2, FIND("/",C2, FIND("/",C2)+1)-1), 1, FIND("/", C2), "")
Can we do better?
-----
I'm helping someone in another forum. The above meets his needs. But for "extra credit", the ideal formula can be easily adapted to extract "thirdString". Sigh, my formula would be cumbersome to adapt for that purpose.
I want to use a single Excel formula (not VBA; no helper cells) to extract "secondString". Any ideas?
Note that "*String" is any arbitrary sequence of characters, not including "/". So, the formula must depend on only the delimiters ("/"), not the length of substrings or the characters themselves in between.
Also, the solution must be limited to Excel 2003 functions.
Off-hand, the best I can do is:
=REPLACE(LEFT(C2, FIND("/",C2, FIND("/",C2)+1)-1), 1, FIND("/", C2), "")
Can we do better?
-----
I'm helping someone in another forum. The above meets his needs. But for "extra credit", the ideal formula can be easily adapted to extract "thirdString". Sigh, my formula would be cumbersome to adapt for that purpose.