Create Excel file with formula in sheet cells using EasyXLS library! XLS, XLSX, XLSM, XLSB files in .NET.
https://www.easyxls.com/manual/tutorials/vb-net/add-excel-formula.html