Use a row level button to collapse worksheet rows to display only subtotals and the grand total. Then, use a show details button to display individual records for the Appliances subcategory of data (the second show details (+) symbol). How to do this in excel

1 answer

To collapse worksheet rows to display only subtotals and the grand total, you can use the Group feature in Excel. Follow these steps:

1. Select the rows that you want to collapse (excluding the subtotals and grand total rows).
2. Go to the Data tab in the Excel ribbon.
3. Click on the Group button in the Outline group.
4. This will collapse the selected rows, showing only the subtotals and grand total.
5. To expand the rows again, you can click on the minus sign next to the subtotal row.

To display individual records for the Appliances subcategory data using a Show Details button, you can create a macro. Here's how you can do this:

1. Go to the Developer tab in the Excel ribbon (if you don't see this tab, you may need to enable it in Excel options).
2. Click on the Record Macro button to start recording a new macro.
3. In the Record Macro dialog box, give your macro a name and assign it to a shortcut key if you want.
4. Click OK to start recording your macro.
5. Go to the subtotal row for the Appliances subcategory and click Filter on the Data tab in the Excel ribbon.
6. Click on the dropdown arrow for the Appliances subcategory and select the option to show only those records.
7. Stop recording your macro by clicking on the stop button in the Developer tab.
8. Now, you can create a button to run your macro.
- Go to the Developer tab and click on the Insert button.
- Choose the shape or button tool and draw a button on your worksheet.
- In the Assign Macro dialog box, choose the macro you just recorded and click OK.
9. Now, when you click on the button, it will filter the data to show only records for the Appliances subcategory.

This way, you can collapse rows to display only subtotals and grand total, and use a Show Details button to display individual records for a specific subcategory in Excel.