{"id":8365,"date":"2021-11-17T11:47:04","date_gmt":"2021-11-17T11:47:04","guid":{"rendered":"https:\/\/officetuts.net\/excel\/?p=8365"},"modified":"2024-03-26T16:22:35","modified_gmt":"2024-03-26T16:22:35","slug":"add-row-number-to-an-excel-table","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/","title":{"rendered":"Add Row Number to an Excel Table"},"content":{"rendered":"\n
How-to-Add-Row-Number-to-an-Excel-Table<\/a>Download File<\/a><\/div>\n\n\n\n

We are dealing with Excel tables every day. They are one of the most useful things in Excel and can present our valuable data in a fine-tuned way.<\/p>\n\n\n\n

Users can often forget to add row numbers to a table at the beginning of its creation, and they can find themselves in a situation where they need to add it later. We will show how to do that in the example below.<\/p>\n\n\n\n

Add Row Numbers with Fill<\/h2>\n\n\n\n

For our example, let us say that we have a random list of NBA players with their name, position, team, and draft position:<\/p>\n\n\n\n

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

Let us say that we want to add numbers to this random table. We will insert one column as column A<\/strong>, and then we will input number 1<\/strong> in cell A2<\/strong>, and number 2<\/strong> in cell A3<\/strong>.<\/p>\n\n\n\n

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

We will then drag our pointer to the end of our table. Excel will automatically notice a pattern and will input the other rows:<\/p>\n\n\n\n

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

It is worth mentioning that this works only if you input two numbers, meaning 1 and 2<\/strong>. If you put only number 1<\/strong>, this will not work. Also, if we have a large set of data, and we do not want to drag the numbers, we can hover over the right square that appears at the bottom-right of our selection and click on the plus icon.<\/p>\n\n\n\n

Excel is usually great at recognizing all kinds of patterns. For example, if you input 1 and 3 first, Excel will automatically input all the odd numbers in our table:<\/p>\n\n\n\n

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

We can also use the Fill Series<\/strong> option, which gives us a little more control over our data. We will again input number 1<\/strong> in the cell A2<\/strong> and go to Home >> Editing >> Series<\/strong>:<\/p>\n\n\n\n

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

On a pop-up that appears, we will do the following: choose Columns in series<\/strong>, give a Step value of 1<\/strong> and Stop value of 19<\/strong>.<\/p>\n\n\n\n

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

The downside of this approach is that we need to know the number of our rows.<\/p>\n\n\n\n

Add Row Numbers with Row Formula<\/h2>\n\n\n\n

There is another way to add the numbers to a table, and that is with the formula. We will input the following formula now in cell A2<\/strong>:<\/p>\n\n\n\n

=ROW(B2)-1<\/code><\/pre>\n\n\n\n

Formula ROW<\/strong> returns the number of our row. Since basically, Steven Adams is the first player in our table, we do not want him to be number 2<\/strong>, which is the number of the row he is at. So, we also subtract one number from our original number, to get the result that we want.<\/p>\n\n\n\n

We will click on the plus icon at the bottom right when we hover over cell A1<\/strong>, and then the whole list will be populated:<\/p>\n\n\n\n

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

Add Row Numbers with the COUNTA Function<\/h2>\n\n\n\n

Let us now delete a couple of entries in column E<\/strong>:<\/p>\n\n\n\n

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

If we want to insert row numbers for column E<\/strong>, we will input the following formula in cell F2<\/strong>:<\/p>\n\n\n\n

=IF(ISBLANK(E2),\"\",COUNTA($E$2:E2))<\/code><\/pre>\n\n\n\n

The IF function<\/strong> checks if the cell next to the cell in column E<\/strong> is empty or not. If it\u2019s empty, it returns a blank<\/a>. If not, it gives us the count of all the filled cells till that cell.<\/p>\n\n\n\n

When we drag this formula till the end, we will have the following results:<\/p>\n\n\n\n

\"Graphical<\/figure>\n","protected":false},"excerpt":{"rendered":"

We are dealing with Excel tables every day. They are one of the most useful things in Excel and can present our valuable…<\/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":"\nAdd Row Number to an Excel Table<\/title>\n<meta name=\"description\" content=\"Learn how to add row numbers to an Excel table in just a few simple steps. Download the example file and follow along with our 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\/add-row-number-to-an-excel-table\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Row Number to an Excel Table\" \/>\n<meta property=\"og:description\" content=\"Learn how to add row numbers to an Excel table in just a few simple steps. Download the example file and follow along with our tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-17T11:47:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T16:22:35+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/graphical-user-interface-table-description-autom.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/\"},\"author\":{\"name\":\"Harun Spahic\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\"},\"headline\":\"Add Row Number to an Excel Table\",\"datePublished\":\"2021-11-17T11:47:04+00:00\",\"dateModified\":\"2024-03-26T16:22:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/\"},\"wordCount\":539,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/graphical-user-interface-table-description-autom.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/\",\"name\":\"Add Row Number to an Excel Table\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/graphical-user-interface-table-description-autom.png\",\"datePublished\":\"2021-11-17T11:47:04+00:00\",\"dateModified\":\"2024-03-26T16:22:35+00:00\",\"description\":\"Learn how to add row numbers to an Excel table in just a few simple steps. Download the example file and follow along with our tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/graphical-user-interface-table-description-autom.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/graphical-user-interface-table-description-autom.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Row Number to an Excel Table\"}]},{\"@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":"Add Row Number to an Excel Table","description":"Learn how to add row numbers to an Excel table in just a few simple steps. Download the example file and follow along with our 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\/add-row-number-to-an-excel-table\/","og_locale":"en_US","og_type":"article","og_title":"Add Row Number to an Excel Table","og_description":"Learn how to add row numbers to an Excel table in just a few simple steps. Download the example file and follow along with our tutorial.","og_url":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/","article_published_time":"2021-11-17T11:47:04+00:00","article_modified_time":"2024-03-26T16:22:35+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/graphical-user-interface-table-description-autom.png"}],"author":"Harun Spahic","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Harun Spahic","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/"},"author":{"name":"Harun Spahic","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2"},"headline":"Add Row Number to an Excel Table","datePublished":"2021-11-17T11:47:04+00:00","dateModified":"2024-03-26T16:22:35+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/"},"wordCount":539,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/graphical-user-interface-table-description-autom.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/","url":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/","name":"Add Row Number to an Excel Table","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/graphical-user-interface-table-description-autom.png","datePublished":"2021-11-17T11:47:04+00:00","dateModified":"2024-03-26T16:22:35+00:00","description":"Learn how to add row numbers to an Excel table in just a few simple steps. Download the example file and follow along with our tutorial.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/graphical-user-interface-table-description-autom.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/11\/graphical-user-interface-table-description-autom.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/add-row-number-to-an-excel-table\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Add Row Number to an Excel Table"}]},{"@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\/8365"}],"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=8365"}],"version-history":[{"count":5,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/8365\/revisions"}],"predecessor-version":[{"id":17304,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/8365\/revisions\/17304"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=8365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=8365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=8365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}