Generate an Excel report from a template in C#: repeating rows from JSON, UseSpreadsheetDataTypes so numbers stay numbers, totals as template Expressions, and empty rows removed.... Totals: a template expression, not a worksheet formula...and aggregates inside the expressions: GroupBy , Sum , Count ,...