The subtotals will appear below each data group, and the grand total will be added to the end of the table. To overwrite any existing subtotals, keep the Replace current subtotals box selected, otherwise clear this box.įinally, click the OK button.To show a summary row below the details row, select this check box (usually selected by default). To display a summary row above the details row, clear the Summary below data box.To insert an automatic page break after each subtotal, select the Page break between groups box.In this example, we group the data by the Region column, and use the SUM function to total numbers in the Sales and Profit columns.Īdditionally, you can select any of the following option: 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. Please click on the following links to learn the details. Luckily, Microsoft Excel provides a powerful Subtotal feature that lets you quickly summarize different groups of data and create an outline for your worksheets. Worksheets with a lot of data can often look cluttered and difficult to comprehend. You will also learn how to display or hide the subtotal details, copy only subtotal rows, and how to remove subtotals. are optional additional ranges to subtotal.The tutorial explains how to use the Excel Subtotal feature to automatically sum, count or average different groups of cells. ref1 (required) is the range of cells to be sub-totaled.Hidden values are those rows hidden by the ‘ Hide & Unhide‘ sub-menu of the ‘ Format‘ options in the ‘ Cells‘ section of the Home tab ribbon. 1 (average including hidden values), 101 (average ignoring hidden values).