Forum Discussion

Ivo1954's avatar
Ivo1954
Copper Contributor
Nov 26, 2019

search and replace form "." to ","

Hello I'm a new one in this community.
My problem is that I want to do "search and replace" from "." to ","
I have a database of about 360,000 personal records in one file.
In my new file I use as an example a time in this format:
1.26,3 or 15.00,20 MM.sec,1000th seconds(HS) MM.SEC,1/100
In large old files, it's in 1.26.3 or 15.00.20.
Now I want to make in the old file of 1.26.3 the following format 1.26,3 or from 15.00.20 to 15.00,20.
You can't do that manually because it's a lot of data.
See below an example:
New file:
Froek Zwarthoed(name) 38,97 1.18,06 1.59,56 4.18,74 07.24,47 15.38,88
Old traffic jam:
Froek Zwarthoed(name)  38.97 1.18.06 1.59.56 4.18.74 7.24.47 15.38.88

I hope I have clearly described it...
Greetings,
Ivo

 

10 Replies

  • ChrisMendoza's avatar
    ChrisMendoza
    Iron Contributor

    Ivo1954 

     

    Does this do the trick you're looking for?

     

    =SUBSTITUTE(B3,".",",",LEN(B3)-LEN(SUBSTITUTE(B3,".","")))

     

    • SergeiBaklan's avatar
      SergeiBaklan
      Diamond Contributor

      ChrisMendoza , that's the text like

      Froek Zwarthoed(name)  38.97 1.18.06 1.59.56 4.18.74 7.24.47 15.38.88

      in one cell

      • ChrisMendoza's avatar
        ChrisMendoza
        Iron Contributor

        SergeiBaklan -

         

        Oh, that's interesting if it's all in one cell. Ivo1954 you could use Power Query split by delimiter " " (space) then do a similar substitution on the last "." then concatenate the values again.

  • PReagan's avatar
    PReagan
    Bronze Contributor

    Hello Ivo1954,

     

    Without knowing the format of your worksheet, it would be difficult to provide a truly proper answer. However, as a general answer, the following formula would change a number in the format 0.00.00 to 0.00,00:

    =REPLACE(A1,LEN(A1)-2,1,",")

     

    I hope this helps!

    • Ivo1954's avatar
      Ivo1954
      Copper Contributor

      Hi PReagan,

       

      Thanks for the reaction.

      I'm sorry It doesn't work.

       

      Thanks

       

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        Ivo1954 

        Ivo, is the data like

        Froek Zwarthoed(name)  38.97 1.18.06 1.59.56 4.18.74 7.24.47 15.38.88

        in one cell as text or these are separate cells like

         

         

Resources