Issue 111781 - export excel 2003 xml incorrectly uses A1 cell references instead of RC
Summary: export excel 2003 xml incorrectly uses A1 cell references instead of RC
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: save-export (show other issues)
Version: 4.1.0-dev
Hardware: PC Windows, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-23 06:53 UTC by jmichae3
Modified: 2013-12-06 11:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
cross sheet references excel 2003 xml file (3.30 KB, text/xml)
2010-05-23 07:00 UTC, jmichae3
no flags Details
cross sheet references OOo generated excel 2003 xml file (2.94 KB, text/xml)
2010-05-23 07:01 UTC, jmichae3
no flags Details
Excel 2010 vs. Calc 4.1 (182.39 KB, image/jpeg)
2013-12-06 11:37 UTC, Edwin Sharp
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jmichae3 2010-05-23 06:53:58 UTC
after entering a correct spreadsheet into OOo with simple cross-sheet
references (actually, ANY cell references), OOo outputs as Excel 2003 XML the
following incorrect A1 format:



<Row ss:Height="12.8376">
<Cell ss:StyleID="Normal" ss:Formula="of:=['this sheet name has
spaces'.A1]"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="Normal" ss:Formula="of:=[Sheet1.A1]"><Data
ss:Type="Number">1</Data></Cell>
</Row>
<Row ss:Height="12.8376"><Cell ss:Index="2" ss:StyleID="Normal"/></Row>

MS Excel outputs the following for the same spreadsheet:

   <Row>
    <Cell ss:Formula="='this sheet name has spaces'!RC"><Data
ss:Type="Number">1</Data></Cell>
    <Cell ss:Formula="=Sheet1!RC[-1]"><Data ss:Type="Number">1</Data></Cell>
   </Row>


The RC format Excel uses allows the format 
'Sheet name'!R1C1 for sheet names with spaces if you are doing cross-sheet
references and want an absolute cell reference, 
or, 
SheetName!R1C1 if you are doing a sheet name without spaces and want an absolute
cell reference,
or,
R1C1 if you are referencing the same sheet and want an absolute cell reference.

The R1C1 absolute format is really handy for those who are doing the coding,
because everything is indexed with numbers.  and Excel 2003 Accepts it just
fine, I tested the format.  usually what you see coming OUT of Excel is pretty
weird for RC addressing.  I don't know if that format is documented anywhere or
not as a standard.

example: R12305C121
Comment 1 jmichae3 2010-05-23 07:00:32 UTC
Created attachment 69581 [details]
cross sheet references excel 2003 xml file
Comment 2 jmichae3 2010-05-23 07:01:46 UTC
Created attachment 69582 [details]
cross sheet references OOo generated excel 2003 xml file
Comment 3 jmichae3 2010-05-23 08:20:54 UTC
I learned something about Excel cell format through experimentation.  R1C1 in
XML formulas is an ABSOLUTE cell address in Excel's use of the word.  meaning,
R1C1 comes out as $A$1 rather than A1 (surprised me).

so all the RC-relative rules must apply.  unfortunately.
Comment 4 Edwin Sharp 2013-12-06 11:37:29 UTC
Created attachment 82050 [details]
Excel 2010 vs. Calc 4.1
Comment 5 Edwin Sharp 2013-12-06 11:42:02 UTC
See attachment.

AOO410m1(Build:9750)  -  Rev. 1543812
Rev.1543812
Win 7