Apache OpenOffice (AOO) Bugzilla – Issue 116319
sheet reference error on Excel 2003 xml import
Last modified: 2023-01-12 01:38:41 UTC
When reading an excel 2003 xml file with a cross sheet range reference, the second (and subsequent sheet references are not correctly processed. With this in the XML file: ss:Formula="=SUM(Sheet1!RC:Sheet1!RC[1])" The imported cell formula should be: =SUM(Sheet1.A1:Sheet1.B1) but instead is shows as: =SUM(Sheet1.A1:#REF!.B1)
Created attachment 75476 [details] Excel 2003 xml file with cross sheet range reference
Created attachment 75477 [details] OOo spreadsheet file with correct cross sheet range references
To reproduce the error, import the Excel 2003 xml file, then look at sheet2 cell A1. The reference error will be in the cell formula.
confirmed with OOo 3.3.0 RC8 (OOO330m18) on Solaris Sparc
If we run: xsltproc main/filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl 116319\ Test.xml and we look at the formula cell on Sheet2: <table:table-cell table:style-name="ta1" table:formula="oooc:=SUM([Sheet1.A1:[Sheet1.B1])" office:value-type="float" office:value="3"> <text:p>3</text:p> </table:table-cell> the table:formula of: oooc:=SUM([Sheet1.A1:[Sheet1.B1]) has 2 "[" but only 1 "]", and nests Sheet1.B1 in a possibly unnecessary or wrong pair of "[" and "]".