{"id":280,"date":"2022-03-18T10:43:12","date_gmt":"2022-03-18T10:43:12","guid":{"rendered":"https:\/\/www.howtoexcel.info\/Excel\/?p=280"},"modified":"2024-04-14T17:28:06","modified_gmt":"2024-04-14T17:28:06","slug":"filter-data-with-sub-headings","status":"publish","type":"post","link":"https:\/\/www.howtoexcel.info\/Excel\/filter-data-with-sub-headings\/","title":{"rendered":"How to filter data in Excel with heading and sub-headings?"},"content":{"rendered":"\n<p style=\"text-align: justify;\">Sometimes in addition to filtering the rows in Excel, it is also required to see the respective title in the given table. For example, in the table below, it is required to filter the cities with deployment of less than 100 staff. Even though we can see the names of the cities, it is not possible to see which country or state the city belongs to. Suppose we want to show the name of country also with the same filter. This can be done in many ways. Let us see how to do this by using the filter by colour option.<\/p>\n<p>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-281 size-full\" src=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads1.jpg\" alt=\"\" width=\"417\" height=\"605\" srcset=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads1.jpg 417w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads1-207x300.jpg 207w\" sizes=\"(max-width: 417px) 100vw, 417px\" \/><\/figure>\n<p>&nbsp;<\/p>\n<p>First, filter rows with number of staff less than 100. For this, go to Column D and filter data.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-282\" src=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads2.jpg\" alt=\"\" width=\"725\" height=\"527\" srcset=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads2.jpg 725w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads2-300x218.jpg 300w\" sizes=\"(max-width: 725px) 100vw, 725px\" \/><\/p>\n<p>After filtering, apply a color to the cells in the Column C.<\/p>\n<p>&nbsp;<\/p>\n\n\n\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-283\" src=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads3A.jpg\" alt=\"\" width=\"337\" height=\"170\" srcset=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads3A.jpg 337w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads3A-300x151.jpg 300w\" sizes=\"(max-width: 337px) 100vw, 337px\" \/><\/p>\n<p>Alternately, another column as following may be selected and color may be filled in case you don&#8217;t want to disturb the Column C which is having existing data.\u00a0<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-284\" src=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads3B.jpg\" alt=\"\" width=\"366\" height=\"163\" srcset=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads3B.jpg 366w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads3B-300x134.jpg 300w\" sizes=\"(max-width: 366px) 100vw, 366px\" \/><\/p>\n<p>The titles, headings or sub-headings are usually restricted to the first column. Hence normally there will be blanks in the right side column. Use this to filter only blanks in the Column D.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-285\" src=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads4.jpg\" alt=\"\" width=\"496\" height=\"515\" srcset=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads4.jpg 496w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads4-289x300.jpg 289w\" sizes=\"(max-width: 496px) 100vw, 496px\" \/><\/p>\n<p>After filtering again fill color to the cells in Column C.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-286\" src=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads5.jpg\" alt=\"\" width=\"341\" height=\"331\" srcset=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads5.jpg 341w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads5-300x291.jpg 300w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads5-45x45.jpg 45w\" sizes=\"(max-width: 341px) 100vw, 341px\" \/><\/p>\n<p>Now when we remove filter, it will look like this.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-287\" src=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads6.jpg\" alt=\"\" width=\"412\" height=\"432\" srcset=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads6.jpg 412w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads6-286x300.jpg 286w\" sizes=\"(max-width: 412px) 100vw, 412px\" \/><\/p>\n<p>Now filter the Column C with the filled color to see the desired result.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-288\" src=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads7.jpg\" alt=\"\" width=\"448\" height=\"531\" srcset=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads7.jpg 448w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads7-253x300.jpg 253w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-289\" src=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads8.jpg\" alt=\"\" width=\"373\" height=\"380\" srcset=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads8.jpg 373w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads8-294x300.jpg 294w, https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Excel-filter-with-sub-heads8-45x45.jpg 45w\" sizes=\"(max-width: 373px) 100vw, 373px\" \/> \u00a0<\/p>\n<p><span style=\"font-size: 24px;\"><a href=\"https:\/\/www.howtoexcel.info\/Excel\/wp-content\/uploads\/2022\/03\/Filter-filter-rows-with-sub-headings.xlsx\">Download\u00a0Excel File<\/a><\/span><\/p>\n<p><span style=\"color: #000000; font-size: 12px;\"><strong>Search engine keywords for this question<\/strong><\/span><\/p>\n<p><span style=\"color: #000000; font-size: 10px;\">Filter titles<\/span><\/p>\n<p><span style=\"color: #000000; font-size: 10px;\">Excel filter rows with titles<\/span><\/p>\n<p><span style=\"color: #000000; font-size: 10px;\">Excel filter sub-headings to display<\/span><\/p>\n<p><span style=\"color: #000000; font-size: 10px;\">Filter show headings<\/span> \u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.howtoexcel.info\/Excel\/wp-json\/wp\/v2\/posts\/280"}],"collection":[{"href":"https:\/\/www.howtoexcel.info\/Excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.howtoexcel.info\/Excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.howtoexcel.info\/Excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.howtoexcel.info\/Excel\/wp-json\/wp\/v2\/comments?post=280"}],"version-history":[{"count":9,"href":"https:\/\/www.howtoexcel.info\/Excel\/wp-json\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":323,"href":"https:\/\/www.howtoexcel.info\/Excel\/wp-json\/wp\/v2\/posts\/280\/revisions\/323"}],"wp:attachment":[{"href":"https:\/\/www.howtoexcel.info\/Excel\/wp-json\/wp\/v2\/media?parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.howtoexcel.info\/Excel\/wp-json\/wp\/v2\/categories?post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.howtoexcel.info\/Excel\/wp-json\/wp\/v2\/tags?post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}