{"id":2087,"date":"2015-12-10T23:25:06","date_gmt":"2015-12-10T22:25:06","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=2087"},"modified":"2023-11-30T21:49:05","modified_gmt":"2023-11-30T20:49:05","slug":"summarize-data-with-dynamic-subtotals-in-excel","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/summarize-data-with-dynamic-subtotals-in-excel\/","title":{"rendered":"Summarize Data With Dynamic Subtotals"},"content":{"rendered":"<p><span style=\"color: #000000;\"><em><strong>What does it do?<\/strong><\/em><\/span><\/p>\n<p>It returns a Subtotal in a list or database<\/p>\n<p><span style=\"color: #000000;\"><em><strong>Formula breakdown:<\/strong><\/em><\/span><\/p>\n<p>=SUBTOTAL(<span style=\"color: #0000ff;\">function_num<\/span>, <span style=\"color: #ff6600;\">ref1<\/span>)<\/p>\n<p><span style=\"color: #000000;\"><em><strong>What it means:<\/strong><\/em><\/span><\/p>\n<p>=SUBTOTAL(<span style=\"color: #0000ff;\">function number 1-11 includes manually-hidden rows &amp; 101-111 excludes them<\/span>, <span style=\"color: #ff6600;\">your list or range of data<\/span>)<\/p>\n<p>***<em>Go to the bottom of this post to see what each value stands for<\/em><\/p>\n<hr \/>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-flat ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li><a href=\"#\" class=\"scroll-to-download\">Free Practice Workbook<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/summarize-data-with-dynamic-subtotals-in-excel\/#SUMMARIZE_DATA_WITH_DYNAMIC_SUBTOTALS\" title=\"SUMMARIZE DATA WITH DYNAMIC SUBTOTALS...\">SUMMARIZE DATA WITH DYNAMIC SUBTOTALS...<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"SUMMARIZE_DATA_WITH_DYNAMIC_SUBTOTALS\"><\/span><strong><span style=\"color: #ff0000;\">SUMMARIZE DATA WITH DYNAMIC SUBTOTALS<span style=\"color: #ff0000;\">.<\/span>..<\/span><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The Subtotal function can become dynamic when we combine it\u00a0with a drop down list.<\/p>\n<p>This is a great trick and one that can be used when creating an Excel Dashboard that summarizes key data metrics on one page.<br \/>\n<iframe src=\"https:\/\/www.youtube.com\/embed\/egCbEh7N8qI?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle;\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><br \/>\n<span style=\"text-decoration: underline; color: #0000ff;\"><a class=\"IRPP_minimalist icon-download\" style=\"color: #0000ff; text-decoration: underline;\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically.xlsx\" target=\"_blank\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<\/span><span class=\"postTitle px-3\">Subtotal-Dynamically.xlsx<\/span><\/a><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1: \u00a0<\/strong><\/span>We need to<strong> list the Subtotal summary functions<\/strong> in our Excel worksheet<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-26-53.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Summarize Data With Dynamic Subtotals\"  class=\"alignnone size-full wp-image-2111\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-26-53.png\" alt=\"Summarize Data With Dynamic Subtotals\" width=\"105\" height=\"299\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2:<\/strong><\/span> In the ribbon select <em><strong>Developer &gt; Insert &gt; Form Controls &gt; Combo Box<\/strong><\/em><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-04-50.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Summarize Data With Dynamic Subtotals\"  class=\"alignnone wp-image-2101 size-full\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-04-50.png\" alt=\"Summarize Data With Dynamic Subtotals\" width=\"124\" height=\"130\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 3:<\/strong><\/span> With your mouse<strong> select the region where you want to insert the Combo Box<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Summarize Data With Dynamic Subtotals\"  class=\"alignnone size-full wp-image-19516\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-01.jpg\" alt=\"Summarize Data With Dynamic Subtotals\" width=\"355\" height=\"397\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-01.jpg 355w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-01-268x300.jpg 268w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 4:<\/strong><\/span> Right Click on the Combo Box and select <strong>Format Control&#8230;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Summarize Data With Dynamic Subtotals\"  class=\"alignnone size-full wp-image-19517\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-02.jpg\" alt=\"Summarize Data With Dynamic Subtotals\" width=\"468\" height=\"219\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-02.jpg 468w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-02-300x140.jpg 300w\" sizes=\"(max-width: 468px) 100vw, 468px\" \/><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-07-11.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Summarize Data With Dynamic Subtotals\"  class=\"alignnone size-full wp-image-2102\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-07-11.png\" alt=\"Summarize Data With Dynamic Subtotals\" width=\"438\" height=\"412\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-07-11.png 438w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-07-11-300x282.png 300w\" sizes=\"(max-width: 438px) 100vw, 438px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 5:<\/strong> <\/span>For the <strong>Input Range<\/strong>, you need to <strong>select the range with the Subtotal summary names from\u00a0STEP 1<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Summarize Data With Dynamic Subtotals\"  class=\"alignnone size-full wp-image-19518\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-03.jpg\" alt=\"Summarize Data With Dynamic Subtotals\" width=\"855\" height=\"432\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-03.jpg 855w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-03-300x152.jpg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-03-768x388.jpg 768w\" sizes=\"(max-width: 855px) 100vw, 855px\" \/><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 6:<\/strong><\/span> For the<strong> Cell Link<\/strong>, you need to <strong>select a\u00a0cell where you want to show the output<\/strong> and press <strong>OK <\/strong><\/p>\n<p>(The Cell Link\u00a0increments by\u00a01 depending on the order of the list and the name chosen. \u00a0We will\u00a0use this value as our first argument in the SUBTOTAL function)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Summarize Data With Dynamic Subtotals\"  class=\"alignnone size-full wp-image-19519\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-04.jpg\" alt=\"Summarize Data With Dynamic Subtotals\" width=\"844\" height=\"435\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-04.jpg 844w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-04-300x155.jpg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/Subtotal-Dynamically-04-768x396.jpg 768w\" sizes=\"(max-width: 844px) 100vw, 844px\" \/><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 7:<\/strong><\/span> Enter the Subtotal function and for the <strong>first\u00a0argument <em>function_num<\/em> we will reference the Cell Link from STEP 6<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-08-48.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Summarize Data With Dynamic Subtotals\"  class=\"alignnone size-full wp-image-2103\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-08-48.png\" alt=\"Summarize Data With Dynamic Subtotals\" width=\"469\" height=\"90\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-08-48.png 469w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-08-48-300x58.png 300w\" sizes=\"(max-width: 469px) 100vw, 469px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 8:<\/strong><\/span> For the <strong>second\u00a0argument, select the data <\/strong><b>range<\/b><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-12-18.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Summarize Data With Dynamic Subtotals\"  class=\"alignnone size-full wp-image-2104\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-12-18.png\" alt=\"Summarize Data With Dynamic Subtotals\" width=\"389\" height=\"361\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-12-18.png 389w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/12\/2015-12-10_23-12-18-300x278.png 300w\" sizes=\"(max-width: 389px) 100vw, 389px\" \/><\/a><\/p>\n<p>So you can see as you choose a summary name from the drop down list, it\u00a0gives us a value for the Cell Link which is equals to the <em>function_num<\/em> for that summary name!<\/p>\n<p>&nbsp;<\/p>\n<p><strong>***Values for\u00a0the SUBTOTAL <em>function_num<\/em>:<\/strong><\/p>\n<section id=\"ocHelp\">\n<div id=\"ocClient\">\n<div id=\"ocMainContent\" class=\"grd main-content zero-margin\">\n<div class=\"row\">\n<div class=\"col-5-5\">\n<article id=\"ocpArticleContent\" class=\"ocpArticleContent\">\n<section class=\"ocpSection\">\n<table id=\"tblID0EBBDAAA\" class=\"banded\">\n<thead>\n<tr>\n<td><strong><span style=\"color: #0000ff;\">Includes hidden values<\/span> \u00a0 \u00a0<\/strong><\/td>\n<td><strong><span style=\"color: #0000ff;\">Ignores hidden values \u00a0<\/span> \u00a0<\/strong><\/td>\n<td><strong><span style=\"color: #0000ff;\">Function<\/span> \u00a0<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>101<\/td>\n<td>AVERAGE<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>102<\/td>\n<td>COUNT<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>103<\/td>\n<td>COUNTA<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>104<\/td>\n<td>MAX<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>105<\/td>\n<td>MIN<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>106<\/td>\n<td>PRODUCT<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>107<\/td>\n<td>STDEV<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>108<\/td>\n<td>STDEVP<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>109<\/td>\n<td>SUM<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>110<\/td>\n<td>VAR<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>111<\/td>\n<td>VARP<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/section>\n<\/article>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &amp; 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&#8230; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[6,3,15,290],"tags":[88,43],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/2087"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=2087"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/2087\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17317"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=2087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=2087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=2087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}