subtotal function excel
Follow these steps to add subtotals to a list in a worksheet: 1  Sort the list on the field for which you want subtotals inserted. 2  Click the Subtotal button in the Outline group on the Data tab. The Subtotal dialog box appears. 3  Select the field for which the subtotals are to be calculated in the At Each Change In drop-down list.