SUBTOTAL Function In Excel

This Excel Tutorial demonstrates how to use the Excel SUBTOTAL Function in Excel to calculate summary statistics, with formula examples.

SUBTOTAL Function Description:

The SUBTOTAL Function Calculates a summary statistic for a series of data. Available statistics include ,but are not limited to average, standard deviation, count, min, and max. See full list below in the function inputs section: function_num.

Formula Examples:

subtotal function examples

ExampleFormulaResult
Average=SUBTOTAL(E5,$B$5:$B$7)5.66666666666667
Count=SUBTOTAL(E6,$B$5:$B$7)3
Sum=SUBTOTAL(E7,$B$5:$B$7)17

Syntax and Arguments:

The Syntax for the SUBTOTAL Formula is:

Function Arguments ( Inputs ):

function_num – A number representing which operation to perform.

REF1 – Ranges or references containing data to calculate.

Additional Notes

Use the SUBTOTAL Function to calculate summary statistics for a series of data.

SUBTOTAL Examples in VBA

You can also use the SUBTOTAL function in VBA. Type:
application.worksheetfunction.subtotal(function_num,reh1)
For the function arguments (function_num, etc.), you can either enter them directly into the function, or define variables to use instead.

Return to the List of all Functions in Excel

How to use the SUBTOTAL Function in Excel:

To use the AND Excel Worksheet Function, type the following into a cell:
=AND(
After entering it in the cell, notice how the AND formula inputs appear below the cell:
subtotal formula syntax
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=SUBTOTAL(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
how to use the subtotal function in excel

For more information about the SUBTOTAL Formula visit the
Microsoft Website.

ADS GO HERE

Posted in