Line: 1 to 1 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds spreadsheet capabilities to TWiki topics. Formulae like | |||||||||||||
Line: 121 to 121 | |||||||||||||
EVAL( formula ) -- evaluate a simple mathematical formula
| |||||||||||||
Added: | |||||||||||||
> > |
| ||||||||||||
Line: 150 to 151 | |||||||||||||
EXISTS( topic ) -- check if topic exists | |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Added: | |||||||||||||
> > |
EXP( num ) -- exponent (e) raised to the power of a number | ||||||||||||
FIND( string, text, start ) -- find one string within another string
| |||||||||||||
Line: 165 to 173 | |||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < | FORMAT( type, prec, number ) -- format a number to a certain type and precision
| ||||||||||||
> > | FORMAT( type, precision, number ) -- format a number to a certain type and precision
| ||||||||||||
| |||||||||||||
Line: 176 to 192 | |||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
FORMATGMTIME( serial, text ) -- convert a serialized date into a GMT date string
| ||||||||||||
FORMATTIME( serial, text ) -- convert a serialized date into a date string
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
Changed: | |||||||||||||
< < |
FORMATGMTIME( serial, text ) -- convert a serialized date into a GMT date string
| ||||||||||||
> > |
FORMATTIMEDIFF( unit, precision, time ) -- convert elapsed time to a string
| ||||||||||||
GET( name ) -- get the value of a previously set variable | |||||||||||||
Line: 211 to 240 | |||||||||||||
INT( formula ) -- evaluate formula and round down to nearest integer
| |||||||||||||
Added: | |||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Added: | |||||||||||||
> > |
| ||||||||||||
Line: 309 to 341 | |||||||||||||
| |||||||||||||
Added: | |||||||||||||
> > |
LN( num ) -- natural logarithm of a number
LOG( num, base ) -- logarithm of a number to a given base | ||||||||||||
LOWER( text ) -- lower case string of a text
| |||||||||||||
Line: 377 to 424 | |||||||||||||
Added: | |||||||||||||
> > |
PI( ) -- mathematical constant Pi, 3.14159265358979
| ||||||||||||
PRODUCT( list ) -- product of a list or range of cells
| |||||||||||||
Line: 387 to 439 | |||||||||||||
PROPER( text ) -- properly capitalize text
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
PROPERSPACE( text ) -- properly space out WikiWords | |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
Line: 441 to 493 | |||||||||||||
SEARCH( string, text, start ) -- search a string within a text | |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Line: 476 to 528 | |||||||||||||
Added: | |||||||||||||
> > |
SQRT( num ) -- square root of a number
| ||||||||||||
SUBSTITUTE( text, old, new, instance, option ) -- substitute text | |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Line: 524 to 581 | |||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > | |||||||||||||
TIMEADD( serial, value, unit ) -- add a value to a serialized date | |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
TIMEDIFF( serial_1, serial_2, unit ) -- time difference between two serialized dates | |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
TODAY( ) -- serialized date of today at midnight GMT | |||||||||||||
Line: 580 to 637 | |||||||||||||
Can I use CALC in a formatted search? | |||||||||||||
Changed: | |||||||||||||
< < | Specifically, how can I output some conditional text in a FormattedSearch? | ||||||||||||
> > | Specifically, how can I output some conditional text in a FormattedSearch? | ||||||||||||
Changed: | |||||||||||||
< < | You need to escape the CALC so that it executes once per search hit. This can be done by escaping the % signs of %CALC{...}% with $percnt . For example, to execute $IF($EXACT($formfield(Tested), Yes), %PUBURL%/%TWIKIWEB%/TWikiDocGraphics/choice-yes.gif, %PUBURL%/%TWIKIWEB%/TWikiDocGraphics/choice-no.gif) in the format="" parameter, write this: | ||||||||||||
> > | You need to escape the CALC so that it executes once per search hit. This can be done by escaping the % signs of %CALC{...}% with $percnt . For example, to execute $IF($EXACT($formfield(Tested), Yes), %PUBURL%/%SYSTEMWEB%/TWikiDocGraphics/choice-yes.gif, %PUBURL%/%SYSTEMWEB%/TWikiDocGraphics/choice-no.gif) in the format="" parameter, write this: | ||||||||||||
Changed: | |||||||||||||
< < | %SEARCH{ .... format="| $topic | $percntCALC{$IF($EXACT($formfield(Tested), Yes), %PUBURL%/%TWIKIWEB%/TWikiDocGraphics/choice-yes.gif, %PUBURL%/%TWIKIWEB%/TWikiDocGraphics/choice-no.gif)}$percnt |" }% | ||||||||||||
> > | %SEARCH{ .... format="| $topic | $percntCALC{$IF($EXACT($formfield(Tested), Yes), %PUBURL%/%SYSTEMWEB%/TWikiDocGraphics/choice-yes.gif, %PUBURL%/%SYSTEMWEB%/TWikiDocGraphics/choice-no.gif)}$percnt |" }% | ||||||||||||
How can I easily repeat a formula in a table? | |||||||||||||
Line: 627 to 684 | |||||||||||||
Plugin settings are stored as preferences variables. To reference
a plugin setting write %<plugin>_<setting>% , i.e. %SPREADSHEETPLUGIN_SHORTDESCRIPTION% | |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Line: 637 to 694 | |||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
Line: 658 to 715 | |||||||||||||
Plugin Info
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Added: | |||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Line: 697 to 760 | |||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < | Related Topics: TWikiPreferences, TWikiPlugins | ||||||||||||
> > | Related Topics: TWikiPreferences, TWikiPlugins, VarCALC | ||||||||||||
Changed: | |||||||||||||
< < | -- TWiki:Main/PeterThoeny - 23 Jan 2007 | ||||||||||||
> > | -- TWiki:Main/PeterThoeny - 13 Oct 2007 | ||||||||||||
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds spreadsheet capabilities to TWiki topics. Formulae like | ||||||||
Line: 260 to 260 | ||||||||
LISTMAP( formula, list ) -- evaluate and update each element of a list | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 268 to 268 | ||||||||
LISTRAND( list ) -- get one random element of a list
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 658 to 658 | ||||||||
Plugin Info
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 705 to 706 | ||||||||
Related Topics: TWikiPreferences, TWikiPlugins | ||||||||
Changed: | ||||||||
< < | -- TWiki:Main/PeterThoeny - 18 Dec 2006 | |||||||
> > | -- TWiki:Main/PeterThoeny - 23 Jan 2007 | |||||||
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds spreadsheet capabilities to TWiki topics. Formulae like | ||||||||
Line: 232 to 232 | ||||||||
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
LISTIF( condition, list ) -- remove elements from a list that do not meet a condition | ||||||||
Line: 249 to 249 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
LISTJOIN( separator, list ) -- convert a list into a string | ||||||||
Line: 265 to 265 | ||||||||
| ||||||||
Added: | ||||||||
> > |
LISTRAND( list ) -- get one random element of a list
| |||||||
LISTREVERSE( list ) -- opposite order of a list
| ||||||||
Line: 275 to 281 | ||||||||
LISTSIZE( list ) -- number of elements in a list
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
LISTSHUFFLE( list ) -- shuffle element of a list in random order
| |||||||
LISTSORT( list ) -- sort a list
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
LISTTRUNCATE( size, list ) -- truncate list to size
| |||||||
LISTUNIQUE( list ) -- remove all duplicates from a list | ||||||||
Line: 383 to 402 | ||||||||
RAND( max ) -- random number
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < | REPEAT(text) -- repeat text a number of times
| |||||||
> > | REPEAT( text, num ) -- repeat text a number of times
| |||||||
| ||||||||
Line: 557 to 576 | ||||||||
| ||||||||
Added: | ||||||||
> > | FAQ
Can I use CALC in a formatted search?Specifically, how can I output some conditional text in a FormattedSearch?
You need to escape the CALC so that it executes once per search hit. This can be done by escaping the
How can I easily repeat a formula in a table?To repeat the same formula in all cells of a table row define the formula once in a preferences setting and use that in the CALC. The preferences setting can be hidden in HTML comments. Example:
<!-- * Set MYFORMULA = $EVAL($SUBSTITUTE(...etc...)) --> | A | 1 | %CALC{%MYFORMULA%}% | | B | 2 | %CALC{%MYFORMULA%}% | | C | 3 | %CALC{%MYFORMULA%}% | | |||||||
Bug Tracking Example
| ||||||||
Line: 586 to 628 | ||||||||
a plugin setting write %<plugin>_<setting>% , i.e. %SPREADSHEETPLUGIN_SHORTDESCRIPTION%
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 618 to 660 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 661 to 705 | ||||||||
Related Topics: TWikiPreferences, TWikiPlugins | ||||||||
Changed: | ||||||||
< < | -- TWiki:Main/PeterThoeny - 13 May 2006 | |||||||
> > | -- TWiki:Main/PeterThoeny - 18 Dec 2006 | |||||||
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds spreadsheet capabilities to TWiki topics. Formulae like | ||||||||
Line: 66 to 66 | ||||||||
Changed: | ||||||||
< < | AND( list ) -- logcial AND of a list | |||||||
> > | AND( list ) -- logical AND of a list | |||||||
Line: 197 to 197 | ||||||||
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > |
| |||||||
IF( condition, value if true, value if 0 ) -- return a value based on a condition | ||||||||
Line: 346 to 346 | ||||||||
Changed: | ||||||||
< < | OR( list ) -- logcial OR of a list | |||||||
> > | OR( list ) -- logical OR of a list | |||||||
Line: 376 to 376 | ||||||||
PROPERSPACE( text ) -- properly space out WikiWords
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 431 to 431 | ||||||||
SET( name, value ) -- set a variable for later use | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > |
SETIFEMPTY( name, value ) -- set a variable only if empty | |||||||
SETM( name, formula ) -- update an existing variable based on a formula
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > |
| |||||||
SIGN( num ) -- sign of a number | ||||||||
Line: 603 to 610 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Plugin Info
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 647 to 657 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
Related Topics: TWikiPreferences, TWikiPlugins | ||||||||
Changed: | ||||||||
< < | -- TWiki:Main/PeterThoeny - 17 Jun 2005 | |||||||
> > | -- TWiki:Main/PeterThoeny - 13 May 2006 | |||||||
Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin | |||||||||||
Changed: | |||||||||||
< < | This Plugin adds speadsheet capabilities to TWiki topics. Formulae like %CALC{"$INT(7/3)"}% are evaluated at page view time. They can be placed in table cells and outside of tables. In other words, this Plugin provides general formula evaluation capability, not just classic spreadsheet functions. | ||||||||||
> > | This Plugin adds spreadsheet capabilities to TWiki topics. Formulae like %CALC{"$INT(7/3)"}% are evaluated at page view time. They can be placed in table cells and outside of tables. In other words, this Plugin provides general formula evaluation capability, not just classic spreadsheet functions. | ||||||||||
| |||||||||||
Line: 63 to 63 | |||||||||||
ABS( num ) -- absolute value of a number
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > | |||||||||||
AND( list ) -- logcial AND of a list | |||||||||||
Line: 119 to 119 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < | EVAL( formula ) -- evaluate a simple formula | ||||||||||
> > | EVAL( formula ) -- evaluate a simple mathematical formula | ||||||||||
| |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > |
EVEN( num ) -- test for even number | ||||||||||
EXACT( text1, text2 ) -- compare two text strings | |||||||||||
Line: 133 to 139 | |||||||||||
Added: | |||||||||||
> > |
EXEC( formula ) -- execute a spreadsheet formula
EXISTS( topic ) -- check if topic exists
| ||||||||||
FIND( string, text, start ) -- find one string within another string
| |||||||||||
Line: 144 to 166 | |||||||||||
FORMAT( type, prec, number ) -- format a number to a certain type and precision | |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Added: | |||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 171 to 197 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > | |||||||||||
IF( condition, value if true, value if 0 ) -- return a value based on a condition | |||||||||||
Line: 206 to 232 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > | |||||||||||
LISTIF( condition, list ) -- remove elements from a list that do not meet a condition | |||||||||||
Line: 225 to 251 | |||||||||||
| |||||||||||
Added: | |||||||||||
> > |
LISTJOIN( separator, list ) -- convert a list into a string
| ||||||||||
LISTMAP( formula, list ) -- evaluate and update each element of a list
| |||||||||||
Line: 242 to 275 | |||||||||||
LISTSIZE( list ) -- number of elements in a list
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
LISTSORT( list ) -- sort a list | |||||||||||
Line: 267 to 300 | |||||||||||
MAX( list ) - biggest value of a list or range of cells
| |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > |
| ||||||||||
MEDIAN( list ) -- median of a list or range of cells
| |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > |
| ||||||||||
MIN( list ) -- smallest value of a list or range of cells
| |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > |
| ||||||||||
MOD( num, divisor ) -- reminder after dividing | |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > |
NOEXEC( formula ) -- do not execute a spreadsheet formula
| ||||||||||
NOP( text ) -- no-operation | |||||||||||
Line: 299 to 339 | |||||||||||
Added: | |||||||||||
> > |
ODD( num ) -- test for odd number | ||||||||||
OR( list ) -- logcial OR of a list | |||||||||||
Added: | |||||||||||
> > |
PERCENTILE( num, list ) -- percentile of a list or range of cells | ||||||||||
PRODUCT( list ) -- product of a list or range of cells
| |||||||||||
Line: 312 to 365 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < | PROPER( text ) -- properly capitalize trxt | ||||||||||
> > | PROPER( text ) -- properly capitalize text | ||||||||||
| |||||||||||
Line: 323 to 376 | |||||||||||
PROPERSPACE( text ) -- properly space out WikiWords
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
Line: 378 to 431 | |||||||||||
SET( name, value ) -- set a variable for later use | |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > | |||||||||||
SETM( name, formula ) -- update an existing variable based on a formula | |||||||||||
Line: 395 to 448 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > | |||||||||||
SUBSTITUTE( text, old, new, instance, option ) -- substitute text | |||||||||||
Line: 423 to 476 | |||||||||||
SUMPRODUCT( list, list ) -- scalar product on ranges of cells
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 451 to 504 | |||||||||||
TIMEADD( serial, value, unit ) -- add a value to a serialized date
| |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 532 to 584 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 551 to 603 | |||||||||||
| |||||||||||
Added: | |||||||||||
> > |
| ||||||||||
Plugin Info
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Added: | |||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 572 to 630 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 592 to 650 | |||||||||||
Related Topics: TWikiPreferences, TWikiPlugins | |||||||||||
Changed: | |||||||||||
< < | -- TWiki:Main/PeterThoeny - 17 Jul 2004 | ||||||||||
> > | -- TWiki:Main/PeterThoeny - 17 Jun 2005 | ||||||||||
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds speadsheet capabilities to TWiki topics. Formulae like | ||||||||
Line: 411 to 411 | ||||||||
SUM( list ) -- sum of a list or range of cells
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
SUMDAYS( list ) -- sum the days in a list or range of cells | ||||||||
Line: 445 to 445 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
TIMEADD( serial, value, unit ) -- add a value to a serialized date | ||||||||
Line: 460 to 460 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
TODAY( ) -- serialized date of today at midnight GMT | ||||||||
Line: 491 to 491 | ||||||||
Added: | ||||||||
> > |
WORKINGDAYS( serial_1, serial_2 ) -- working days between two serialized dates
| |||||||
Bug Tracking Example
| ||||||||
Line: 549 to 556 | ||||||||
Plugin Info
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 584 to 592 | ||||||||
Related Topics: TWikiPreferences, TWikiPlugins | ||||||||
Changed: | ||||||||
< < | -- TWiki:Main/PeterThoeny - 24 May 2004 ` | |||||||
> > | -- TWiki:Main/PeterThoeny - 17 Jul 2004 | |||||||
Line: 1 to 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | TWiki Spreadsheet Plugin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | TWiki Spreadsheet Plugin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This Plugin adds speadsheet capabilities to TWiki topics. Formulae like %CALC{"$INT(7/3)"}% are evaluated at page view time. They can be placed in table cells and outside of tables. In other words, this Plugin provides general formula evaluation capability, not just classic spreadsheet functions. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Line: 19 to 19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Formula: %CALC{" "}% Result: guest | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Formula: %CALC{" TWikiGuest? )" />"}% Result: TWiki Guest | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The formula next to "Total" is %CALC{"$SUM( $ABOVE() )"}% . (you see the formula instead of the sum in case the Plugin is not installed or not enabled.) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Syntax Rules | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Line: 51 to 49 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Built-in Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Conventions for Syntax:
ABOVE( ) -- address range of cells above the current cell
ABS( num ) -- absolute value of a number
AND( list ) -- logcial AND of a listAVERAGE( list ) -- average of a list or a range of cells
CHAR( number ) -- ASCII character represented by number
CODE( text ) -- ASCII numeric value of character
COLUMN( offset ) -- current column number
COUNTITEMS( list ) -- count individual items in a list
COUNTSTR( list, str ) -- count the number of cells in a list equal to a given string
DEF( list ) -- find first non-empty list item or cell
EVAL( formula ) -- evaluate a simple formula
EXACT( text1, text2 ) -- compare two text strings
FIND( string, text, start ) -- find one string within another string
FORMAT( type, prec, number ) -- format a number to a certain type and precision
FORMATTIME( serial, text ) -- convert a serialized date into a date string
FORMATGMTIME( serial, text ) -- convert a serialized date into a GMT date string
GET( name ) -- get the value of a previously set variable
IF( condition, value if true, value if 0 ) -- return a value based on a condition
INT( formula ) -- evaluate formula and round down to nearest integer
LEFT( ) -- address range of cells to the left of the current cell
LENGTH( text ) -- length of text in bytes
LIST( range ) -- convert content of a cell range into a list
LISTIF( condition, list ) -- remove elements from a list that do not meet a condition
LISTITEM( index, list ) -- get one element of a list
LISTMAP( formula, list ) -- evaluate and update each element of a list
LISTREVERSE( list ) -- opposite order of a list
LISTSIZE( list ) -- number of elements in a list
LISTSORT( list ) -- sort a list
LISTUNIQUE( list ) -- remove all duplicates from a list
LOWER( text ) -- lower case string of a text
MAX( list ) - biggest value of a list or range of cells
MEDIAN( list ) -- median of a list or range of cells
MIN( list ) -- smallest value of a list or range of cells
MOD( num, divisor ) -- reminder after dividing
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bug Tracking Example | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Line: 174 to 549 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Plugin Info
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Line: 208 to 584 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Related Topics: TWikiPreferences, TWikiPlugins | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | -- TWiki:Main/PeterThoeny - 03 Apr 2004 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | -- TWiki:Main/PeterThoeny - 24 May 2004 ` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds speadsheet capabilities to TWiki topics. Formulae like | ||||||||
Changed: | ||||||||
< < | Example: | |||||||
> > |
| |||||||
| ||||||||
Line: 13 to 14 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
The formula next to "Total" is %CALC{"$SUM( $ABOVE() )"}% . (you see the formula instead of the sum in case the Plugin is not installed or not enabled.) | ||||||||
Added: | ||||||||
> > | ||||||||
Syntax Rules | ||||||||
Line: 58 to 74 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds speadsheet capabilities to TWiki topics. Formulae like | ||||||||
Line: 37 to 37 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 47 to 48 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 57 to 58 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 80 to 82 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 156 to 158 | ||||||||
Plugin Info
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 189 to 192 | ||||||||
Related Topics: TWikiPreferences, TWikiPlugins | ||||||||
Changed: | ||||||||
< < | -- TWiki:Main/PeterThoeny - 21 Mar 2004 | |||||||
> > | -- TWiki:Main/PeterThoeny - 03 Apr 2004 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin | ||||||||
Changed: | ||||||||
< < | This Plugin adds speadsheet capabilities to TWiki topics. Formulas like %CALC{"$INT(7/3)"}% are evaluated at page view time. They can be placed in table cells and outside of tables. | |||||||
> > | This Plugin adds speadsheet capabilities to TWiki topics. Formulae like %CALC{"$INT(7/3)"}% are evaluated at page view time. They can be placed in table cells and outside of tables. In other words, this Plugin provides general formula evaluation capability, not just classic spreadsheet functions. | |||||||
Example: | ||||||||
Line: 18 to 18 | ||||||||
Syntax Rules | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > | The action of this Plugin is triggered by the %CALC{"..."}% variable, which gets rendered according to the built-in function(s) found between the quotes.
| |||||||
| ||||||||
Line: 56 to 57 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 71 to 73 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 135 to 137 | ||||||||
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
Line: 154 to 156 | ||||||||
Plugin Info
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 186 to 189 | ||||||||
Related Topics: TWikiPreferences, TWikiPlugins | ||||||||
Changed: | ||||||||
< < | -- TWiki:Main/PeterThoeny - 16 Mar 2004 | |||||||
> > | -- TWiki:Main/PeterThoeny - 21 Mar 2004 |
Line: 1 to 1 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds speadsheet capabilities to TWiki topics. Formulas like | |||||||||||||
Line: 43 to 43 | |||||||||||||
| |||||||||||||
Deleted: | |||||||||||||
< < |
| ||||||||||||
| |||||||||||||
Line: 52 to 51 | |||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Line: 76 to 80 | |||||||||||||
| |||||||||||||
Added: | |||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Line: 149 to 154 | |||||||||||||
Plugin Info
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Added: | |||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Line: 180 to 186 | |||||||||||||
Related Topics: TWikiPreferences, TWikiPlugins | |||||||||||||
Changed: | |||||||||||||
< < | -- TWiki:Main/PeterThoeny - 08 Mar 2004 | ||||||||||||
> > | -- TWiki:Main/PeterThoeny - 16 Mar 2004 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds speadsheet capabilities to TWiki topics. Formulas like | ||||||||
Line: 56 to 56 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 68 to 69 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 88 to 89 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Bug Tracking Example | ||||||||
Line: 148 to 149 | ||||||||
Plugin Info
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 178 to 180 | ||||||||
Related Topics: TWikiPreferences, TWikiPlugins | ||||||||
Changed: | ||||||||
< < | -- TWiki:Main/PeterThoeny - 06 Mar 2004 | |||||||
> > | -- TWiki:Main/PeterThoeny - 08 Mar 2004 |
Line: 1 to 1 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds speadsheet capabilities to TWiki topics. Formulas like | |||||||||||||||
Line: 20 to 20 | |||||||||||||||
| |||||||||||||||
Changed: | |||||||||||||||
< < |
| ||||||||||||||
> > |
| ||||||||||||||
| |||||||||||||||
Line: 35 to 36 | |||||||||||||||
| |||||||||||||||
Changed: | |||||||||||||||
< < |
| ||||||||||||||
> > |
| ||||||||||||||
| |||||||||||||||
Line: 50 to 52 | |||||||||||||||
| |||||||||||||||
Changed: | |||||||||||||||
< < |
| ||||||||||||||
> > |
| ||||||||||||||
| |||||||||||||||
Line: 58 to 60 | |||||||||||||||
| |||||||||||||||
Changed: | |||||||||||||||
< < |
| ||||||||||||||
> > |
| ||||||||||||||
| |||||||||||||||
Added: | |||||||||||||||
> > |
| ||||||||||||||
| |||||||||||||||
Changed: | |||||||||||||||
< < |
| ||||||||||||||
> > |
| ||||||||||||||
| |||||||||||||||
Added: | |||||||||||||||
> > |
| ||||||||||||||
| |||||||||||||||
Line: 78 to 88 | |||||||||||||||
| |||||||||||||||
Added: | |||||||||||||||
> > |
| ||||||||||||||
Bug Tracking Example | |||||||||||||||
Line: 102 to 113 | |||||||||||||||
Above table is created manually. Another Plugin could build the table dynamically, e.g. by pulling data out of a bug tracking system. The Spreadsheet Plugin can be used to display table data statistics. | |||||||||||||||
Changed: | |||||||||||||||
< < | SpreadSheetPlugin Settings | ||||||||||||||
> > | Plugin Settings | ||||||||||||||
Plugin settings are stored as preferences variables. To reference
a plugin setting write %<plugin>_<setting>% , i.e. %SPREADSHEETPLUGIN_SHORTDESCRIPTION% | |||||||||||||||
Line: 116 to 127 | |||||||||||||||
| |||||||||||||||
Added: | |||||||||||||||
> > |
| ||||||||||||||
Plugin Installation Instructions | |||||||||||||||
Line: 132 to 148 | |||||||||||||||
Plugin Info
| |||||||||||||||
Changed: | |||||||||||||||
< < |
| ||||||||||||||
> > |
| ||||||||||||||
| |||||||||||||||
Added: | |||||||||||||||
> > |
| ||||||||||||||
| |||||||||||||||
Line: 161 to 178 | |||||||||||||||
Related Topics: TWikiPreferences, TWikiPlugins | |||||||||||||||
Changed: | |||||||||||||||
< < | -- TWiki:Main/PeterThoeny - 27 Feb 2004 | ||||||||||||||
> > | -- TWiki:Main/PeterThoeny - 06 Mar 2004 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Spreadsheet Plugin
This Plugin adds speadsheet capabilities to TWiki topics. Formulas like | ||||||||
Line: 20 to 20 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 39 to 39 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 49 to 50 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 131 to 132 | ||||||||
Plugin Info
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 151 to 153 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 158 to 161 | ||||||||
Related Topics: TWikiPreferences, TWikiPlugins | ||||||||
Changed: | ||||||||
< < | -- TWiki:Main/PeterThoeny - 24 Oct 2003 | |||||||
> > | -- TWiki:Main/PeterThoeny - 27 Feb 2004 |
Line: 1 to 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | TWiki Spreadsheet Plugin
This Plugin adds speadsheet capabilities to TWiki topics. Formulas like Example:
The formula next to "Total" is
Syntax Rules
Built-in Functions
Bug Tracking Example
The last row is defined as:
| Total: %CALC{"$ROW(-2)"}% \ | %CALC{"$COUNTITEMS( R2:C$COLUMN()..R$ROW(-1):C$COLUMN() )"}% | . \ | %CALC{"$COUNTITEMS( R2:C$COLUMN()..R$ROW(-1):C$COLUMN() )"}% \ | Total: %CALC{"$SUM( R2:C$COLUMN()..R$ROW(-1):C$COLUMN() )"}% | Above table is created manually. Another Plugin could build the table dynamically, e.g. by pulling data out of a bug tracking system. The Spreadsheet Plugin can be used to display table data statistics.
SpreadSheetPlugin Settings
Plugin settings are stored as preferences variables. To reference
a plugin setting write
Plugin Installation InstructionsNote: You do not need to install anything on the browser to use this plugin. Below installation instructions are for the administrator who needs to install this plugin on the TWiki server.
Plugin Info
Related Topics: TWikiPreferences, TWikiPlugins -- TWiki:Main/PeterThoeny - 24 Oct 2003 |