16.02.2014 Views

Download - SoftMaker

Download - SoftMaker

Download - SoftMaker

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.

AVG(n1;n2)<br />

Returns the average value of the values contained in the cells of<br />

a table in a rectangular region with coordinates n1 (upper left<br />

corner) and n2 (lower right corner). The coordinates must be<br />

preceded by # signs. Example: AVG (#B2;#C5). See also the<br />

section “Table cells in calculations” beginning on page 364.<br />

CHR(n) Returns the character at position n in the character table –<br />

CHR(65) gives “A”.<br />

COUNT(n1;n2)<br />

DAY(d)<br />

DTON(d)<br />

IF<br />

INT(n)<br />

Returns the number of values contained in the cells of a table in<br />

a rectangular region with coordinates n1 (upper left corner) and<br />

n2 (lower right corner). Only numbers are counted – empty cells<br />

and cells containing text are not counted. The coordinates must<br />

be preceded by # signs. Example: COUNT (#B2;#C5). See also<br />

the section “Table cells in calculations” beginning on page 364.<br />

Returns the day part of date d (as a number) – DAY("09/25/12")<br />

gives 25.<br />

Converts the date d to a date serial number, needed to calculate<br />

the difference in days between two dates: DTON ("11/12/12") –<br />

DTON ("10/20/12") gives 23 (days).<br />

IF(condition;value1;value2) returns value1 when the condition is<br />

true; otherwise value2. Example: IF(GENDER="F" ; "Dear<br />

Madam" ; "Dear Sir"). Value2 can also be omitted – see the<br />

section “Conditional text” beginning on page 370. Value1 and<br />

value2 can be of any type (also, for example, numeric).<br />

Returns the number n truncated to integer form (without rounding),<br />

so that the fractional value after the decimal point is<br />

suppressed – the formula INT(3.90) would give the result 3.<br />

LEFT(t;n) Returns the first n characters in the text string t –<br />

LEFT("TextMaker";4) gives “Text”.<br />

LEN(t) Returns the length of text string t – LEN("fish") gives 4.<br />

LOWER(t)<br />

Converts the text string t to lowercase – LOWER("James") gives<br />

“james”.<br />

LTRIM(t) Returns text string t with all leading space characters removed –<br />

LTRIM(" Text ") gives “Text “.<br />

MAX(n1;n2)<br />

Returns the maximum value of the values contained in the cells<br />

of a table in a rectangular region with coordinates n1 (upper left<br />

corner) and n2 (lower right corner). The coordinates must be<br />

preceded by # signs. Example: MAX (#B2;#C5). See also the<br />

section “Table cells in calculations” beginning on page 364.<br />

Manual TextMaker Calculations in the text 377

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

Saved successfully!

Ooh no, something went wrong!