Import XML to Excel, to date conversation issue
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>
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
add a comment |
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>
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
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
add a comment |
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>
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
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>
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
microsoft-excel xml
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
You can change the column datatype on import before finalizing the load.
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
You can change the column datatype on import before finalizing the load.
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
add a comment |
You can change the column datatype on import before finalizing the load.
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
add a comment |
You can change the column datatype on import before finalizing the load.
You can change the column datatype on import before finalizing the load.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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