{"id":8417,"date":"2021-11-17T14:22:12","date_gmt":"2021-11-17T14:22:12","guid":{"rendered":"https:\/\/officetuts.net\/excel\/?p=8417"},"modified":"2024-03-28T11:46:44","modified_gmt":"2024-03-28T11:46:44","slug":"number-filtered-cells","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/","title":{"rendered":"Numbering Filtered Cells"},"content":{"rendered":"\n
Number-Filtered-Cells<\/a>Download File<\/a><\/div>\n\n\n\n

We have already explained how to number our rows in Excel in various ways, and how to format these numbers.<\/p>\n\n\n\n

In the example below, we will show how to number the rows that are filtered in Excel.<\/p>\n\n\n\n

Number the Filtered Rows<\/h2>\n\n\n\n

For our example, we will use the table with NBA players, and their statistics from several categories: points, rebounds, assists, and turnovers:<\/p>\n\n\n\n

\"Table\n\nDescription<\/figure>\n\n\n\n

We will create another row that will be the new column A<\/strong>, and we will input the ordering numbers for our players:<\/p>\n\n\n\n

\"Table\n\nDescription<\/figure>\n\n\n\n

If we now filter only the players from the Eastern conference<\/strong>, we will notice that these numbers will not change, i.e. that we do not have the new order:<\/p>\n\n\n\n

\"Table\n\nDescription<\/figure>\n\n\n\n

To make this work, we need to use the SUBTOTAL formula<\/strong>.<\/p>\n\n\n\n

We will now remove the filter and delete the numbers in column A<\/strong>. In cell A2<\/strong> we will input number 1<\/strong> and in cell A3<\/strong> we will input the following formula:<\/p>\n\n\n\n

=SUBTOTAL(3,B$2:B2)+1<\/code><\/pre>\n\n\n\n

The SUBTOTAL function<\/strong> allows us to create groups and after that to perform various functions, such as SUM, COUNT, MAX, <\/strong>etc.<\/p>\n\n\n\n

When we create it, we first need to choose the function (by the number) among many:<\/p>\n\n\n\n

\"Graphical<\/figure>\n\n\n\n

We will choose the COUNTA function<\/strong> for our needs. Then we need to define the reference cell. In our case, it will be the range that is the combination of the first cell in column B<\/strong>– cell B2<\/strong>, which will be locked, and cell B2<\/strong> (which will be changed when dragged). We will then add the number 1<\/strong> to this number.<\/p>\n\n\n\n

Results in cell A3<\/strong> will be number 2 (1+1),<\/strong> in cell A4 3 (1+2)<\/strong>, etc.<\/p>\n\n\n\n

We will drag this formula till the end of our list:<\/p>\n\n\n\n

\"Table\n\nDescription<\/figure>\n\n\n\n

We will then filter only Eastern conferences in our table:<\/p>\n\n\n\n

\"Table\n\nDescription<\/figure>\n\n\n\n

You can notice that although Kyrie Irving was numbered as player number 6<\/strong> in the original table, he is now second on our list, and thus has the number 2<\/strong> by his name.<\/p>\n\n\n\n

This functions on a basis that the SUBTOTAL formula<\/strong> only observes the filtered data in our list, and it changed accordingly.<\/p>\n","protected":false},"excerpt":{"rendered":"

We have already explained how to number our rows in Excel in various ways, and how to format these numbers. In the example…<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[170,190],"yoast_head":"\nNumbering Filtered Cells<\/title>\n<meta name=\"description\" content=\"Learn how to number filtered cells in Excel using the SUBTOTAL formula. Download the NBA player stats table and follow along with the tutorial.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Numbering Filtered Cells\" \/>\n<meta property=\"og:description\" content=\"Learn how to number filtered cells in Excel using the SUBTOTAL formula. Download the NBA player stats table and follow along with the tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-17T14:22:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-28T11:46:44+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/table-description-automatically-generated-11.png\" \/>\n<meta name=\"author\" content=\"Harun Spahic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Harun Spahic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/\"},\"author\":{\"name\":\"Harun Spahic\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\"},\"headline\":\"Numbering Filtered Cells\",\"datePublished\":\"2021-11-17T14:22:12+00:00\",\"dateModified\":\"2024-03-28T11:46:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/\"},\"wordCount\":343,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/table-description-automatically-generated-11.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/\",\"name\":\"Numbering Filtered Cells\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/table-description-automatically-generated-11.png\",\"datePublished\":\"2021-11-17T14:22:12+00:00\",\"dateModified\":\"2024-03-28T11:46:44+00:00\",\"description\":\"Learn how to number filtered cells in Excel using the SUBTOTAL formula. Download the NBA player stats table and follow along with the tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/table-description-automatically-generated-11.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/table-description-automatically-generated-11.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Numbering Filtered Cells\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\",\"name\":\"Harun Spahic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g\",\"caption\":\"Harun Spahic\"},\"sameAs\":[\"http:\/\/human.bsru.ac.th\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Numbering Filtered Cells","description":"Learn how to number filtered cells in Excel using the SUBTOTAL formula. Download the NBA player stats table and follow along with the tutorial.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/","og_locale":"en_US","og_type":"article","og_title":"Numbering Filtered Cells","og_description":"Learn how to number filtered cells in Excel using the SUBTOTAL formula. Download the NBA player stats table and follow along with the tutorial.","og_url":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/","article_published_time":"2021-11-17T14:22:12+00:00","article_modified_time":"2024-03-28T11:46:44+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/table-description-automatically-generated-11.png"}],"author":"Harun Spahic","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Harun Spahic","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/"},"author":{"name":"Harun Spahic","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2"},"headline":"Numbering Filtered Cells","datePublished":"2021-11-17T14:22:12+00:00","dateModified":"2024-03-28T11:46:44+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/"},"wordCount":343,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/table-description-automatically-generated-11.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/","url":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/","name":"Numbering Filtered Cells","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/table-description-automatically-generated-11.png","datePublished":"2021-11-17T14:22:12+00:00","dateModified":"2024-03-28T11:46:44+00:00","description":"Learn how to number filtered cells in Excel using the SUBTOTAL formula. Download the NBA player stats table and follow along with the tutorial.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/table-description-automatically-generated-11.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/table-description-automatically-generated-11.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/number-filtered-cells\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Numbering Filtered Cells"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."},{"@type":"Person","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2","name":"Harun Spahic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g","caption":"Harun Spahic"},"sameAs":["http:\/\/human.bsru.ac.th\/"]}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/8417"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=8417"}],"version-history":[{"count":4,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/8417\/revisions"}],"predecessor-version":[{"id":17342,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/8417\/revisions\/17342"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=8417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=8417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=8417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}