Import XML to Excel, to date conversation issue












0















I need to import XML files to Excel book, but got one issue: Excel convert some number values to date.
It happens when numbers are separated with dot or hyphen. The "dot problem" is solved (i changed system separator to comma), but hyphen still makes trouble.



Example:
XML file code:



<?xml version="1.0" encoding="UTF-8"?>
<Order>
<Head>
<OrderCode>ZWA00013819</OrderCode>
<DateOfShipment>20181231</DateOfShipment>
<OrderType>LA </OrderType>
</Head>
<Detail>
<Article>5526-02</Article>
<QuantityPC>30</QuantityPC>
<PackType>ut</PackType>
<DateExpiry>26.12.2019</DateExpiry>
</Detail>
</Order>


Import result screenshot



first row - standard import, second - import to row in text format.
In both cases excel convert it to date, but i need to keep the number ("5526-02") instead.
Could someone please help with this problem?
I need to find the way to keep values in the same format as they shown in xml file, desirable without modifying original file.










share|improve this question

























  • Using the Data -> Import path, you should be able to specify the format of your column by clicking edit on the bottom of the import wizard, right click the column header to change the column data type (try Text).

    – TEEKAY
    Dec 28 '18 at 13:39


















0















I need to import XML files to Excel book, but got one issue: Excel convert some number values to date.
It happens when numbers are separated with dot or hyphen. The "dot problem" is solved (i changed system separator to comma), but hyphen still makes trouble.



Example:
XML file code:



<?xml version="1.0" encoding="UTF-8"?>
<Order>
<Head>
<OrderCode>ZWA00013819</OrderCode>
<DateOfShipment>20181231</DateOfShipment>
<OrderType>LA </OrderType>
</Head>
<Detail>
<Article>5526-02</Article>
<QuantityPC>30</QuantityPC>
<PackType>ut</PackType>
<DateExpiry>26.12.2019</DateExpiry>
</Detail>
</Order>


Import result screenshot



first row - standard import, second - import to row in text format.
In both cases excel convert it to date, but i need to keep the number ("5526-02") instead.
Could someone please help with this problem?
I need to find the way to keep values in the same format as they shown in xml file, desirable without modifying original file.










share|improve this question

























  • Using the Data -> Import path, you should be able to specify the format of your column by clicking edit on the bottom of the import wizard, right click the column header to change the column data type (try Text).

    – TEEKAY
    Dec 28 '18 at 13:39
















0












0








0








I need to import XML files to Excel book, but got one issue: Excel convert some number values to date.
It happens when numbers are separated with dot or hyphen. The "dot problem" is solved (i changed system separator to comma), but hyphen still makes trouble.



Example:
XML file code:



<?xml version="1.0" encoding="UTF-8"?>
<Order>
<Head>
<OrderCode>ZWA00013819</OrderCode>
<DateOfShipment>20181231</DateOfShipment>
<OrderType>LA </OrderType>
</Head>
<Detail>
<Article>5526-02</Article>
<QuantityPC>30</QuantityPC>
<PackType>ut</PackType>
<DateExpiry>26.12.2019</DateExpiry>
</Detail>
</Order>


Import result screenshot



first row - standard import, second - import to row in text format.
In both cases excel convert it to date, but i need to keep the number ("5526-02") instead.
Could someone please help with this problem?
I need to find the way to keep values in the same format as they shown in xml file, desirable without modifying original file.










share|improve this question
















I need to import XML files to Excel book, but got one issue: Excel convert some number values to date.
It happens when numbers are separated with dot or hyphen. The "dot problem" is solved (i changed system separator to comma), but hyphen still makes trouble.



Example:
XML file code:



<?xml version="1.0" encoding="UTF-8"?>
<Order>
<Head>
<OrderCode>ZWA00013819</OrderCode>
<DateOfShipment>20181231</DateOfShipment>
<OrderType>LA </OrderType>
</Head>
<Detail>
<Article>5526-02</Article>
<QuantityPC>30</QuantityPC>
<PackType>ut</PackType>
<DateExpiry>26.12.2019</DateExpiry>
</Detail>
</Order>


Import result screenshot



first row - standard import, second - import to row in text format.
In both cases excel convert it to date, but i need to keep the number ("5526-02") instead.
Could someone please help with this problem?
I need to find the way to keep values in the same format as they shown in xml file, desirable without modifying original file.







microsoft-excel xml






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 28 '18 at 13:29









Toto

3,715101226




3,715101226










asked Dec 28 '18 at 13:28









ВадимВадим

31




31













  • Using the Data -> Import path, you should be able to specify the format of your column by clicking edit on the bottom of the import wizard, right click the column header to change the column data type (try Text).

    – TEEKAY
    Dec 28 '18 at 13:39





















  • Using the Data -> Import path, you should be able to specify the format of your column by clicking edit on the bottom of the import wizard, right click the column header to change the column data type (try Text).

    – TEEKAY
    Dec 28 '18 at 13:39



















Using the Data -> Import path, you should be able to specify the format of your column by clicking edit on the bottom of the import wizard, right click the column header to change the column data type (try Text).

– TEEKAY
Dec 28 '18 at 13:39







Using the Data -> Import path, you should be able to specify the format of your column by clicking edit on the bottom of the import wizard, right click the column header to change the column data type (try Text).

– TEEKAY
Dec 28 '18 at 13:39












1 Answer
1






active

oldest

votes


















0














You can change the column datatype on import before finalizing the load.



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here






share|improve this answer
























  • If you're pleased with the solution please consider marking it answered so I can get those nerdpoints :)

    – TEEKAY
    Dec 28 '18 at 14:59











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388448%2fimport-xml-to-excel-to-date-conversation-issue%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You can change the column datatype on import before finalizing the load.



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here






share|improve this answer
























  • If you're pleased with the solution please consider marking it answered so I can get those nerdpoints :)

    – TEEKAY
    Dec 28 '18 at 14:59
















0














You can change the column datatype on import before finalizing the load.



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here






share|improve this answer
























  • If you're pleased with the solution please consider marking it answered so I can get those nerdpoints :)

    – TEEKAY
    Dec 28 '18 at 14:59














0












0








0







You can change the column datatype on import before finalizing the load.



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here






share|improve this answer













You can change the column datatype on import before finalizing the load.



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 28 '18 at 13:50









TEEKAYTEEKAY

16517




16517













  • If you're pleased with the solution please consider marking it answered so I can get those nerdpoints :)

    – TEEKAY
    Dec 28 '18 at 14:59



















  • If you're pleased with the solution please consider marking it answered so I can get those nerdpoints :)

    – TEEKAY
    Dec 28 '18 at 14:59

















If you're pleased with the solution please consider marking it answered so I can get those nerdpoints :)

– TEEKAY
Dec 28 '18 at 14:59





If you're pleased with the solution please consider marking it answered so I can get those nerdpoints :)

– TEEKAY
Dec 28 '18 at 14:59


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388448%2fimport-xml-to-excel-to-date-conversation-issue%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...