Универсальные (динамические) типы

using System;

//Create simple Excel table
var excelType = Type.GetTypeFromProgID("Excel.Application");
dynamic excel = Activator.CreateInstance(excelType);
excel.workbooks.Add();
dynamic worksheet = excel.ActiveSheet;

worksheet.Cells[11] = 3;
worksheet.Cells[21] = 5;
worksheet.Cells[31] = "=sum(R[-2]C[0]:R[-1]C[0])";

excel.Visible = true;