Forum Discussion

Nandhu19940's avatar
Nandhu19940
Copper Contributor
Jul 07, 2020
Solved

Formula help required multiple if

Close-CSK, Close-making, open-tax, pending-ask

Above are text I have in my data, I need to change the text before hypen to "closed" for all.

 

My formula : IF (OR (MID (A2,1,4)="Close"),REPLACE (A2,1,5,"Close"),REPLACE (A2,1,4,"Closed"))

Except Pending-ask all text are changing 

I need to change that one as well my output should exactly like this "Closed-ask"

 

2 Replies

  • DevendraJain's avatar
    DevendraJain
    Iron Contributor

    Nandhu19940 If all your data is in seperate cells then this formula will work

     

    =+REPLACE(A1,1,FIND("-",A1,1)-1,"Closed")

Resources