Follow this article for creating subtotals in Excel using C#. You will get details to set the IDE, a list of steps, and a sample code showing how to create subtotal in Excel....using the array data Define the range of data by excluding the header...some sample data, define the range of data, and apply a subtotal...