I cannot seem to figure this out.
I have an Excel sheet to calculate automatically the driving distance between to addresses. I do this using the Bing Maps API. A URL is filled in with the address and this will give back another URL which is then converted to XML. I then pull the longitude and latitude out of this XML using FILTERXML. In a similar way I can get an XML with the driving distance and driving time between two addresses. And this is where it goes wrong. Somehow, when the distance is small, the distance is displayed correctly, for example 3.91 km. But when the number of decimals is larger than 2, Excel 'converts' for example 67.698 to 67698. See the attached Excel file and a screenshot on how the data is displayed right now.
I tried by changing the format (text, custom, etc.), but that does not work.
Similar the reading/conversion of latitude and longitude is not working properly, but there I found a way to solve that, but it is not a beautiful solution in my opinion.
How can I make Excel show the data it reads from an XML correctly?
Bookmarks