Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Excel
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
About subtotals
 

Example of automatic subtotals

Microsoft Excel can automatically calculate subtotal and grand total values in a list (list: A series of rows that contains related data or a series of rows that you designate to function as a datasheet by using the Create List command.). When you insert automatic subtotals, Excel outlines the list so that you can display and hide the detail rows for each subtotal.

To insert subtotals, you first sort your list so that the rows you want to subtotal are grouped together. You can then calculate subtotals for any column that contains numbers.

If your data isn't organized as a list, or you only need a single total, you can use AutoSum Button image instead of automatic subtotals.

ShowHow subtotals are calculated

Subtotals    Excel calculates subtotal values with a summary function (summary function: A type of calculation that combines source data in a PivotTable report or a consolidation table, or when you are inserting automatic subtotals in a list or database. Examples of summary functions include Sum, Count, and Average.), such as Sum or Average. You can display subtotals in a list with more than one type of calculation at a time.

Grand totals    Grand total values are derived from detail data (detail data: For automatic subtotals and worksheet outlines, the subtotal rows or columns that are totaled by summary data. Detail data is typically adjacent to and either above or to the left of the summary data.), not from the values in the subtotal rows. For example, if you use the Average summary function, the grand total row displays an average of all detail rows in the list, not an average of the values in the subtotal rows.

Automatic recalculation    Excel recalculates subtotal and grand total values automatically as you edit the detail data.

ShowNesting subtotals

You can insert subtotals for smaller groups within existing subtotal groups. In the example below, subtotals for each sport are in a list that already has subtotals for each region.

Example of outer and nested subtotals

Callout 1 Outer subtotals

Callout 2 Nested subtotals

Before inserting nested subtotals, be sure to sort the list by all the columns for which you want subtotal values, so that the rows you want subtotaled are grouped together.

ShowSummary reports and charts

Create summary reports    When you add subtotals to a list, the list is outlined so that you can see its structure. You can create a summary report by clicking the outline symbols one two three, plus, and minus to hide the details and show only the totals.

Outlined list with only total rows showing

Chart the summary data    You can create a chart that uses only the visible data in a list that contains subtotals. If you show or hide details in the outlined list, the chart is also updated to show or hide the data.

Chart made from subtotal data

advertisement