Subtotaling in Google Sheets is a handy way to quickly calculate the sum, average, or other mathematical operations on a group of numbers in your spreadsheet. By using the SUBTOTAL function, you can easily organize your data and get a clear overview of your calculations. In just a few clicks, you can have your subtotal ready to go.
Step by Step Tutorial on How to Subtotal in Google Sheets
Before we dive into the step-by-step process, let’s understand what we’re going to achieve. By following these steps, you will be able to group data and perform operations like sum, average, and count, making your data more manageable and your spreadsheet more organized.
Step 1: Select the range of cells you want to subtotal
Select the cells that contain the data you want to subtotal. This is where you’ll apply the SUBTOTAL function.
Selecting the right range of cells is crucial because it determines which data will be included in your subtotal calculation. Make sure you include all the cells you want to calculate but exclude any headers or labels that shouldn’t be part of the mathematical operation.
Step 2: Click on the ‘Functions’ icon or go to the ‘Insert’ menu
Find and click on the ‘Functions’ icon, which looks like the Greek letter sigma (∑), or go to the ‘Insert’ menu and choose ‘Function’.
When you click on the ‘Functions’ icon or choose ‘Function’ from the ‘Insert’ menu, a dropdown list of functions will appear. Look for the SUBTOTAL function in this list.
Step 3: Choose ‘SUBTOTAL’ from the list of functions
Scroll through the list of functions and select ‘SUBTOTAL’.
The SUBTOTAL function has a unique feature: it allows you to ignore other subtotals within your selected range. This means if you have multiple layers of subtotals, each new subtotal won’t include the previous ones in its calculation.
Step 4: Enter the function number and the range in the function
In the function bar, type in the function number that corresponds to the operation you want (e.g., 9 for SUM, 1 for AVERAGE) and then the range of cells you selected earlier.
Each number in the SUBTOTAL function corresponds to a different operation. For example, if you want to calculate the sum, you’ll use the number 9. If you’re calculating an average, use the number 1. Be sure to enter the correct function number for the operation you need.
Step 5: Press ‘Enter’ to complete the function and view your subtotal
After entering the function number and range, press ‘Enter’ on your keyboard to calculate and display the subtotal.
Once you press ‘Enter’, the subtotal for your selected range will appear in the cell where you entered the function. You can now see the result of your chosen mathematical operation, making it easier to analyze your data.
After completing these steps, your data will be neatly organized with clear subtotals for each group. This makes it easier to understand the overall picture of your data and perform further analysis if needed.
Tips for Subtotaling in Google Sheets
- Always double-check the range of cells you’ve selected for subtotaling to ensure accuracy.
- Remember that the SUBTOTAL function can ignore other subtotals in the range, which is useful for nested calculations.
- Use function number 109 instead of 9, or 101 instead of 1, if you want to ignore hidden rows in your subtotal calculation.
- If you need to subtotal multiple columns, you’ll need to apply the SUBTOTAL function to each column separately.
- To make your subtotals stand out, consider formatting the cells with bold text or a different background color.
Frequently Asked Questions
What is the difference between the SUM and SUBTOTAL functions?
The SUM function calculates the total of a range of cells, while the SUBTOTAL function can perform various operations, including SUM, but has the added ability to ignore other subtotals and hidden rows within the range.
Can I use the SUBTOTAL function for operations other than summing?
Yes, the SUBTOTAL function can perform various operations such as averaging (function number 1), counting (function number 2), and more, depending on the function number you use.
How do I exclude hidden rows from my subtotal calculation?
To exclude hidden rows in your subtotal calculation, use function numbers 101-111 instead of 1-11. For example, use 109 for SUM instead of 9.
Can I apply the SUBTOTAL function to non-adjacent cells?
Yes, you can apply the SUBTOTAL function to non-adjacent cells by separating the ranges with a comma when entering them into the function.
How do I remove a subtotal from my Google Sheets?
To remove a subtotal, simply delete the cell containing the SUBTOTAL function, or clear the function from the formula bar.
Summary
- Select the range of cells for subtotaling.
- Click on the ‘Functions’ icon or go to the ‘Insert’ menu.
- Choose ‘SUBTOTAL’ from the list of functions.
- Enter the function number and the range in the function.
- Press ‘Enter’ to complete the function and view your subtotal.
Conclusion
Subtotaling in Google Sheets can be a real game-changer when it comes to data analysis. It’s an efficient way to quickly summarize and organize your data, which can save you time and help you make better-informed decisions. By following the steps outlined in this article, you’ll be able to subtotal like a pro.
Remember, the SUBTOTAL function is versatile and can be used for various mathematical operations. Whether you’re summing sales figures, averaging test scores, or counting inventory items, this function has got you covered. And with the added ability to ignore other subtotals and hidden rows, you’ll have full control over your calculations.
As always, practice makes perfect. So go ahead, give it a try, and watch your Google Sheets skills improve. Before you know it, you’ll be subtotaling with confidence and ease. And who knows? You might even find yourself helping others learn how to subtotal in Google Sheets too!

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.