Import XML to Excel

vuk

New Member
Joined
May 20, 2020
Messages
1
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
  2. Mobile
Hi Everyone,
I have a problem to import data from XML to Excel.
Problem is with data in XML which contain more then 15 digits.
In my case, in XML file which i have there is attribute which contain 18 digits.
When i import it to excel last 3 digits from that attribute are shown as 0, but in XML they are totally different numbers.
I know that excel will accept only 15 digits as number, and that if we want to insert more then 15 then we need to format that cells as text.
But even i format it as text it doesn't show correct last 3 digits, it shows always 0 instead of real numbers.
I attach picture where you can see that it shows 000 as last 3 digits,but last 3 digits in my XML for this line are 963.

Is it possible to fix this? If it is, how?
Thank you very much.
 

Attachments

  • excelxml.PNG
    excelxml.PNG
    6.2 KB · Views: 17

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Ensure that your XML map has the "number" containing an alpha character rather than a digit. Then when you import your data it will treat the numbers as strings.
1590693761807.png
 
Upvote 0

Forum statistics

Threads
1,214,837
Messages
6,121,883
Members
449,057
Latest member
Moo4247

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top