1
%META:TOPICINFO{author="ProjectContributor" date="1180825069" format="1.1" version="1.1"}%
2
%META:TOPICPARENT{name="Macros"}%
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"}%=
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