search
HomeSoftware TutorialOffice SoftwareSubtotals in Excel: how to insert, use and remove

This tutorial shows you how to use Excel's Subtotal feature to efficiently summarize data within groups of cells. Learn how to sum, count, or average, display or hide details, copy only subtotals, and remove subtotals altogether.

Large datasets can be overwhelming. Excel's Subtotal function helps you create clear, organized summaries. Follow the links below for detailed instructions:

  • Adding Subtotals in Excel
  • Creating Nested (Multiple) Subtotals
  • Working with Subtotals:
    • Showing/Hiding Subtotal Details
    • Copying Only Subtotals
    • Modifying Existing Subtotals
  • Removing Subtotals

What are Excel Subtotals?

A subtotal is the sum of a group of numbers, often combined with other subtotals to reach a grand total. Excel's Subtotal feature goes beyond simple sums; it lets you group data and summarize using functions like SUM, COUNT, AVERAGE, MIN, MAX, and more. It also creates an outline structure, allowing you to easily show or hide detail rows.

Example of Excel Subtotals:

Subtotals in Excel: how to insert, use and remove

Adding Subtotals in Excel

To add subtotals:

  1. Organize Your Data: Ensure your data is sorted by the column you want to group by (e.g., using the Data tab's Sort feature). Remove any blank rows.

Subtotals in Excel: how to insert, use and remove

  1. Insert Subtotals: Select a cell in your data, go to the Data tab > Outline group, and click "Subtotal".

Subtotals in Excel: how to insert, use and remove

  1. Configure Subtotal Options: The Subtotal dialog box lets you specify:
    • At each change in: The column to group by.
    • Use function: Choose SUM, COUNT, AVERAGE, etc.
    • Add subtotal to: Select the columns to summarize.

Subtotals in Excel: how to insert, use and remove

Optional settings include page breaks and summary row placement. Click "OK".

Subtotals in Excel: how to insert, use and remove

Subtotals automatically recalculate when data changes. Ensure automatic calculation is enabled in Excel options.

Key Considerations for Excel Subtotals:

  1. Visible Rows Only: Subtotals only consider visible cells. Filtered-out rows are excluded, but manually hidden rows are included. To exclude manually hidden rows, modify the SUBTOTAL formula (e.g., change SUBTOTAL(9, C2:C5) to SUBTOTAL(109, C2:C5)).

Subtotals in Excel: how to insert, use and remove Subtotals in Excel: how to insert, use and remove

  1. Grand Totals from Original Data: Grand totals are calculated from the original data, not the subtotal values.

Subtotals in Excel: how to insert, use and remove

  1. Not Available in Excel Tables: Convert tables to ranges before using Subtotal.

Adding Multiple Subtotals (Nested Subtotals)

To add nested subtotals:

  1. Sort by Multiple Columns: Sort your data by all grouping columns.

Subtotals in Excel: how to insert, use and remove

  1. Add Outer Subtotals: Add the first level of subtotals as described above.

Subtotals in Excel: how to insert, use and remove

  1. Add Inner Subtotals: Use the Subtotal feature again, selecting the next grouping column. Uncheck "Replace current subtotals" to preserve existing subtotals.

Subtotals in Excel: how to insert, use and remove Subtotals in Excel: how to insert, use and remove

Working with Subtotals

  • Show/Hide Details: Use the outline symbols ( /-) to control the visibility of detail rows.

Subtotals in Excel: how to insert, use and remove Subtotals in Excel: how to insert, use and remove Subtotals in Excel: how to insert, use and remove Subtotals in Excel: how to insert, use and remove Subtotals in Excel: how to insert, use and remove Subtotals in Excel: how to insert, use and remove Subtotals in Excel: how to insert, use and remove

  • Copy Only Subtotals: Show only subtotals, select a cell, press Ctrl A, then Find & Select > Go To Special > Visible cells to copy only the visible rows. (Alternatively, use Alt ;).

Subtotals in Excel: how to insert, use and remove Subtotals in Excel: how to insert, use and remove Subtotals in Excel: how to insert, use and remove

  • Modifying Subtotals: Use the Subtotal dialog box, ensuring "Replace current subtotals" is checked.

  • Removing Subtotals: Use the Subtotal dialog box and click "Remove All".

Subtotals in Excel: how to insert, use and remove

This comprehensive guide empowers you to harness the full potential of Excel's Subtotal feature for efficient data analysis. Remember that the SUBTOTAL function offers additional flexibility for manual subtotal creation.

The above is the detailed content of Subtotals in Excel: how to insert, use and remove. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How You Can Use Wildcards in Microsoft Excel to Refine Your SearchHow You Can Use Wildcards in Microsoft Excel to Refine Your SearchMay 13, 2025 am 01:59 AM

Excel wildcards: a powerful tool for efficient search and filtering This article will dive into the power of wildcards in Microsoft Excel, including their application in search, formulas, and filters, and some details to note. Wildcards allow you to perform fuzzy matching, making it more flexible to find and process data. *Wildcards: asterisks () and question marks (?)** Excel mainly uses two wildcards: asterisk (*) and question mark (?). *Asterisk (): Any number of characters** The asterisk represents any number of characters, including zero characters. For example: *OK* Match the cell containing "OK", "OK&q

Excel IF function with multiple conditionsExcel IF function with multiple conditionsMay 12, 2025 am 11:02 AM

The tutorial shows how to create multiple IF statements in Excel with AND as well as OR logic. Also, you will learn how to use IF together with other Excel functions. In the first part of our Excel IF tutorial, we looked at how to constru

How to calculate percentage in Excel - formula examplesHow to calculate percentage in Excel - formula examplesMay 12, 2025 am 10:28 AM

In this tutorial, you will lean a quick way to calculate percentages in Excel, find the basic percentage formula and a few more formulas for calculating percentage increase, percent of total and more. Calculating percentage is useful in m

Logical operators in Excel: equal to, not equal to, greater than, less thanLogical operators in Excel: equal to, not equal to, greater than, less thanMay 12, 2025 am 09:41 AM

Logical operators in Excel: The key to efficient data analysis In Excel, many tasks involve comparing data in different cells. To this end, Microsoft Excel provides six logical operators, also known as comparison operators. This tutorial is designed to help you understand the connotation of Excel logical operators and write the most efficient formulas for data analysis. Excel logical operators equal Not equal to Greater than/less than/greater than/six equal to/less than equal to Common uses of logical operators in Excel Overview of Excel Logical Operators Logical operators in Excel are used to compare two values. Logical operators are sometimes called boolean operators because in any given case, the result of comparison

How to show percentage in ExcelHow to show percentage in ExcelMay 12, 2025 am 09:40 AM

This concise guide explores Excel's percentage formatting capabilities, covering various scenarios and advanced techniques. Learn how to format existing values, handle empty cells, and customize your percentage display. To quickly apply percentage f

Logical functions in Excel: AND, OR, XOR and NOTLogical functions in Excel: AND, OR, XOR and NOTMay 12, 2025 am 09:39 AM

The tutorial explains the essence of Excel logical functions AND, OR, XOR and NOT and provides formula examples that demonstrate their common and inventive uses. Last week we tapped into the insight of Excel logical operators that are us

Comments vs. Notes in Microsoft Excel: What's the Difference?Comments vs. Notes in Microsoft Excel: What's the Difference?May 12, 2025 am 06:03 AM

This guide explores Microsoft Excel's comment and note features, explaining their uses and differences. Both tools annotate cells, but serve distinct purposes and display differently in printed worksheets. Excel Comments: Collaborative Annotations E

Excel templates: how to make and useExcel templates: how to make and useMay 11, 2025 am 10:43 AM

Excel template: a tool for efficient office work Microsoft Excel templates are a powerful tool to improve the efficiency of Excel, saving significantly time. After creating a template, you only need a small amount of adjustment to adapt to different scenarios and achieve reuse. Well-designed Excel templates can also improve the aesthetics and consistency of documents, leaving a good impression on colleagues and bosses. The value of templates is particularly prominent for common document types such as calendars, budget planners, invoices, inventory tables, and dashboards. What else is more convenient than just using a spreadsheet that looks beautiful, has a full-featured and is easy to customize? A Microsoft Excel template is a pre-designed workbook or worksheet, most of which

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools