In your example there are cells referenced as "C:C", "D:D", etc.
summaryData: [
{ rank:'Total', summaryRow: true, pq_fn:{revenues:'sum(C:C)', profits:'sum(profits)', diff:'sum(E:E)' }},
{ rank:'Average', summaryRow: true, pq_fn:{revenues:'average(C:C)', profits:'average(D:D)', diff:'average(E:E)' }},
{ rank:'Std deviation', summaryRow: true, pq_fn:{revenues:'stdev(C:C)', profits:'stdev(D:D)', diff:'stdev(E:E)' }}
]
Is there any way to reference cells from an array with cell heading names?
To make it clear: I may have the column VAT but I don't know how much columns are displayed before and after this column. So I need a way to reference all cells with a number value dynamically. The only reference I have is the column heading name.