{"id":12457,"date":"2019-06-19T08:46:18","date_gmt":"2019-06-19T06:46:18","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=12457"},"modified":"2023-11-30T20:02:17","modified_gmt":"2023-11-30T19:02:17","slug":"add-a-row-index-to-a-loaded-query-using-power-query","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/add-a-row-index-to-a-loaded-query-using-power-query\/","title":{"rendered":"Add a Row Index to a Loaded Query Using Power Query"},"content":{"rendered":"<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/installing-power-query-excel-2010\/\" target=\"_blank\" rel=\"noopener noreferrer\">Power Query<\/a> or Get &amp; Transform (In Excel 2016) lets you perform a series of steps to transform your Excel data.\u00a0 If you have an existing query that you have created and forgot to add a row index, you can still<strong> add a row index to a loaded query<\/strong>!<\/p>\n<p>This is perfect as there is no need for you to modify the original query.<\/p>\n<p>We will use the existing workbook from <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/split-the-date-using-power-query-or-get-transform\/\" target=\"_blank\">this tutorial of splitting dates<\/a>. It splits the Order Date into Year, Month and Day.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Split the Date Using Power Query or Get &amp; Transform\"  class=\"aligncenter size-full wp-image-11049\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Split-the-Date-06.png\" alt=\"Split the Date Using Power Query or Get &amp; Transform\" width=\"588\" height=\"374\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Split-the-Date-06.png 588w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Split-the-Date-06-300x191.png 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/HxV9dtcwKdw?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><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><\/p>\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query.xlsx\" data-leadbox-id=\"147284833f72a2:12f08263ab46dc\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<i class=\"fa fa-download\"><\/i><\/span><span class=\"postTitle px-3\">Add-a-Row-Index-to-a-Loaded-Query.xlsx<\/span><\/a><\/p>\n<p class=\"line-two\">\n<\/div>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1<\/strong>:<\/span> Open the workbook with the existing query. Select any cell in it.<\/p>\n<p><strong><em><img loading=\"lazy\" decoding=\"async\" title=\"Add a Row Index to a Loaded Query Using Power Query\"  class=\"aligncenter size-full wp-image-12461\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-01.png\" alt=\"Add a Row Index to a Loaded Query Using Power Query\" width=\"1101\" height=\"980\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-01.png 1101w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-01-300x267.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-01-1024x911.png 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-01-768x684.png 768w\" sizes=\"(max-width: 1101px) 100vw, 1101px\" \/><\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2: <\/strong><\/span>Go to <strong><em>Data &gt; Connections &gt; Properties<\/em><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Add a Row Index to a Loaded Query Using Power Query\"  class=\"aligncenter size-full wp-image-12462\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-02.png\" alt=\"Add a Row Index to a Loaded Query Using Power Query\" width=\"1163\" height=\"471\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-02.png 1163w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-02-300x121.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-02-1024x415.png 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-02-768x311.png 768w\" sizes=\"(max-width: 1163px) 100vw, 1163px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #ff0000;\">STEP 3:<\/span> <\/strong>Now tick\u00a0<strong>Include row numbers\u00a0<\/strong>and <strong>click OK<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Add a Row Index to a Loaded Query Using Power Query\"  class=\"aligncenter size-full wp-image-12463\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-03.png\" alt=\"Add a Row Index to a Loaded Query Using Power Query\" width=\"567\" height=\"452\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-03.png 567w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-03-300x239.png 300w\" sizes=\"(max-width: 567px) 100vw, 567px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 4: <\/strong><\/span>Let us now see this reflect in our query. Go to <strong><em>Query&gt; Load&gt; Refresh<\/em><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Add a Row Index to a Loaded Query Using Power Query\"  class=\"aligncenter size-full wp-image-12464\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-04.png\" alt=\"Add a Row Index to a Loaded Query Using Power Query\" width=\"1216\" height=\"615\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-04.png 1216w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-04-300x152.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-04-1024x518.png 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-04-768x388.png 768w\" sizes=\"(max-width: 1216px) 100vw, 1216px\" \/><\/p>\n<p>Your <strong>row index is now added to your loaded query<\/strong>!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Add a Row Index to a Loaded Query Using Power Query\"  class=\"aligncenter size-full wp-image-12465\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-05.png\" alt=\"Add a Row Index to a Loaded Query Using Power Query\" width=\"1199\" height=\"691\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-05.png 1199w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-05-300x173.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-05-1024x590.png 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/06\/Add-a-Row-Index-to-a-Loaded-Query-05-768x443.png 768w\" sizes=\"(max-width: 1199px) 100vw, 1199px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #0000ff;\"><strong>How to Add a Row Index to a Loaded Query Using Power Query<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/100-39.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/07\/530x300.jpg\" alt=\"Free Excel Macros &amp; VBA Webinar Training\" width=\"530\" height=\"300\" title=\"\"><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Power Query or Get &amp; Transform (In Excel 2016) lets you perform a series of steps to transform your Excel data.\u00a0 If you have an existing query that you have created and forgot to add a row index, you can still add a row index to a loaded query! This is perfect as there is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17769,"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":[120,121],"tags":[117,597],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/12457"}],"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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=12457"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/12457\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17769"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=12457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=12457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=12457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}