07.05.2014 Views

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3 Formulas<br />

3.10.3 tParen (15 H )<br />

Parentheses. This token is for display purposes only, it does not affect the result of the token array. If it follows an<br />

operator, the parentheses will enclose the operator and its operand(s), which in fact is the result of the enclosed<br />

operation.<br />

Token tParen, BIFF2-BIFF8:<br />

Offset Size Contents<br />

0 1 15 H<br />

Examples for enclosed operands:<br />

=3+(2) is represented by tInt(3), tInt(2), tParen, tAdd;<br />

=(3)% is represented by tInt(3), tParen, tPercent;<br />

=SUM(3,(2)) is represented by tInt(3), tInt(2), tParen, tFuncV(SUM).<br />

Examples for enclosed operators:<br />

=(3+2) is represented by tInt(3), tInt(2), tAdd, tParen;<br />

=(3%) is represented by tInt(3), tPercent, tParen;<br />

=(SUM(3,2)) is represented by tInt(3), tInt(2), tFuncV(SUM), tParen.<br />

3.10.4 tNlr (18 H ) (BIFF8)<br />

2do<br />

Operand class: reference.<br />

3.10.5 tAttr (19 H )<br />

Special attribute. This token is able to represent a variety of information, described in the following chapters.<br />

Common structure of the tAttr token, BIFF2-BIFF8:<br />

Offset Size Contents<br />

0 1 19 H<br />

1 1 Attribute type flags:<br />

01 H = This is a tAttrVolatile token (volatile function)<br />

02 H = This is a tAttrIf token (IF function control)<br />

04 H = This is a tAttrChoose token (CHOOSE function control)<br />

08 H = This is a tAttrSkip token (skip part of token array)<br />

10 H = This is a tAttrSum token (SUM function with one parameter)<br />

20 H = This is a tAttrAssign token (assignment-style formula in a macro sheet)<br />

40 H = This is a tAttrSpace token (spaces and carriage returns, BIFF3-BIFF8)<br />

41 H = This is a tAttrSpaceVolatile token (BIFF3-BIFF8, see below)<br />

2 var. Additional information dependent on the attribute type<br />

<strong>The</strong>oretically, the attribute type flags may be combined to represent several attributes in one tAttr token. In practise, this<br />

is only done with the tAttrVolatile token and a leading tAttrSpace token. This “tAttrSpaceVolatile” token contains the<br />

attribute type 41 H (flags of the tAttrVolatile token and the tAttrSpace token). <strong>The</strong> data of the token is equivalent to a<br />

regular tAttrSpace token. This is possible, because the tAttrVolatile token does not contain additional valid data.<br />

66

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!