Formulas > =SUBTOTAL()

How to Use SUBTOTAL() in Google Sheets

Description

Returns a subtotal for a vertical range of cells using a specified aggregation function.

How To Actually Use SUBTOTAL() in Sheets

SUBTOTAL(function_code, range1, [range2, ...])

Try SUBTOTAL yourself

Use the SUBTOTAL function to calculate the sum of values in the range B2:B10. Your formula should return the subtotal for this range.

Hints (2)

Looking for a video tutorial? Members can email me anytime! Check out the blogs below for more info on this formula. Or generate your formula. Find more formulas here at BetterSheets.co/formulas

Transcript-matched member videos for SUBTOTAL(). Click through to watch.

Browse more tutorials
Hardest Formula: SumIF | Addition Based on Dates / Values

Hardest Formula: SumIF | Addition Based on Dates / Values

Demystifying the SumIF Formula. Add up your values based on a condition,...
Google Sheet Basics - The Absolute Basics

Google Sheet Basics - The Absolute Basics

Let's start at the basics of Google Sheets. Where every beginner spreads...
Calculate ROAS in Google Sheets

Calculate ROAS in Google Sheets

Calculate Return on Ad Spend with a formula combination. Bonus: create a...
3 Ways to Count in Google Sheets

3 Ways to Count in Google Sheets

The video explains three ways to count cells or information in Google Sh...

Learn more about the SUBTOTAL() formula:

Generate a SUBTOTAL() formula for your needs

Describe your task in plain English and get a paste-ready formula that uses SUBTOTAL(). 2 free AI generations, no signup. Members get unlimited use.

Generate a SUBTOTAL() formula