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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3 Formulas<br />

Example of the formula = IF(TRUE, 1, 2). <strong>The</strong> formula contains spaces before the function identifier and<br />

before the second and third parameter.<br />

Offset Size Token name Description<br />

0 2 tBool <strong>The</strong> condition of the IF function: the constant true<br />

2 4 tAttrIf Distance to start of false parameter: 7+4 = 11 bytes<br />

6 4 tAttrSpace Leading spaces for the next token (the true parameter)<br />

10 3 tInt True parameter of the IF function: the integer constant 1<br />

13 4 tAttrSkip Distance to position behind tFuncVar(IF) token (minus 1):<br />

7+12–1 = 18 bytes<br />

17 4 tAttrSpace Leading spaces for the next token (the false parameter)<br />

21 3 tInt False parameter of the IF function: the integer constant 2<br />

24 4 tAttrSpace Leading spaces for the next token (the function identifier).<br />

Note that the tAttrSpace tokens related to the function itself<br />

are located before the tAttrSkip token!<br />

28 4 tAttrSkip Distance to position behind tFuncVar(IF) token (minus 1):<br />

4–1 = 3 bytes.<br />

32 4 tFuncVar(IF) Identifier of the IF function, function with 3 parameters<br />

Example of the formula = IF(TRUE, 1). <strong>The</strong> formula contains spaces before the function identifier and the<br />

second parameter.<br />

Offset Size Token name Description<br />

0 2 tBool <strong>The</strong> condition of the IF function: the constant true<br />

2 4 tAttrIf Distance to start of tFuncVar(IF) token: 7+8 = 15 bytes<br />

6 4 tAttrSpace Leading spaces for the next token (the true parameter)<br />

10 3 tInt True parameter of the IF function: the integer constant 1<br />

13 4 tAttrSpace Leading spaces for the next token (the function identifier).<br />

Note that the tAttrSpace tokens related to the function itself<br />

are located before the tAttrSkip token!<br />

17 4 tAttrSkip Distance to position behind tFuncVar(IF) token (minus 1):<br />

4–1 = 3 bytes<br />

21 4 tFuncVar(IF) Identifier of the IF function with 3 parameters<br />

68

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

Saved successfully!

Ooh no, something went wrong!