RE: excel
Hi Hyacinth
Thank you for your question.
Click in your data and from the Data menu choose Subtotals. Specify what will trigger the subtotal behaviour and if required where totals should be calculated and click OK.
To remove the subtotal go back to Data > subtotals and click the remove button.
I hope this helps - do let us know if you have any further questions.
Kind regards,
Andrew