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.

2.5 Common Record Substructures<br />

2.5.6 Error Codes<br />

If the calculation of a formula results in an error or any other action fails, <strong>Excel</strong> sets a specific error code. <strong>The</strong>se error<br />

codes are used for instance in cell records and formulas.<br />

Error code Error value Description<br />

00 H #NULL! Intersection of two cell ranges is empty<br />

07 H #DIV/0! Division by zero<br />

0F H #VALUE! Wrong type of operand<br />

17 H #REF! Illegal or deleted cell reference<br />

1D H #NAME? Wrong function or range name<br />

24 H #NUM! Value range overflow<br />

2A H #N/A Argument or function not available<br />

2.5.7 Constant Values<br />

Sometimes it is needed to store constant values of different data types. <strong>The</strong>se values are used to create linear lists (for<br />

instance in the CRN record, ➜5.23), or two-dimensional arrays (➜2.5.8). This chapter describes the format of the<br />

individual constant values.<br />

• Empty Value<br />

Offset Size Contents<br />

0 1 00 H (Identifier for an empty constant)<br />

1 8 Not used<br />

• Number<br />

Offset Size Contents<br />

0 1 01 H (Identifier for a numerical constant)<br />

1 8 IEEE 754 floating-point value (64-bit double precision)<br />

• String Value<br />

Offset Size Contents<br />

0 1 02 H (Identifier for a string constant)<br />

1 var. BIFF2-BIFF5: Byte string, 8-bit string length (➜2.5.2)<br />

BIFF8: Unicode string, 16-bit string length, option flags occur always (➜2.5.3)<br />

• Boolean Value<br />

Offset Size Contents<br />

0 1 04 H (Identifier for a Boolean constant)<br />

1 1 0 = FALSE, 1 = TRUE<br />

2 7 Not used<br />

21

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

Saved successfully!

Ooh no, something went wrong!