%META:TOPICINFO{author="TWikiContributor" date="1274941772" format="1.1" version="3"}%
%META:TOPICPARENT{name="TWikiVariables"}%
#VarCALC
---+++ CALC{"formula"} -- add spreadsheet calculations to tables and outside tables
   * The =%<nop>CALC{"formula"}%= variable is handled by the SpreadSheetPlugin. There are around 80 formulae, such as =$ABS()=, =$EXACT()=, =$EXISTS()=, =$GET()/$SET()=, =$IF()=, =$LOG()=, =$LOWER()=, =$PERCENTILE()=, =$TIME()=, =$VALUE()=.
   * Syntax: =%<nop>CALC{"formula"}%=
   * Examples:
      * =%<nop>CALC{"$SUM($ABOVE())"}%= returns the sum of all cells above the current cell
      * =%<nop>CALC{"$EXISTS(<nop>Web.SomeTopic)"}%= returns =1= if the topic exists
      * =%<nop>CALC{"$UPPER(Collaboration)"}%= returns =COLLABORATION=
   * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarIF][IF]], IfStatements, SpreadSheetPlugin
