01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

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.

Table range<br />

300<br />

Lists<br />

If it doesn't<br />

work…<br />

��<br />

��<br />

��<br />

To now be able to calculate with <strong>the</strong> content of one of <strong>the</strong>se cells,<br />

you must enter <strong>the</strong> cell coordinates in <strong>the</strong> function $T:<br />

%CALC{"$AVERAGE($T(R2:C3),$T(R3:C4))"}%<br />

Caution: The convention of cell references only works in pipe tables,<br />

but not in HTML tables!<br />

It is also possible to include an entire table range by indicating each<br />

of <strong>the</strong> top and bottom corner cells and separating <strong>the</strong>m by two periods<br />

(“..”); e.g. R1:C1..R3:C3 would completely include <strong>the</strong><br />

first three columns of <strong>the</strong> above table.<br />

In this case, it is not necessary to use <strong>the</strong> T function; you can<br />

transfer <strong>the</strong> table range directly as a parameter:<br />

%CALC{"$SUM(R1:C1..R3:C2, R1:C4..R3:C4)"}%<br />

Note: The cell data in <strong>the</strong> formulas can only relate to <strong>the</strong> cells in <strong>the</strong><br />

current row and previous cells in <strong>the</strong> table. All cells below <strong>the</strong> current<br />

row cannot be addressed with that formula. If you insert a formula<br />

with cell data outside of <strong>the</strong> table, <strong>the</strong>y will refer to <strong>the</strong> previous<br />

table.<br />

If a parameter consists of several elements (of <strong>the</strong> same kind), e.g. in<br />

<strong>the</strong> calculation of an average, a list of values is transferred whose<br />

components are separated by commas, such as %CALC{"$SUM(<br />

3, 5, 7)"}%. Also, <strong>the</strong>re are a few functions that were conceived<br />

specifically for editing and processing lists. Thus, for instance,<br />

<strong>the</strong> function LIST can be used to transform a cell range into<br />

a list and <strong>the</strong>n fur<strong>the</strong>r processed.<br />

When using <strong>the</strong> plugin, you may frequently make mistakes, especially<br />

at <strong>the</strong> beginning, since you first have to get used to <strong>the</strong> conventions<br />

of <strong>the</strong> program. However, <strong>the</strong> causes of <strong>the</strong> following undesired<br />

results can be found relatively quickly:<br />

� In <strong>the</strong> page view, <strong>the</strong> code of <strong>the</strong> formula is displayed but<br />

not calculated: The plugin is probably ei<strong>the</strong>r incorrectly installed<br />

or not installed at all.<br />

� Parts of <strong>the</strong> formula are displayed: The syntax of <strong>the</strong> formula<br />

is incorrect. Perhaps a dollar sign was left out?<br />

� A 0 (“zero”) comes out as a result: Your cell references may<br />

be referring to an HTML table.<br />

19 Composing <strong>the</strong> Project Plan

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

Saved successfully!

Ooh no, something went wrong!