Hi,
Thanks for considering Aspose.
I think you may place your dynamic formulas using Aspose.Cells APIs for your need. Yor are not to place your dynamic formulas in your template excel file. You may do it in your code after processing the smart markers.
May the following sample example helps you for your need.
E.g.,
OleDbConnection con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=d:\\test\\Northwind.mdb");
con.Open();
OleDbCommand cmd = new OleDbCommand("Select * from Products",con);
OleDbDataAdapter da = new OleDbDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds,"Products");
DataTable dt = ds.Tables["Products"];
WorkbookDesigner wd = new WorkbookDesigner();
wd.Open("d:\\test\\templatebook.xls");
wd.SetDataSource(dt);
wd.Process();
Cells cells = wd.Workbook.Worksheets[0].Cells;
int lastrowindex = cells.MaxDataRowInColumn(0);
int maxrow = lastrowindex +1;
cells[maxrow,0].Formula = "=SUM(A2:A" + maxrow.ToString()+ ")";
wd.Workbook.CalculateFormula();
wd.Save("d:\\test\\outbook.xls");
Thank you.