I needed to find the second instance of the "/" charachter within a text string, and searched the web and found this and it works, since what i need was the rest of the text string to the right, but I can't figure out how you arrice at this construction and why this works, i'd greatly appreciate if one can give me a brief explanation.
following is the formula;
=RIGHT(A1,LEN(A1)-FIND("^^",SUBSTITUTE(A1,"/","^^",LEN(A1)-LEN(SUBSTITUTE(A1,"/","")))))
RIGHT this function will pull X number of characters starting at the right end of a text string
LEN this function will determine how many characters (the length) of a text string
FIND this function will find the position of the character or characters
SUBSTITUTE this function will substitute a character or string of characters with another. It can replace ALL or a specific instance
The trick of the formula is replacing the correct "/" (1st, second, 3rd, etc) with a unique character set that will not be found anywhere else in your text string ("^^"). To determine which "/" instance to replace the
LEN(A1)-LEN(SUBSTITUTE(A1,"/","")) part of the formula is called. This will calculate the total length of the string. It then replaces all instance of "/" and calculates the length. The total length is then subtracted from the revised length without the "/". This value represents which instance of use in the first SUBSTITUTE formula:
SUBSTITUTE(A1,"/","^^",...
The first SUBSTITUTE formula then replaces the correct instance of "/" with "^^". The FIND function is then used to determine the position of "^^" within the string. This position is subtracted from the overall length (LEN(A1)-FIND("^^",...) to figure out how many places starting from the right need to be pulled.
Its important to note that the formula you found will pull the last set of characters of a string if there are 2 "/" or 3 or 4 etc since it is designed to find the position of the last "/". So...
test/1234/this is what I want = This is what I want
test/1234/not this/but this = But This