Pinterest Pixel

Summarize Data With Dynamic Subtotals

Author: - Posted on December 10, 2015

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


SUMMARIZE DATA WITH DYNAMIC SUBTOTALS...

The Subtotal function can become dynamic when we combine it with a drop down list.

This is a great trick and one that can be used when creating an Excel Dashboard that summarizes key data metrics on one page.

Summarize Data With Dynamic Subtotals | MyExcelOnline

DOWNLOAD EXCEL WORKBOOK

STEP 1:  We need to list the Subtotal summary functions in our Excel worksheet

Summarize Data With Dynamic Subtotals

STEP 2: In the ribbon select Developer > Insert > Form Controls > Combo Box

Summarize Data With Dynamic Subtotals

STEP 3: With your mouse select the region where you want to insert the Combo Box

See also  Get the Day Name for a Date in Microsoft Excel - 3 Easy Ways

Summarize Data With Dynamic Subtotals

STEP 4: Right Click on the Combo Box and select Format Control…

Summarize Data With Dynamic Subtotals

Summarize Data With Dynamic Subtotals

STEP 5: For the Input Range, you need to select the range with the Subtotal summary names from STEP 1

Summarize Data With Dynamic Subtotals

STEP 6: For the Cell Link, you need to select a cell where you want to show the output and press OK

(The Cell Link increments by 1 depending on the order of the list and the name chosen.  We will use this value as our first argument in the SUBTOTAL function)

Summarize Data With Dynamic Subtotals

STEP 7: Enter the Subtotal function and for the first argument function_num we will reference the Cell Link from STEP 6

Summarize Data With Dynamic Subtotals

STEP 8: For the second argument, select the data range

Summarize Data With Dynamic Subtotals

So you can see as you choose a summary name from the drop down list, it gives us a value for the Cell Link which is equals to the function_num for that summary name!

 

***Values for the SUBTOTAL function_num:

 

 

 

HELPFUL RESOURCES:

JOIN OUR FREE EXCEL COURSES BELOW
Click here to access these FREE Excel courses!

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

Leave a Comment

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