Excel - Summe immer 0? - Zeilenformatierung?

Caos

Cadet 4th Year
Registriert
Jan. 2004
Beiträge
94
Hallo

Ich habe ein kleines Problem.
Ich habe eine Datei im XML Format wo ich keine Summe berechnen kann.

Die Datei wird von Excel geöffnet und auch schön dargestellt, doch jedes mal wenn ich eine Summe machen möchte zeigt mir das Programm 0 an.

Ich habe schon versucht die Zeilenformatierung zu ändern, fand aber trotzdem keine Lösung.

So sieht die Datei aus wenn ich sie mir dem Editor aufmache:
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Version>14.00</Version>
</DocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<AllowPNG/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>9996</WindowHeight>
<WindowWidth>9996</WindowWidth>
<WindowTopX>120</WindowTopX>
<WindowTopY>132</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
</Styles>
<Worksheet ss:Name="invoices.xml">
<Table ss:ExpandedColumnCount="7" ss:ExpandedRowCount="3" x:FullColumns="1"
x:FullRows="1" ss:DefaultColumnWidth="62.400000000000006"
ss:DefaultRowHeight="14.4">
<Row>
<Cell><Data ss:Type="String">Rechnung Nr.</Data></Cell>
<Cell><Data ss:Type="String">Rechnungsdatum</Data></Cell>
<Cell><Data ss:Type="String">Bestellung #</Data></Cell>
<Cell><Data ss:Type="String">Bestelldatum</Data></Cell>
<Cell><Data ss:Type="String">Rechnung an</Data></Cell>
<Cell><Data ss:Type="String">Status</Data></Cell>
<Cell><Data ss:Type="String">Betrag</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="Number">100000001</Data></Cell>
<Cell><Data ss:Type="String">02.01.2013 18:10:19</Data></Cell>
<Cell><Data ss:Type="Number">100000001</Data></Cell>
<Cell><Data ss:Type="String">02.01.2013 14:16:21</Data></Cell>
<Cell><Data ss:Type="String">Tages Kunde</Data></Cell>
<Cell><Data ss:Type="String">Bezahlt</Data></Cell>
<Cell><Data ss:Type="String">1.016,50*€</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Header x:Margin="0.4921259845"/>
<Footer x:Margin="0.4921259845"/>
<PageMargins x:Bottom="0.984251969" x:Left="0.78740157499999996"
x:Right="0.78740157499999996" x:Top="0.984251969"/>
</PageSetup>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>4</ActiveRow>
<ActiveCol>6</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
<x:ExcelWorkbook></x:ExcelWorkbook>
</Workbook>
 
In der original Datei sieht der Stern so aus:
1.016,50&#xA0;&#x20AC;

Die Datei wird vom Magento System erzeugt, darauf habe ich keinen Einfluss :(
 
Na ja,

der Original-Code sagt ja ganz klar, dass es sich um Strings also Text handelt. Ersetze "*€" durch nichts und formatiere dann gerne als Währung, dann sollte es auch hinhauen. Ansonsten: Magento System ist einfach unintelligent, was den Export nach Excel betrifft.
 
Stimme ich zu, zu dem was GMG-CC schrieb...

Code:
<Cell><Data ss:Type="String">1.016,50*€</Data></Cell>
sollte bei korrekter Formatierung dann so aussehen:
Code:
<Cell ss:StyleID="s62"><Data ss:Type="Number">1016.5</Data></Cell>

aber ich denke mal, das das Magenta DingsDa, den "*" als Markierung nimmt und dadurch die Zahl davor dann als Währung einliest... (reine Spekulation)...
 
Hallo,

aber ich denke mal, das das Magenta DingsDa, den "*" als Markierung nimmt und dadurch die Zahl davor dann als Währung einliest... (reine Spekulation)...
Na, dann spekuliere ich auch mal ... Nach einem Mal-Zeichen (Multiplikation, *) erwartet Excel eine Zahl. Und was da folgt, hat den numerischen Wert null. Und bleibigerWert * null ergibt immer null. Wie gesagt, auch Spekulatius. Klingt in meinen Augen aber logisch ...
 
Zuletzt bearbeitet:
Zurück
Oben