When I import this item via IMPORTXML
and the spreadsheet locale is US (or other country that uses dot as decimal separator) it works fine:
=IMPORTXML("http://bvmf.bmfbovespa.com.br/cias-listadas/empresas-listadas/ResumoEventosCorporativos.aspx?codigoCvm=19348&tab=3.0&idioma=pt-br#fechar-modal",
"//*[@id='ctl00_contentPlaceHolderConteudo_grdBonificacao_ctl01_ctl12_lblPercOuFator']")
Result =
0.01
When I set the locale to Brazil, for example, it understands this dot as a thousand separator and imports the number as 1.000.000.000
(the source
number is 0.01000000000
).
My problem is that I need to deal with both numbering format.
I have checked this question already, but the proposed solutions didn't work. Any ideas? So far I had to create a separated spreadsheet to deal with both formats, but it'd be good if IMPORTXML wasn't that clever trying to figure out what's the data format.
Best Answer
you can either correct it with
*1E-11
:or by using US sheet where you import it and then use
IMPORTRANGE
to import it in your Brasil sheet: