Forum Discussion

excelbaer1's avatar
excelbaer1
Copper Contributor
Dec 02, 2021
Solved

find string if not matches replace this to character string

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

    • excelbaer1's avatar
      excelbaer1
      Copper Contributor

      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's avatar
        excelbaer1
        Copper 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)

         

Resources