Spreadsheet .NET > Tutorial > Sum Cells

The following example shows you how to add formula to a cell.

C# example
VB example