JSpreadsheet > Tutorial > Sum Cells

The following example shows you how to add formula to a cell.