ok, I added this to turn my summary into a real formula. It works well. I wonder though if there is a means to get column in letter notation any other way than trimming off n numbers - e.Range.AddressLocal. Would be nice to have a e.Range.AddressLocalColumn :)
private void OptionsOnCellExporting(object sender, DataGridCellExcelExportingEventArgs e)
{
if (e.CellType == ExportCellType.TableSummaryCell && e.ColumnName == "hours")
{
var lastRow = e.Range.Row;
if (lastRow > 2)
{
var colName = e.Range.AddressLocal;
colName = colName.TrimEnd('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
e.Range.Cells[0].Formula = $"sum({colName}2:{colName}{lastRow-1})";
}
e.Handled = true;
}
}