Exporting XML from Excel and Keeping Date Format

前端 未结 2 1048
终归单人心
终归单人心 2021-01-22 17:43

Many StackOverflow posts and other online forums have questions similar to this, but none of them really resolve the issue I\'m having.

I\'m exporting an XML file from E

2条回答
  •  误落风尘
    2021-01-22 18:04

    It's actually pretty simple... if you're creating your own "schema" for example. Create an xml file, and say you have google analytics data to populate your full xml file with each row having the following three data points:

    1/1/2012
    mywebsite.com
    100000
    

    When you import this xml file as a data map schema for excel before exporting, you'll wind up the the integer you describe above. However, if you define this schema instead as:

    2012-01-01
    mywebsite.com
    100000
    

    Excel will show an additional grouping for the date element when you organize your xml on the sheet. Use the value (not the format()) as the column header, and your export will be the formatted date instead of the integer. You don't need to do any special .xsd extraction from excel or access!!

    For an example of how to build your own schema, I found this video to be spot on: http://www.youtube.com/watch?v=9bat12gH3Qs

提交回复
热议问题