Build 3.0.0.21 of xlsgen adds support for database functions in the calculation engine.
So far, the 12 database functions could be read and written, but now they can be evaluated as well.
DAVERAGE, Averages the values in a column in a list or a database that match conditions you specify
DCOUNT, Counts the cells containing numbers in the field (column) of records in the database that match the conditions you specify
DCOUNTA, Counts nonblank cells in the field (column) of records in the database that match conditions you specify
DGET, Extracts from a database a single record that matches the conditions you specify
DMAX, Returns the largest number in the field (column) of records in the database that match the conditions you specify
DMIN, Returns the smallest number in the field (column) of records in the database that match the conditions you specify
DPRODUCT, Multiplies the values in the field (column) of records in the database that match the conditions you specify
DSTDEV, Estimates the standard deviation based on a sample from selected database entries
DSTDEVP, Calculates the standard deviation based on the entire population of selected database entries
DSUM, Adds the numbers in the field (column) of records in the database that match the conditions you specify
DVAR, Estimates variance based on a sample from selected database entries
DVARP, Calculates variance based on the entire population of selected database entries
Each database function takes 3 parameters. The first is the cell area including the database itself. The second is the column title where the calculations will occur. The third is one or more criterias for doing the calculations.
Note that xlsgen has another mechanism,
table subtotals, which both does the same calculations and creates visuals of this (table sections according to criterias).