ListColumn.TotalsCalculation Property (Excel)

Determines the type of calculation in the Totals row of the list column based on the value of the XlTotalsCalculation enumeration. Read/write.

Syntax

expression. TotalsCalculation

expression A variable that represents a ListColumn object.

Remarks

XlTotalsCalculation can be one of these XlTotalsCalculation constants.
xlTotalsCalculationSum
xlTotalsCalculationAverage
xlTotalsCalculationCount
xlTotalsCalculationCountNums
xlTotalsCalculationMin
xlTotalsCalculationStdDev
xlTotalsCalculationVar
xlTotalsCalculationMax

The Totals row doesn't need to be showing in order to set this property. There is no fixed "default" value for this property. Excel may change the state of this property, as other columns are added or deleted.

Example

ActiveSheet.ListColumns(1).TotalsCalculation=xlTotalsCalculationSum

See also

ListColumn Object