{"id":525,"date":"2016-09-26T17:39:44","date_gmt":"2016-09-26T17:39:44","guid":{"rendered":"http:\/\/xlfxs.com\/?p=525"},"modified":"2016-09-26T17:39:44","modified_gmt":"2016-09-26T17:39:44","slug":"vlookup","status":"publish","type":"post","link":"https:\/\/xlfxs.com\/?p=525","title":{"rendered":"VLookup"},"content":{"rendered":"<p>I have been asked for a while now to just put a simple VLookup function, here it is, I know this might be stupid to post it here, but we need to fill requests from all types of visitors.<\/p>\n<p>Vlookup is the most famous function in Excel, some people actually refer to Excel as VLookup.<br \/>\nEven though I do not like that fact, especially when we have other powerful functions like INDEX, OFFSET, INDIRECT and others.<\/p>\n<h3>So, what is VLOOKUP?<\/h3>\n<p>VLookup is going to search for an item in the left column of your table (or selection), as in the screenshot below, then bring me back the value in the same row where it find that item from another column.<\/p>\n<p>&nbsp;<\/p>\n<p><a class=\"fancybox\" href=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2016\/05\/Post1499.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-527\" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2016\/05\/Post1499-300x136.jpg\" alt=\"Post1499\" width=\"480\" \/><\/a><\/p>\n<p>The <span style=\"color: #000000;\">Green <\/span>box (Lookup_Value) is what the function will search for, and the vertical green box is where, this is because we selected the range (Table_Array) in Blue as the area of D:G, so VLookup will search in D, this is the V part in VLOOKUP, we should also expect to see <a href=\"\/HLookup\">HLookup<\/a>.<br \/>\nMeans if item is not found in column D, VLookup will return as #N\/A error<\/p>\n<p><!--more--><\/p>\n<p>The Red number (COl_Index_Num) is the number of column we need to have result from, again, because we selected D:G, if we types 1 in Col_Index_Num, we will get what is in column D that matches the same row where we found &#8220;Mar&#8221;.<\/p>\n<p>In this case &#8220;Mar&#8221;<\/p>\n<p><a class=\"fancybox\" href=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2016\/05\/Post1500.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-533\" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2016\/05\/Post1500-300x136.jpg\" alt=\"Post1500\" width=\"496\" height=\"225\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>While the &#8220;Range_Lookup&#8221; is something related to the type of search, we just did &#8220;False&#8221; to make sure it searches for the exact match. to read more about &#8220;Range_Lookup&#8221;, please\u00a0check the &#8216;Help&#8217; section in Excel<\/p>\n<p>The idea is to get result from column other than 1, this is why we are doing the search right?<\/p>\n<p>So our function will be<\/p>\n<p>Sample:<\/p>\n<pre>=VLOOKUP(\"Mar\", D:G, 4, False)<\/pre>\n<p><a class=\"fancybox\" href=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2016\/05\/Post1501.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-534\" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2016\/05\/Post1501-300x136.jpg\" alt=\"Post1501\" width=\"481\" height=\"218\" \/><\/a><\/p>\n<p>And the result is as we expected.<\/p>\n<p>&nbsp;<\/p>\n<p>Other ways to do Vlookup is using <a href=\"\/INDEX+MATCH\">INDEX + MATCH<\/a> or <a href=\"\/OFFSET+MATCH\">OFFSET + MATCH<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been asked for a while now to just put a simple VLookup function, here it is, I know this might be stupid to post it here, but we need to fill requests from all types of visitors. Vlookup is the most famous function in Excel, some people actually refer to Excel as VLookup&#8230;.<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/xlfxs.com\/?p=525\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;VLookup&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":533,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,6,62],"tags":[],"class_list":["post-525","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lookup_and_references","category-standard_functions","category-vlookup"],"_links":{"self":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=525"}],"version-history":[{"count":0,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/525\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/media\/533"}],"wp:attachment":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}