I have below text on column A1:
100-This_Is_My-Test_200
Looking to get output as below in column B1:
100-This_Is_My-Test
so basically it needs to remove text starting from last _ (underscore)
I tried below:
=TRIM(RIGHT(SUBSTITUTE(A1,"_",REPT(" ",LEN(A1))),LEN(A1)))
Output: 200
=TRIM(LEFT(SUBSTITUTE(A1,"_",REPT(" ",LEN(A1))),LEN(A1)))
Output: 100-This