SOLVED

find string if not matches replace this to character string

Copper Contributor

Hello Community can anyone help me to start with excel 

 

I would like to check each cell of a row (F:F) if it not matches with a string ->"keyword

and then replace each cell   with  a string called ->"something

 

I can"t come closer to this goal allone.

 

vba would be great 

 

Thank you very much for your help :)

5 Replies
best response confirmed by excelbaer1 (Copper Contributor)
Solution

@excelbaer1 

=IF(ISNUMBER(SEARCH("*"&I$1&"*",F1))=FALSE,"something",F1)

 

Is this what you are looking for?

@OliverScheurich 

 

:)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 :) 

@excelbaer1 

=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.

Huch 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

@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)

 

1 best response

Accepted Solutions
best response confirmed by excelbaer1 (Copper Contributor)
Solution

@excelbaer1 

=IF(ISNUMBER(SEARCH("*"&I$1&"*",F1))=FALSE,"something",F1)

 

Is this what you are looking for?

View solution in original post