find second occurrence of character in string code example
Example 1: excel formula find 2nd occurrence in string
To find the 2nd backslash in the text in cell A1:
=SEARCH("^", SUBSTITUTE(A1, "\","^",2))
To find the 4th period in the text in cell A1:
=SEARCH("^", SUBSTITUTE(A1, ".","^",4))
Example 2: excel find position of second to last character in a string
=FIND(CHAR(160),SUBSTITUTE(text,"@",CHAR(160),N))