Under Add subtotal to, select the check box for each column that you want to subtotal.Varp - estimate the variance of a population based on an entire population of numbers.Var - estimate the variance of a population based on a sample of numbers.
StdDevp - return the standard deviation based on an entire population of numbers.StdDev - calculate the standard deviation of a population based on a sample of numbers.Count Numbers - count cells that contain numbers (this will insert Subtotal formulas with the COUNT function).Product - calculate the product of cells.Average - calculate the average of numbers.Count - count non-empty cells (this will insert Subtotal formulas with the COUNTA function).In the Use function box, select one of the following functions:.In the At each change in box, select the column containing the data that you want to group by.In the Subtotal dialog box, specify the three primary things - which column to group by, what summary function to use, and which columns to subtotal: If you want to add subtotals only for some part of your data, select the desired range before clicking the Subtotal button. Select any cell within your dataset, go to the Data tab > Outline group, and click Subtotal. To remove blank cells without messing up your data, please follow these guidelines: How to remove all blank rows in Excel. The easiest way to do this, is click the Filter button on the Data tab, then click the filter arrow, and select to sort either A to Z or Z to A: So, before adding subtotals, be sure to sort the column that you want to group your data by. The Excel Subtotal feature requires that the source data be arranged in a proper order and should not contain any blank rows.
To quickly add subtotals in Excel, perform the following steps. Additionally, it creates a hierarchy of groups, known as an outline, which lets you display or hide the details for each subtotal, or view just a summary of the subtotals and grand totals.įor example, this is how your Excel subtotals can look like: It allows you to group and summarize your data using SUM, COUNT, AVERAGE, MIN, MAX and other functions.
In Microsoft Excel, the Subtotal feature is not limited to only totaling subsets of values within a data set. Generally speaking, subtotal is the sum of a set of numbers, which is then added to another set(s) of numbers to make the grand total.