{"id":1955,"date":"2015-11-16T23:14:22","date_gmt":"2015-11-16T22:14:22","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=1955"},"modified":"2020-06-09T14:27:32","modified_gmt":"2020-06-09T12:27:32","slug":"excel-subtotal-function-include-hidden-values","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/excel-subtotal-function-include-hidden-values\/","title":{"rendered":"Excel Subtotal Function &#8211; Include Hidden Values"},"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<p>The <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/category\/formulas\/math\/subtotal\/\" target=\"_blank\" rel=\"noopener\">SUBTOTAL function in Excel<\/a> has many great features, like the ability to:<\/p>\n<p><strong>*<\/strong> Return a <strong>SUM, AVERAGE, COUNT, COUNTA, MAX or MIN<\/strong> from your data;<\/p>\n<p><strong>*<\/strong> Find the SUBTOTAL of <strong>filtered values<\/strong>;<\/p>\n<p><strong>*<\/strong> Ignore other SUBTOTALS that are included in your range, <strong>avoiding any double counting!<\/strong><\/p>\n<p><strong>* Include hidden values<\/strong> within your data by entering the first argument <em>function_num<\/em>, as values between 1-11;<\/p>\n<p><strong>* Ignore\u00a0hidden values<\/strong> within your data by entering the first argument <em>function_num<\/em>, as values between 101-111;<\/p>\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\/excel-subtotal-function-include-hidden-values\/#_INCLUDE_HIDDEN_VALUES_IN_YOUR_SUBTOTAL%E2%80%A6\" title=\"\u00a0INCLUDE HIDDEN VALUES IN YOUR SUBTOTAL&#8230;\">\u00a0INCLUDE HIDDEN VALUES IN YOUR SUBTOTAL&#8230;<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"_INCLUDE_HIDDEN_VALUES_IN_YOUR_SUBTOTAL%E2%80%A6\"><\/span>\u00a0<span style=\"color: #ff0000;\"><strong>INCLUDE HIDDEN VALUES IN YOUR SUBTOTAL&#8230;<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Sometimes you are faced with lots of data and just want to show the Totals row and hide all the individual rows\u00a0that make up the Totals, just for presentation purposes.<\/p>\n<p>Using the SUBTOTAL function you can Sum your list of values and then hide them from the worksheet without affecting the function.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1:<\/strong><\/span>\u00a0<em>function_num:<\/em>\u00a0 For the 1st argument, s<strong>elect a\u00a0number from 1-11<\/strong>, which will include any manually hidden rows in the SUBTOTAL calculation!<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2:<\/strong><\/span>\u00a0<em>ref1:<\/em>\u00a0 For the 2nd argument, <strong>select the range of values<\/strong> that you want to use in your SUBTOTAL calculation.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 3:<\/strong><\/span> Highlight\u00a0the values that you do not want to show on your worksheet and then <strong>Right Click and select Hide<\/strong>.<\/p>\n<p>See how this is done by following this simple tutorial, plus you can download the Excel workbook to keep.<br \/>\n<iframe src=\"https:\/\/www.youtube.com\/embed\/fqSBloOwSPo?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\/11\/Subtotal-Hidden-Visible-Values.xlsx\" target=\"_blank\"><span class=\"ctaText px-3 text-capitalize\">Download workbook<\/span><span class=\"postTitle px-3\">Subtotal-Hidden-Visible-Values.xlsx<\/span><\/a><\/span><\/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 <\/span><span style=\"color: #0000ff;\">hidden values \u00a0 \u00a0<\/span><\/strong><\/td>\n<td><strong><span style=\"color: #0000ff;\">Ignores <\/span><span style=\"color: #0000ff;\">hidden values \u00a0 \u00a0<\/span><\/strong><\/td>\n<td><span style=\"color: #0000ff;\"><strong>Function \u00a0<\/strong> \u00a0 \u00a0<\/span><\/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","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 The SUBTOTAL function in Excel [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17510,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"Excel Subtotal Function - Include Hidden Values","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[3,15,290],"tags":[43],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/1955"}],"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=1955"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/1955\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17510"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=1955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=1955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=1955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}