Excel Data Analysis - Subtotals with Ranges




Excel Data Analysis - Subtotals with Ranges

If you have a list of data that you want to group and summarize, you can use Excel Subtotal and Outline to display summary rows or columns. You can use PivotTable also for this purpose, but using Subtotal and Outline is the quickest way to analyze a range of data. Note that Subtotal and Outline can be used only on a range and not on a table.

You can create an Outline of up to eight levels, one for each group. Outer Levels are represented by Lower Numbers and Inner Levels by Higher Numbers. Each inner level displays detailed data for the preceding outer level.

To understand how to use Subtotal and Outline, consider the following example wherein the sales data of various items is given salesperson wise and location wise. In total, there are 1891 rows of data.

Excel Data Analysis - Subtotals with Ranges

Subtotals

You can obtain the sum of sales location wise using Subtotal.

First, sort the data location wise.

  • Click anywhere on the data range.

  • Click the DATA tab.

  • Click Sort.

Data is selected. The Sort dialog box appears.

Excel Data Analysis - Subtotals with Ranges

In the Sort dialog box,

  • Select Location for Sort by

  • Select Values for Sort On

  • Select A to Z for Order

Excel Data Analysis - Subtotals with Ranges

Click OK. The data is sorted location wise.

Excel Data Analysis - Subtotals with Ranges

  • Click anywhere on the Data Range.

  • Click DATA tab.

  • Click Subtotal in the Outline group. The data gets selected and the Subtotal dialog box appears.

Excel Data Analysis - Subtotals with Ranges

In the Subtotal dialog box,

  • Select Location under At each change in:

  • Select Sum under Use function:

  • Select Unit and Amount under Add subtotal to:

  • Select Replace current subtotals

  • Select Summary below data

Excel Data Analysis - Subtotals with Ranges

Click OK. The data is grouped with three levels and the subtotals are calculated location wise.

Note − The data that is displayed is of Level 3 – i.e. entire data.

Excel Data Analysis - Subtotals with Ranges

Click the Outline Level 2. The Totals will be displayed location wise for units and amount.

Excel Data Analysis - Subtotals with Ranges

Click Outline Level 1. The Grand Totals will be displayed for units and amount.

Excel Data Analysis - Subtotals with Ranges

You can zoom-in or zoom-out the data by clicking the Outline Levels or by clicking the + Symbols to the left of the data.

Nested Subtotals

You can obtain the sum of sales by each salesperson, location wise using Nested Subtotals.

Sort the data location wise and then salesperson wise.

  • Click anywhere on the data range.

  • Click the DATA tab.

  • Click Sort. The data is selected and the Sort dialog box appears.

Excel Data Analysis - Subtotals with Ranges

In the Sort dialog box,

  • Select Location for Sort by

  • Select Values for Sort On

  • Select A to Z for Order

  • Click on Add Level

Then by row appears

  • Select Name for Then by

  • Select Values for Sort On

  • Select A to Z for Order

Excel Data Analysis - Subtotals with Ranges

Click OK. The data is sorted by location and then by name.

Excel Data Analysis - Subtotals with Ranges

  • Click anywhere on the Data Range

  • Click on DATA tab

  • Click on Subtotal in the Outline group

Data gets selected. Subtotal dialog box appears.

Excel Data Analysis - Subtotals with Ranges

In the Subtotal dialog box,

  • Select Location under At each change in:

  • Select Sum under Use function:

  • Select Unit and Amount under Add subtotal to:

  • Select Replace current subtotals

  • Select Summary below data

Excel Data Analysis - Subtotals with Ranges

Click OK. The data is grouped with three Levels and the subtotals are calculated location wise as described earlier.

Excel Data Analysis - Subtotals with Ranges

  • Click Subtotal.

In the Subtotal dialog box,

  • Select Name under At each change in:

  • Select Sum under Use function:

  • Select Unit and Amount under Add subtotal to:

  • Unselect Replace current subtotals

  • Select Summary below data

Excel Data Analysis - Subtotals with Ranges

Click OK. The data is grouped with four levels and the subtotals are calculated location wise and name wise.

Excel Data Analysis - Subtotals with Ranges

Click Outline Level 3. The Totals will be displayed name wise and location wise for Units and Amount.

Excel Data Analysis - Subtotals with Ranges

Click on Outline Level 2. The Totals will be displayed location wise for Units and Amount.

Excel Data Analysis - Subtotals with Ranges

Click Outline Level 1. The Grand Totals will be displayed for Units and Amount.

Excel Data Analysis - Subtotals with Ranges

You can zoom-in or zoom-out the data by clicking the Outline Levels or by clicking the + symbol to the Left of the data.



Frequently Asked Questions

+
Ans: Excel Data Analysis - Filtering view more..
+
Ans: Excel Data Analysis - Sorting view more..
+
Ans: Excel Data Analysis - Conditional Formatting view more..
+
Ans: Excel Data Analysis - Subtotals with Ranges view more..
+
Ans: Excel Data Analysis - Quick Analysis view more..
+
Ans: Excel Data Analysis - Lookup Functions view more..
+
Ans: Excel Data Analysis - PivotTables view more..
+
Ans: Excel Data Analysis - Data Visualization view more..
+
Ans: Excel Data Analysis - Data Validation view more..
+
Ans: Excel Data Financial Analysis view more..
+
Ans: Working with Multiple Sheets view more..
+
Ans: Excel Data Analysis - Formula Auditing view more..
+
Ans: Excel Data Analysis - Inquire view more..
+
Ans: Advanced Data Analysis - Overview view more..
+
Ans: Advanced Data Analysis - Data Consolidation view more..
+
Ans: Advanced Data Analysis - What-If Analysis view more..
+
Ans: What-If Analysis with Data Tables view more..
+
Ans: What-If Analysis with Scenario Manager view more..




Rating - NAN/5
485 views

Advertisements