To sort subtotals for groups in Excel, you can follow these steps:
- Select the data range that you want to sort.
- Go to the "Data" tab in the ribbon and click on "Sort".
- In the "Sort" dialog box, select the column that contains the subtotals you want to sort by in the "Sort by" dropdown list.
- Choose "Values" in the "Sort On" dropdown list.
- Select "Descending" in the "Order" dropdown list.
- Click "Add Level" to add another sorting level if needed.
- Select the column you want to sort by in the "Then by" dropdown list.
- Choose "Values" in the "Sort On" dropdown list.
- Select "Descending" in the "Order" dropdown list.
- Click "OK" to apply the sorting.
This should sort your subtotals by descending order of cost. If you have used the subtotals feature to group your data, the subtotals will remain grouped together and sorted within their respective groups.