how to create automatic subtotals to sum
In the At each change in box, click the nested subtotal column. For example, using the example above, you would select Sport. In the Use function box, click the summary function that you want to use to calculate the subtotals. For example, using the example above, you would select Sum.nsert the outer subtotals. How to insert the outer subtotals. On the Data tab, in the Outline group, click Subtotal. The Subtotal dialog box is displayed. In the At each change in box, click the column for the outer subtotals. For example, using the example above, you would click Region.