~kosova/+junk/tuxfamily-twiki

« back to all changes in this revision

Viewing changes to foswiki/data/System/VarCALC.txt

  • Committer: James Michael DuPont
  • Date: 2009-07-18 19:58:49 UTC
  • Revision ID: jamesmikedupont@gmail.com-20090718195849-vgbmaht2ys791uo2
added foswiki

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%META:TOPICINFO{author="ProjectContributor" date="1180825069" format="1.1" version="1.1"}%
 
2
%META:TOPICPARENT{name="Macros"}%
 
3
#VarCALC
 
4
---+++ CALC{"formula"} -- add spreadsheet calculations to tables and outside tables
 
5
   * The =%<nop>CALC{"formula"}%= macro is handled by the SpreadSheetPlugin. There are around 90 formulae, such as =$ABS()=, =$EXACT()=, =$EXISTS()=, =$GET()/$SET()=, =$IF()=, =$LOG()=, =$LOWER()=, =$PERCENTILE()=, =$TIME()=, =$VALUE()=.
 
6
   * Syntax: =%<nop>CALC{"formula"}%=
 
7
   * Examples:
 
8
      * =%<nop>CALC{"$SUM($ABOVE())"}%= returns the sum of all cells above the current cell
 
9
      * =%<nop>CALC{"$EXISTS(<nop>Web.SomeTopic)"}%= returns =1= if the topic exists
 
10
      * =%<nop>CALC{"$UPPER(Collaboration)"}%= returns =COLLABORATION=
 
11
   * Related: [[#VarIF][IF]], SpreadSheetPlugin
 
12