G
Guest
Hy,
I need an formula to solve my problem.
Let's say I have an cell with an text, for example : "AAJFHEFKR<FSTEG"
And I want to replace for example AA with A(A), FK with F(K), ST with S(T). I've tried =IF(ISNUMBER(SEARCH("AA";A1;1));SUBSTITUTE(A1;AA;"A(A)");A1)and is working but I want to write an formula who will search AA and FK and ST and replace all of them, something like an input vector {"AA";"FK";"ST"} and an output vector {"A(A)";"F(K)";"S(T)"}.
In the case A1="AAJFHEFKR<FSTEG" the result would be "A(A)JFHEF(K)R<FS(T)EG"
If A1 is "BB" the result will be A1 unchanged, so would be "BB".
If A1="1234AA456rfrST" ----> ""1234A(A)456rfrS(T)" .......
P.S: Sorry for my english.
I need an formula to solve my problem.
Let's say I have an cell with an text, for example : "AAJFHEFKR<FSTEG"
And I want to replace for example AA with A(A), FK with F(K), ST with S(T). I've tried =IF(ISNUMBER(SEARCH("AA";A1;1));SUBSTITUTE(A1;AA;"A(A)");A1)and is working but I want to write an formula who will search AA and FK and ST and replace all of them, something like an input vector {"AA";"FK";"ST"} and an output vector {"A(A)";"F(K)";"S(T)"}.
In the case A1="AAJFHEFKR<FSTEG" the result would be "A(A)JFHEF(K)R<FS(T)EG"
If A1 is "BB" the result will be A1 unchanged, so would be "BB".
If A1="1234AA456rfrST" ----> ""1234A(A)456rfrS(T)" .......
P.S: Sorry for my english.