Hello Experts,
I want to strip off the below words if found any in bunch of words in a cell:-
1. bin
2. binti
3. bte
4. b.
5. bt.
input samples:
1. Marina binti Kamarudin
2. Kamal b. Mohd. Rusli
3. Sh. Hamidah bte Abg. Mokhtar
4. Mohd Firdaus bin Abdullah
5. Siti Nurul Nazihah bt. Md. Abd. Zaidel
expected output:-
1. Marina Kamarudin
2. Kamal Mohd. Rusli
3. Sh. Hamidah Abg. Mokhtar
4. Mohd Firdaus Abdullah
5. Siti Nurul Nazihah Md. Abd. Zaidel
I found this syntax SUBSTITUTE able to do this but only for one criteria only. I don't know how to improvise the formulas to be able to check multiple criterias and replace it with empty space if met one of them.
=SUBSTITUTE(text,find,replace)
sample : =SUBSTITUTE(A1,"binti ","") ==> assuming the text is in column A.
i tried to change it to =SUBSTITUTE(A1,{"binti ","bin ","bte ","bt. ","b."},"") , assuming that the curley bracket would be for multiple criterias with OR operator but I got an #ERROR! as a result.
Appreciate if anyone could share solution on this.
Thanks a lot.
DZ
Bookmarks