# GrapeCity.Documents.Excel.ITableColumn.TotalsCalculation

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_ITableColumn_TotalsCalculation_" data-uid="GrapeCity.Documents.Excel.ITableColumn.TotalsCalculation*">TotalsCalculation Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_ITableColumn_TotalsCalculation_" data-uid="GrapeCity.Documents.Excel.ITableColumn.TotalsCalculation*"></a>
<h4 id="GrapeCity_Documents_Excel_ITableColumn_TotalsCalculation" data-uid="GrapeCity.Documents.Excel.ITableColumn.TotalsCalculation">TotalsCalculation</h4>
<div class="markdown level1 summary"><p>Gets the calculation type used in the Totals row of this table column.</p>
<p>
The returned <a class="xref" href="GrapeCity.Documents.Excel.ITableColumn.TotalsCalculation.html#GrapeCity_Documents_Excel_ITableColumn_TotalsCalculation">TotalsCalculation</a> value determines how the totals cell
for the column is calculated when the table shows a totals row.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">TotalsCalculation TotalsCalculation { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Property TotalsCalculation As TotalsCalculation</code></pre>
</div>
<h5 id="GrapeCity_Documents_Excel_ITableColumn_TotalsCalculation_examples">Examples</h5>
<pre><code class="lang-csharp">worksheet.Range["A1:B3"].Value = new object[,] {
    {"Product", "Amount"},
    {"Apple", 100},
    {"Pear", 200}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
table.ShowTotals = true;
table.Columns[1].TotalsCalculation = TotalsCalculation.Sum;
TotalsCalculation calculation = table.Columns[1].TotalsCalculation;</code></pre>

</div>
