Adding Subtotals to Primary and Secondary Fields in Microsoft Excel 2010

In this article, we will learn how to add subtotals to primary and secondary fields in Microsoft Excel 2010.

Subtotal: – This option is used to calculate rows of related data quickly by inserting subtotals and totals.
 
img1
 
Let’s take an example and understand how we can add to primary secondary fields.

Example 1: We have data in range A1:E19. Column A contains region, column B contain City, column C contain Product, column D contains Total Revenue, and Column E contains Net Revenue.

 
img2
 
To insert the subtotal primary and secondary fields, follow below given steps:-

Sorted in ascending order, the field for which you want to have the primary subtotal in this example product is primary field and region is secondary field.

 
img3
 

  • Go to the “Data” tab on the ribbon.
  • Click on “Subtotal” in the “Outline” group.
  • The “Subtotal” dialog box will appear.
  • Fromat each change in dropdown list, and select product.

 
img4
 

  • Click on OK.

 
img5
 
To add the secondary field in subtotal, follow below given steps:-

  • Go to the “Data” tab on the ribbon.
  • Click on “Subtotal” in the “Outline” group.
  • The “Subtotal” dialog box will appear.
  • From at each change in dropdown list, select region.
  • Deselect the Replace current subtotals checkbox, and then click OK.

 
img6
 
img7
 
This is all about how you can add subtotal to primary and secondary fields in Microsoft Excel.
 
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube