Excel Subtotal Function – Include Hidden Values

What does it do?

It returns a Subtotal in a list or database

Formula breakdown:

=SUBTOTAL(function_num, ref1)

What it means:

=SUBTOTAL(function number 1-11 includes manually-hidden rows & 101-111 excludes them, your list or range of data)

***Go to the bottom of this post to see what each value stands for


The SUBTOTAL function in Excel has many great features, like the ability to:

* Return a SUM, AVERAGE, COUNT, COUNTA, MAX or MIN from your data;

* Find the SUBTOTAL of filtered values;

* Ignore other SUBTOTALS that are included in your range, avoiding any double counting!

* Include hidden values within your data by entering the first argument function_num, as values between 1-11;

* Ignore hidden values within your data by entering the first argument function_num, as values between 101-111;

 INCLUDE HIDDEN VALUES IN YOUR SUBTOTAL…

Sometimes you are faced with lots of data and just want to show the Totals row and hide all the individual rows that make up the Totals, just for presentation purposes.

Using the SUBTOTAL function you can Sum your list of values and then hide them from the worksheet without affecting the function.

STEP 1: function_num:  For the 1st argument, select a number from 1-11, which will include any manually hidden rows in the SUBTOTAL calculation!

STEP 2: ref1:  For the 2nd argument, select the range of values that you want to use in your SUBTOTAL calculation.

STEP 3: Highlight the values that you do not want to show on your worksheet and then Right Click and select Hide.

See how this is done by following this simple tutorial, plus you can download the Excel workbook to keep.

DOWNLOAD WORKBOOK

Subtotal Hidden Values

***Values for the SUBTOTAL function_num:

Includes hidden values     Ignores hidden values     Function      
1 101 AVERAGE
2 102 COUNT
3 103 COUNTA
4 104 MAX
5 105 MIN
6 106 PRODUCT
7 107 STDEV
8 108 STDEVP
9 109 SUM
10 110 VAR
11 111 VARP

HELPFUL RESOURCE:

How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel

 

If you like this Excel tip, please share itEmail this to someone

email

Pin on Pinterest

Pinterest

Share on Facebook

Facebook

Tweet about this on Twitter

Twitter

Share on LinkedIn

Linkedin

Share on Google+

Google+

Related Posts

GETPIVOTDATA Function What does it do? A formula that extracts data stored in a Pivot Table Formula breakdown: =GETPIVOTDATA(data_field, pivot_table, , ,...) What it means: =GETPIVOTDATA(return me this value from the Values Area, any cell within the Pivot Table, ,...)   T...
Advanced SUMPRODUCT Function: Conditional Date If you want to find out the total sales for a particular month, then the SUMPRODUCT function is your answer.  You can create a criteria for a specific date range, a particular month or a year. In the example below I show you how to use the SUMPRODUCT function to sum up the tot...
Calculate Elapsed Time in Excel   What does it do? Converts a formula to text and lets you specify the display formatting by using special format strings Formula breakdown: =TEXT(value1 - value2, format text) What it means: =TEXT(formula, a text string enclosed in quotation marks) ...
Consolidate with 3D Formulas in Excel 3D Formulas or References in Excel are a great way to consolidate data from multiple sheets. 3D Formulas reference several worksheets that have the same structure which allows you to consolidate by using the SUM function. Formula breakdown: SUM(Sheet1:Sheet4!A1) ...

Leave a Comment

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