Learn how to calculate subtotals in Excel in just 2 easy steps. This article covers everything you need to know, from using the SUBTOTAL function to the Subtotal feature.
In this quick Microsoft Excel tutorial video, learn two useful methods to calculate subtotals in Excel.
Here are the steps on how to calculate subtotals in Excel:
Using the SUBTOTAL function
=SUBTOTAL(function_code, range)
Where function_code
is the function you want to use to calculate the subtotal, and range
is the range of cells you want to calculate subtotals for. For example, to calculate the sum of the cells in the range A1:A10, you would use the following formula:
=SUBTOTAL(9, A1:A10)
The function codes for the different subtotal functions are:
1: Sum
2: Count
3: Average
4: Minimum
5: Maximum
Using the Subtotal feature
The subtotals will be calculated and displayed in the cells below the selected range.
I hope this helps!
#excel