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.11 Built-In Sheet Functions<br />

Meaning of the table column headers:<br />

Column header<br />

Func ID<br />

Function name<br />

Min par<br />

Max par<br />

Ret class<br />

Parameter classes<br />

Volatile<br />

Meaning<br />

Function identifier used in tFunc (➜3.7.1) and tFuncVar (➜3.7.2) tokens<br />

English name of the function<br />

Minimum number of parameters this function requires<br />

Maximum number of parameters this function allows. If equal to “Min par”, a tFunc token<br />

is used for this function, otherwise a tFuncVar token.<br />

Default token class of the return value (➜3.2.2).<br />

R = reference class;<br />

V = value class;<br />

A = array class.<br />

Token classes expected by the respective parameters of the function (➜3.2.3). <strong>The</strong> ellipse<br />

“…” repeats the last specified token class for all following parameters.<br />

If marked, the function result is volatile (needs to be recalculated always). Existance of<br />

such a function causes the “Recalculate always” flag to be set in the ARRAY (➜5.4),<br />

FORMULA (➜5.50), DATATABLE (➜5.24), and DATATABLE2 (➜5.25) records.<br />

3.11.1 Built-In Sheet Functions in BIFF2<br />

Func<br />

ID Function Min Max Ret Parameter Volat Func<br />

name89 par par class classes ile ID Function name Min Max Ret Parameter<br />

par par class classes<br />

0 COUNT 0 30 V R … 27 ROUND 2 2 V V V<br />

1 IF 2 3 R V R R 28 LOOKUP 2 3 V V R R<br />

2 ISNA 1 1 V V 29 INDEX 2 4 R R V V V<br />

3 ISERROR 1 1 V V 30 REPT 2 2 V V V<br />

4 SUM 0 30 V R … 31 MID 3 3 V V V V<br />

5 AVERAGE 1 30 V R … 32 LEN 1 1 V V<br />

6 MIN 1 30 V R … 33 VALUE 1 1 V V<br />

7 MAX 1 30 V R … 34 TRUE 0 0 V –<br />

8 ROW 0 1 V R 35 FALSE 0 0 V –<br />

9 COLUMN 0 1 V R 36 AND 1 30 V R …<br />

10 NA 0 0 V – 37 OR 1 30 V R …<br />

11 NPV 2 30 V V R … 38 NOT 1 1 V V<br />

12 STDEV 1 30 V R … 39 MOD 2 2 V V V<br />

13 DOLLAR 1 2 V V V 40 DCOUNT 3 3 V R R R<br />

14 FIXED 8 2 2 V V V 41 DSUM 3 3 V R R R<br />

15 SIN 1 1 V V 42 DAVERAGE 3 3 V R R R<br />

16 COS 1 1 V V 43 DMIN 3 3 V R R R<br />

17 TAN 1 1 V V 44 DMAX 3 3 V R R R<br />

18 ATAN 1 1 V V 45 DSTDEV 3 3 V R R R<br />

19 PI 0 0 V – 46 VAR 1 30 V R …<br />

20 SQRT 1 1 V V 47 DVAR 3 3 V R R R<br />

21 EXP 1 1 V V 48 TEXT 2 2 V V V<br />

22 LN 1 1 V V 49 LINEST 9 1 2 A R R<br />

23 LOG10 1 1 V V 50 TREND 9 1 3 A R R R<br />

24 ABS 1 1 V V 51 LOGEST 9 1 2 A R R<br />

25 INT 1 1 V V 52 GROWTH 9 1 3 A R R R<br />

26 SIGN 1 1 V V 56 PV 3 5 V V V V V V<br />

Volat<br />

ile<br />

8<br />

Parameter count will change in BIFF4.<br />

9<br />

Parameter count will change in BIFF3.<br />

74

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

Saved successfully!

Ooh no, something went wrong!