Using Formulas and Functions
- 6/15/2010
- Understanding Formulas and Cell References in Excel
- Creating Simple Cell Formulas
- Assigning Names to Groups of Cells
- Using Names in Formulas
- Creating a Formula That References Values in an Excel Table
- Creating Formulas That Reference Cells in Other Workbooks
- Summing a Group of Cells Without Using a Formula
- Creating a Summary Formula
- Summing with Subtotals and Grand Totals
- Exploring the Excel Function Library
- Using the IF Function
- Checking Formula References
- Debugging Your Formulas
Summing with Subtotals and Grand Totals
You frequently need to organize the data in an Excel worksheet by one or more criteria. For example, you might have a worksheet in which you list yearly sales for each product you offer, with the products broken down by category. If your data is organized this way, you can have Excel calculate a subtotal for each category of products. When you create a subtotal, you identify the cells with the values to be calculated and the cells that identify the change from one category to the next; Excel updates the subtotal and grand total for you if the value of any cell changes.
Create a Subtotal
Click any cell in the range you want to subtotal.
Click the Data tab.
In the Outline group, click Subtotal.
Click the At Each Change In down arrow.
Click the value on which you want to base the subtotals.
Click the Use Function down arrow.
Click the subtotal function you want to use.
Select which columns should have subtotals calculated.
Click OK.
Remove a Subtotal
Click any cell in the subtotaled range.
Click the Data tab.
Click Subtotal.
Click Remove All.