ParamQuery grid and spreadsheet provides around 90 inbuilt Excel formulas which are mentioned in the table below. These formulas are most commonly used in day to day spreadsheets.
If you find any required formula missing from the list below, then you can either custom add it yourself the procedure of which is described below or inform us to consider them for addition in future versions.
Custom Excel formulas can be defined by
pq.formulas
namespacee.g.,
//Define custom Excel formula to display summary of children nodes in parent nodes of treegrid. //this formula receives single argument. pq.formulas.SUMTREE = function (ri) { var rd = grid.pageData()[ri], sum = 0, Tree = grid.Tree(); Tree.eachChild(rd, function (node) { if (node != rd && !Tree.isFolder(node)) sum += node.size * 1 || 0; }) return sum; }And then it can be used in treegrid as Excel formula.
SUMTREE(ROW()-1)[ Check here for a working example ]