Forum Discussion
find string if not matches replace this to character string
- Dec 02, 2021
=IF(ISNUMBER(SEARCH("*"&I$1&"*",F1))=FALSE,"something",F1)
Is this what you are looking for?
=IF(ISNUMBER(SEARCH("*"&I$1&"*",F1))=FALSE,"something",F1)
Is this what you are looking for?
🙂Thank you Quadruple Pawn , i did it with your formular.
Can you do that also for me in VBA ?
I would like to see and learn from it, couse if i try i can not walk two meters allone in that syntax.
Please if you have time , thank you 🙂
- excelbaer1Dec 02, 2021Copper Contributor
excelbaer1 Wieder kleiner Vertipper drinn 😉
SOLUTION in
1German and 2 Englisch
1
Spalte F wird durchsucht ob Keyword in Zelle steht, wenn nicht ändere Zelleninhalt in "something".
In Zelle I1 Zeichenkette eingeben nach der gesucht werden soll. (keyword)
Ausgabe der Formel in neuer Spalte mit
=WENN(ISTZAHL(SUCHEN("*"&I$1&"*";F1))=FALSCH;"something";F1)Collum F get searched if it not contains keyword , if not change the cell to string something .
=IF(ISNUMBER(SEARCH("*"&I$1&"*";F2))=FALSE;"something";F2)
- OliverScheurichDec 02, 2021Gold Contributor
=IF(ISNUMBER(SEARCH("*"&$I$1&"*",F1))=FALSE,"something",F1)
Entschuldigung, in der ursprünglichen Formel hat ein $ gefehlt. Ich habe das jetzt korrigiert, siehe anhängende Datei und obige berichtigte Formel.
- excelbaer1Dec 02, 2021Copper ContributorHuch das hätte mir selber auffallen müssen hatte die Richtige Deutsche Formel genommen mit der ging es. Danke dir vielmals für deine Hilfe