Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
programming4us
Windows 7

Microsoft Excel 2010 : SUBTOTAL Function, Subtotal Tool

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/3/2013 3:08:17 AM
1. SUBTOTAL Function

The SUBTOTAL function calculates a column of numbers based on the code used in the function. With the correct code, SUBTOTAL can calculate averages, counts, sums, and eight other functions listed in Table 1. It can also ignore hidden rows when the 100 version of the code is used.

Table 1. SUBTOTAL Function Numbers
Function_num (includes hidden values)Function_num (ignores hidden values)Function
1101AVERAGE
2102COUNT
3103COUNTA
4104MAX
5105MIN
6106PRODUCT
7107STDEV
8108STDEVP
9109SUM
10110VAR
11111VARP

See Figure 1 for examples of the SUBTOTAL function in action. The function will ignore any cells in the range that include SUBTOTAL functions themselves, as shown in column E of the worksheet in the figure. Column G uses the SUM function instead of SUBTOTAL and does not ignore the hidden rows or previous SUM formulas in the Grand Total.

Figure 1. Use SUBTOTAL to ignore hidden rows and prevent counting other SUBTOTAL calculations twice in the Grand Total.



2. Subtotal Tool

The SUBTOTAL function is very useful, but if you have a large dataset it can be time consuming to insert all the Total rows. When your dataset is large, use the Subtotal tool from the Data tab in the Outline group. This tool will group the sorted data, applying the selected function.

From the Subtotal dialog, you can select the column to group the data by, the function to subtotal by, and which columns to apply the subtotal to.

Summarizing Data Using the Subtotal Command

To quickly group and apply subtotals to a dataset, follow these steps:

1.
Sort the data by the column the summary should be based on. For example, if summarizing by region, sort the Region column.


2.
Select a cell in the dataset.

3.
Go to Data, Outline, Subtotal. The Subtotal dialog, shown in Figure 2, will open.

Figure 2. Use the Subtotal dialog to set your subtotaling options.


4.
From the At Each Change In field, select the column by which to summarize the data.

5.
From the Use Function field, select the function to calculate the totals by.

6.
From the Add Subtotal To field, select the columns the totals should be added to. Notice that, by default, the last column is already selected.

7.
Click OK. The data will be grouped and subtotaled, with a grand total at the very bottom, as shown in Figure 3.

Figure 3. Profit is summarized for each region.

Placing Subtotals Above Data

By default, subtotals appear below the data being summarized. If the subtotals need to appear above the data instead, deselect Summary Below Data in the Subtotal dialog.

Remove Subtotals or Groups

To remove all the subtotals and groups, click the Remove All button in the Subtotal dialog. To remove only the group and outline buttons, leaving the subtotal intact, select Data, Outline, Ungroup, Clear Outline.

Other -----------------
- Microsoft PowerPoint 2010 : Managing Slides (part 2) - Rearranging Slides
- Microsoft PowerPoint 2010 : Managing Slides (part 1) - Undoing Mistakes
- Microsoft PowerPoint 2010 : Inserting Content from External Sources - Inserting New Slides from an Outline
- Microsoft PowerPoint 2010 : Creating New Slides (part 2) - Creating a Slide from a Layout, Copying Slides
- Microsoft PowerPoint 2010 : Creating New Slides (part 1) - Creating New Slides from the Outline Pane
- Mix and Match with Old Windows and Macs : Installing Optional Network Components
- Using Application Deployment Tools : Deploying Applications Using RDS (part 2) - Packaging RemoteApp Applications
- Using Application Deployment Tools : Deploying Applications Using RDS (part 1) - Deploying RemoteApp Applications
- Working with E-mail, Contacts, and Events : Add a Signature
- Working with E-mail, Contacts, and Events : Add a File Attachment
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server