Feb 09 2023 10:38 AM
I have to search for the position of the last occurrence of a specific character in a text.
For example, in the below text I want to know the position of the last occurrence of character "/"
abc.com/Computers/Laptops/INDT123L34
Which formulas can be used to accomplish this?
Feb 09 2023 11:12 AM
Solution@VaibsP Here are 2 options:
using Excel365:
=LEN(TEXTBEFORE(A1,"/",-1))+1
older version:
=LEN(A1)-LEN(TRIM(MID(SUBSTITUTE(A1,"/",REPT(" ",LEN(A1))),(LEN(A1)-LEN(SUBSTITUTE(A1,"/","")))*LEN(A1),LEN(A1))))
Feb 10 2023 03:41 AM
@mtarler Thanks for the quick response. Its working.