{"id":1669,"date":"2015-10-06T18:17:02","date_gmt":"2015-10-06T16:17:02","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=1669"},"modified":"2024-04-18T15:05:44","modified_gmt":"2024-04-18T13:05:44","slug":"vlookup-in-an-excel-table","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/vlookup-in-an-excel-table\/","title":{"rendered":"Vlookup in an Excel Table"},"content":{"rendered":"<p><em><strong>What does it do?<\/strong><\/em><\/p>\n<p>Searches for a value in the first column of a table array and returns a value in the same row from another column (to the right) in the table array.<\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>=VLOOKUP(<span style=\"color: #0000ff\">lookup_value<\/span>, <span style=\"color: #ff6600\">table_array<\/span>, <span style=\"color: #008000\">col_index_num<\/span>, <span style=\"color: #ff00ff\">[range_lookup]<\/span>)<\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<p>=VLOOKUP(<span style=\"color: #0000ff\">this value<\/span>, <span style=\"color: #ff6600\">TableName<\/span>, <span style=\"color: #008000\">and get me value in this column<\/span>, <span style=\"color: #ff00ff\">Exact Match\/FALSE\/0]<\/span>)<\/p>\n<p>Excel Tables are just amazing and should be used all the time, whether you have 2 rows or 200,000 rows of data!<\/p>\n<p>You can read the benefits of using an Excel Table here:<\/p>\n<p><span style=\"text-decoration: underline;color: #0000ff\"><a style=\"color: #0000ff;text-decoration: underline\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/how-to-insert-an-excel-table\/\" target=\"_blank\" rel=\"noopener noreferrer\">Excel Tables<\/a><\/span><\/p>\n<p>When you use a Vlookup formula to <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/excel-fuzzy-lookup\/\" target=\"_blank\" rel=\"noopener\">lookup in an Excel<\/a> Table then your formula becomes dynamic due to its structured referencing.<\/p>\n<p>What that means is that as the Excel Table expands with more data added to it, your Vlookup formula&#8217;s 2nd argument (<em>table_array<\/em>) does not need to be updated as it<strong> refers to the Excel Table as a whole<\/strong> by referring to its name eg <em>Table1\u00a0 <\/em>or<em> Table2\u00a0 <\/em>or<em> Table3<\/em>\u00a0 etc<\/p>\n<p>In the example below our Excel Table name is <em>Table2<\/em> and as we add more rows of data to it, the Vlookup formula does not need to be adjusted.\u00a0 How bloody cool is that?<iframe src=\"https:\/\/www.youtube.com\/embed\/o4sFRJv_p2w?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"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\/10\/Vlookup_Excel-Tablev2.xlsx\" target=\"_blank\"><span class=\"ctaText px-3 text-capitalize\">Download workbook<\/span><span class=\"postTitle px-3\">Vlookup_Excel-Tablev2.xlsx<\/span><\/a><\/span><\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 1:<\/strong> <\/span>We need to convert the data into an Excel Table. Press <b>Ctrl + T <\/b>then press OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Vlookup in an Excel Table\" class=\"alignnone size-full wp-image-19605\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-01.jpg\" alt=\"Vlookup in an Excel Table\" width=\"596\" height=\"181\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-01.jpg 596w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-01-300x91.jpg 300w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 2:<\/strong> <\/span>Now let us create the formula to get the price of the Laptop. Let us use the <strong>VLOOKUP<\/strong> formula:<\/p>\n<h2 style=\"text-align: center\"><span style=\"color: #0000ff\">=VLOOKUP(G15, Table1, 2, FALSE)<\/span><\/h2>\n<p>This will get the lookup value (<strong>Laptop<\/strong> in Cell G15), then search in the <strong>first column of Table1<\/strong>.<\/p>\n<p>Afterwards it will get the value in<strong> Column #2<\/strong> which is the <strong>price<\/strong>. The FALSE means is we want to get the exact match.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Vlookup in an Excel Table\" class=\"alignnone size-full wp-image-19606\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-02.jpg\" alt=\"Vlookup in an Excel Table\" width=\"1097\" height=\"245\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-02.jpg 1097w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-02-300x67.jpg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-02-1024x229.jpg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-02-768x172.jpg 768w\" sizes=\"(max-width: 1097px) 100vw, 1097px\" \/><\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 3:<\/strong> <\/span>Drag down the formula to copy it across the table. Notice that the second row is looking for the price of\u00a0<strong>Mouse<\/strong>. This does not exist in our data table yet.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Vlookup in an Excel Table\" class=\"alignnone size-full wp-image-19607\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-03.jpg\" alt=\"Vlookup in an Excel Table\" width=\"719\" height=\"164\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-03.jpg 719w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-03-300x68.jpg 300w\" sizes=\"(max-width: 719px) 100vw, 719px\" \/><\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 4:<\/strong> <\/span>Now add and type in a new row in our table for the price of the mouse.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Vlookup in an Excel Table\" class=\"alignnone size-full wp-image-19608\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-04.jpg\" alt=\"Vlookup in an Excel Table\" width=\"349\" height=\"229\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-04.jpg 349w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-04-300x197.jpg 300w\" sizes=\"(max-width: 349px) 100vw, 349px\" \/><\/p>\n<p>The beauty with this is our VLOOKUP formula still works fine. Since we are using the Table1, there is no need to update the range of values that our VLOOKUP will use. It is now automatically included and the price of the mouse is retrieved right away.<img loading=\"lazy\" decoding=\"async\" title=\"Vlookup in an Excel Table\" class=\"alignnone size-full wp-image-19609\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-05.jpg\" alt=\"Vlookup in an Excel Table\" width=\"1061\" height=\"192\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-05.jpg 1061w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-05-300x54.jpg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-05-1024x185.jpg 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/10\/Vlookup-in-Excel-Table-05-768x139.jpg 768w\" sizes=\"(max-width: 1061px) 100vw, 1061px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What does it do? Searches for a value in the first column of a table array and returns a value in the same row from another column (to the right) in the table array. Formula breakdown: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]) What it means: =VLOOKUP(this value, TableName, and get me value in this column, Exact Match\/FALSE\/0]) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17201,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"Vlookup in an Excel Table","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[3,36,11,276],"tags":[97,43,44],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/1669"}],"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=1669"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/1669\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17201"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=1669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=1669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=1669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}