Search code examples
regexgoogle-sheetsstring-formattinggoogle-sheets-formulanumber-formatting

TO_PURE_TEXT with cell referencing doesn't filter double quotes against documentation


I want to get a clean number from a string like "123.45". On using of =TO_PURE_TEXT(C10) it doesn't work for me,

enter image description here

against an example from the documentation. An absolute referencing doesn't help.

But, if i use no cell referencing, but direct input, like =TO_PURE_TEXT("123.45") the input is correct, as expected without quotes.

Is it a kind of bug, or do i really do something wrong? How can i get this work with the cell referencing?


Solution

  • all you need is:

    =SUBSTITUTE(C10, """", )*1
    

    or:

    =REGEXREPLACE(C10, """", )*1
    

    0