• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

How To Use: SUBTOTAL Function

How To Use: SUBTOTAL Function

The SUBTOTAL function returns the subtotal of the numbers in a column in a list or database.

In simple words, SUBTOTAL Function performs a given calculation (e.g. the sum, product, average, etc.) for a defined range of values.

The SUBTOTAL function is an inbuilt function in Excel. It falls under the category of Math/Trig Functions. It is a worksheet function. You can enter the SUBTOTAL function as part of a formula in a cell of a worksheet.

This function is designed for columns of data or vertical ranges and not for rows of data or horizontal ranges.

Syntax for SUBTOTAL Function

=SUBTOTAL(function_num,ref1,[ref2],…)

Arguments

Function_num: An integer that denotes the calculation type like sum, average, etc. It should be the numbers 1-11 or 101-111 that specifies the function to use for the subtotal.

For the function_num arguments from 1 to 11, the SUBTOTAL function will include the values of rows hidden by the Hide Rows command in excel.

For arguments from 101 to 111, the SUBTOTAL function ignores values of rows hidden by the Hide Rows command.

The SUBTOTAL will ignores all cells that are hidden by filtering with Autofilter, regardless of the function_num that is used.

Values of Function_num

1 or 101 is used for AVERAGE.

2 or 102 is used for COUNT.

3 or 103 is used for COUNTA.

4 or 104 is used for MAX.

5 or 105 is used for MIN.

6 or 106 is used for PRODUCT.

7 or 107 is used for STDEV.

8 or 108 is used for STDEVP.

9 or 109 is used for SUM.

10 or 110 is used for VAR.

11 or 111 is used for VARP.

Ref1,[Ref2): One or more references to cells containing the values that the calculation is to be performed on.

The cells containing non-numeric values and blank cells are ignored in the calculation.

We have created the infographics for the SUBTOTAL Function. With the help of these infographics, you can easily learn step by step process for using this excel functions.

Furthermore, Excel consists of many inbuilt functions which are helpful in the analytical and statistical study of number.

Simply follow the instructions in the infographics below:

SUBTOTAL Function

If ref1, ref2,… includes other subtotals within or nested subtotals, they are ignored to avoid double counting.

Errors

#VALUE! error occurs when the supplied function_num argument is not one of the permitted values. (1-11 or 101-111)

DIV/0! error occurs when required calculation involves a division by zero.

To learn other function like CUMPRINC, ACCRINTM and PRODUCT Functions, please click on the name of the function.

Additionally, you can download other accounting templates like Break Even Analysis Template, Salary Sheet Template and Invoice with GST Template from here.

We thank our readers for liking, sharing and following us on different social media platforms.

If you have any queries please share in the comment section below. I will be more than happy to assist you.

Filed Under: Basic Excel Functions

You are Here: Home / Basic Excel Functions / How To Use: SUBTOTAL Function

About Shabbir Bhimani

I have worked in Excel and like to share functional excel templates at ExcelDataPro.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

ExcelDataPro

Free Excel Pro Templates

  • Glossary
    • Accounting Glossary
    • HR & Payroll Glossary
    • Tax Glossary
  • Templates
    • Accounting
      • Financial Analysis
      • Financial Statement
    • Educational
    • Taxation
      • Federal Income Tax
      • GST
      • UAE VAT
      • UK VAT
    • Human Resources
      • HR & Payroll
      • HR Metrics
    • School Management
    • Social Media
    • Sales-Marketing
    • Personal Finance
    • Other
      • Health & Fitness
  • Functions
  • Calculators
  • Home
  • Contact
  • Privacy
  • Terms

© ExcelDataPro 2025. Content Licensed Under Creative Commons with Attribution Required

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT