title: C# code to find sum of column values in Excel
body: <p>I've got a DataTable like below,</p>
  
  <pre><code>EmpID   EETaxes    ERTaxes   NetPay
  
  100      130.09    120.05    550.00
  
  200      445.68    344.80    980.00
  
  300      100.00    200.00    600.00
  </code></pre>
  
  <p>And I am exporting the DataTable to Excel,</p>
  
  <p>My problem is that after exporting the data to Excel, I need to display sum(EETaxes) and sum(ERTaxes) and sum(NetPay).</p>
  
  <p>Can anyone tell me the C# code to find the sum of the values in a column in Excel dynamically?</p>