1 Date: Tue, 11 Jan 2009 8:18:24 +0100
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FSpreadsheet;
9 Content-Transfer-Encoding: binary
11 Phpwiki has extented the [[Help:Wikicreole|Wikicreole]] syntax of tables so that some simple
12 spreadsheet-like calculations can be performed in tables.
16 Five functions are available: SUM, AVERAGE, MAX, MIN and COUNT.
18 They operate on the current row (R) or column (C).
20 The function is placed in the cell surrounded by ##@@##.
21 Other wiki text can be placed in the cell, but there can be only one formula per cell.
27 | @@=SUM(R)@@ || Sum of cells in current row
29 | @@=SUM(C)@@ || Sum of cells in current column
31 | @@=AVERAGE(R)@@ || Average of cells in current row
33 | @@=AVERAGE(C)@@ || Average of cells in current column
35 | @@=MAX(R)@@ || Maximum value of cells in current row
37 | @@=MAX(C)@@ || Maximum value of cells in current column
39 | @@=MIN(R)@@ || Minimum value of cells in current row
41 | @@=MIN(C)@@ || Minimum value of cells in current column
44 | Number of cells in current row (numeric or not, excluding headers and current cell)
47 | Number of cells in current column (numeric or not, excluding headers and current cell)
56 |=Region |=Telecom Sales |=Power Sales |=Other |=TOTAL |
57 |=Europe | 320 | 80 | 120 |@@=SUM(R)@@ |
58 |=Asia | 580 | 723 | 564 |@@=SUM(R)@@ |
59 |=North America | 235 | 60 | 109 |@@=SUM(R)@@ |
60 |=South America | 120 | 35 | 82 |@@=SUM(R)@@ |
61 |=Antarctica | 0 | 0 | 12 |@@=SUM(R)@@ |
62 |=TOTAL | @@=SUM(C)@@ | @@=SUM(C)@@ | @@=SUM(C)@@ |Grand total: @@=SUM(R)@@ |
67 |=Region |=Telecom Sales |=Power Sales |=Other |=TOTAL |
68 |=Europe | 320 | 80 | 120 |@@=SUM(R)@@ |
69 |=Asia | 580 | 723 | 564 |@@=SUM(R)@@ |
70 |=North America | 235 | 60 | 109 |@@=SUM(R)@@ |
71 |=South America | 120 | 35 | 82 |@@=SUM(R)@@ |
72 |=Antarctica | 0 | 0 | 12 |@@=SUM(R)@@ |
73 |=TOTAL | @@=SUM(C)@@ | @@=SUM(C)@@ | @@=SUM(C)@@ |Grand total: @@=SUM(R)@@ |
76 Total of both colums and rows is calculated automatically by wiki.
82 |=Bug |=Priority |=Subject |=Status |=Days to fix
83 | 1231 | Low | File Open ... | Open | 3
84 | 1232 | High | Memory Window ... | Fixed | 2
85 | 1233 | Medium | Usability issue ... | Assigned | 5
86 | 1234 | High | No arrange ... | Fixed | 1
87 | Number of bugs: @@=COUNT(C)@@ | | | | Total: @@=SUM(C)@@ days
92 |=Bug |=Priority |=Subject |=Status |=Days to fix
93 | 1231 | Low | File Open ... | Open | 3
94 | 1232 | High | Memory Window ... | Fixed | 2
95 | 1233 | Medium | Usability issue ... | Assigned | 5
96 | 1234 | High | No arrange ... | Fixed | 1
97 | Number of bugs: @@=COUNT(C)@@ | | | | Total: @@=SUM(C)@@ days
100 === Min, Max and Average ===
104 |=Location |=Morning |=Noon |=Evening |=Average temperature |
105 | Paris | 7 | 13 | 10 | @@=AVERAGE(R)@@ |
106 | London | 3 | 10 | 8 | @@=AVERAGE(R)@@ |
107 | Berlin | 9 | 15 | 12 | @@=AVERAGE(R)@@ |
108 | Tokyo | 12 | 20 | 16 | @@=AVERAGE(R)@@ |
109 | Maximum temperature | @@=MAX(C)@@ | @@=MAX(C)@@ | @@=MAX(C)@@ | |
110 | Minimum temperature | @@=MIN(C)@@ | @@=MIN(C)@@ | @@=MIN(C)@@ | |
115 |=Location |=Morning |=Noon |=Evening |=Average temperature |
116 | Paris | 7 | 13 | 10 | @@=AVERAGE(R)@@ |
117 | London | 3 | 10 | 8 | @@=AVERAGE(R)@@ |
118 | Berlin | 9 | 15 | 12 | @@=AVERAGE(R)@@ |
119 | Tokyo | 12 | 20 | 16 | @@=AVERAGE(R)@@ |
120 | Maximum temperature | @@=MAX(C)@@ | @@=MAX(C)@@ | @@=MAX(C)@@ | |
121 | Minimum temperature | @@=MIN(C)@@ | @@=MIN(C)@@ | @@=MIN(C)@@ | |
126 * Marc-Etienne Vargenau, Alcatel-Lucent
129 [[PhpWikiDocumentation]]