I have the text "Primera Divisió
" and I am using this formula to find and replace the character/s ó
with ä
using the formula
=IF(ISNUMBER(SEARCH("*ó*",C30)),LEFT(C30,FIND("ó",C30) 9) & "ä",C30)
in excel.
However I am getting Primera Divisióä
What should be the correct formula to perform this function?
edit: How can add more than one arguments to replace more characters?
e.g. I would like to replace ä
with ä
and ö
with ö
in the same formula so that I can drag it down to all the rows in the dataset
CodePudding user response:
Yoy can use SUBSTITUTE
:
=SUBSTITUTE(A1,"ó","ä")
and you can nest multiple:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"ó","ä"),"ä","ä"),"ö","ö")
CodePudding user response:
=IF(ISNUMBER(SEARCH("*ó*",D7)),REPLACE(D7,1,16, "ä"),D7)
Edit: replacing with a more accurate solution