Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Excel XML Time format & arithmetic

From: Dominik@-----------.---------.---
To: NULL
Date: 5/22/2009 1:37:00 AM
Hi all,

I have an Excel Xml file and I want to perform a Sum operation with time 
format cells.

If I set [h]:mm format to the cells ¡, I can see the next right values:

8:25
8:30
25:25

42:20 (SUM)

When I save the file as Excel XML 2003, I have this:

 <Styles>
  <Style ss:ID="s64">
   <NumberFormat ss:Format="[h]:mm"/>
  </Style>
 </Styles>

   <Row ss:AutoFitHeight="0">
    <Cell ss:Index="2" ss:StyleID="s64"><Data 
ss:Type="DateTime">1899-12-31T08:25:00.000</Data></Cell>
   </Row>
   <Row ss:AutoFitHeight="0">
    <Cell ss:Index="2" ss:StyleID="s64"><Data 
ss:Type="DateTime">1899-12-31T08:30:00.000</Data></Cell>
   </Row>
   <Row ss:AutoFitHeight="0">
    <Cell ss:Index="2" ss:StyleID="s64"><Data 
ss:Type="DateTime">1900-01-01T01:25:00.000</Data></Cell>
   </Row>

But when I open the file again, I see these values:

248:25
248:30
25:25

522:20 (SUM)

How can I format cells to see the right values again?


Thanks in advance,

Dominik.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent