Master Excel Aggregate Functions in C# The code example above shows how to easily get aggregate values from a range of cells in an Excel spreadsheet. However, please note that any non-numerical cell will be left out. Sum The method Sum() returns the total sum of the selected range of cells. Average The method Average() returns the average of the selected range of cells. Minimum The method Min() returns the minimum number among the selected range of cells. Maximum The method Max() returns the maximum number among the selected range of cells. For more flexibility, the above functions can also be applied to single/multiple rows or columns. Learn more about selecting rows and columns. Explore Math Functions in Excel Using C# Related Docs Links View on Github Related Tutorial Related How-To Guide Class Documentation Download IronXL DLL Report an Issue on this page Ready to Get Started? Nuget Downloads 1,686,155 | Version: 2025.11 just released Free NuGet Download Total downloads: 1,686,155 View Licenses