The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
4 Worksheet/Workbook Stream<br />
• External and 3D References<br />
<strong>The</strong> EXTERNALBOOK for the own document has a special format: It contains only the number of all sheets and the<br />
byte sequence 01 H 04 H instead of the sheet names. <strong>The</strong> sheet range indexes in the EXTERNSHEET record refer to the<br />
position of the sheets (zero-based). If a referenced sheet does not exist anymore, the sheet index –1 will occur (deleted<br />
3D reference).<br />
Example: A document with 7 sheets (named from “Sheet1” to “Sheet7”) contains the formulas<br />
=Sheet2!A1,<br />
=SUM(Sheet4:Sheet6!A1:B3),<br />
=SUM([example.xls]ExtSheet1!A1:B2) (contents: A1=1.11, B1=2.22, A2=3.33, B2=4.44),<br />
=[example.xls]ExtSheet3!A1 (contents: “ABCD”), and<br />
=Sheet8!A1.<br />
EXTERNALBOOK 0 Number of sheets: 7<br />
01 H 04 H (own workbook)<br />
EXTERNALBOOK 1 Number of sheets: 3<br />
Document = “example.xls”<br />
Sheet 0 = “ExtSheet1”<br />
Sheet 1 = “ExtSheet2”<br />
Sheet 2 = “ExtSheet3”<br />
XCT<br />
Number of CRN = 2, sheet = 0 (ExtSheet1)<br />
CRN 0 Cell range = A1:B1, contents = 1.11, 2.22<br />
CRN 1 Cell range = A2:B2, contents = 3.33, 4.44<br />
XCT<br />
CRN 0<br />
EXTERNSHEET<br />
Number of CRN = 1, sheet = 2 (ExtSheet3)<br />
Cell range = A1, contents = “ABCD”<br />
REF 0 = {EXTERNALBOOK = 0, sheet range = 1…1}<br />
REF 1 = {EXTERNALBOOK = 0, sheet range = 3…5}<br />
REF 2 = {EXTERNALBOOK = 1, sheet range = 0…0}<br />
REF 3 = {EXTERNALBOOK = 1, sheet range = 1…1}<br />
REF 4 = {EXTERNALBOOK = 0, sheet range = –1…–1}<br />
Inside of the first formula the cell reference is represented by the token tRef3d (➜3.9.15). <strong>The</strong> second formula<br />
contains the token tArea3d (➜3.9.16).<br />
106