{"id":1848,"date":"2014-03-09T09:30:42","date_gmt":"2014-03-09T09:30:42","guid":{"rendered":"http:\/\/sapsecurityanalyst.com\/WP\/?page_id=1848"},"modified":"2014-03-09T09:30:42","modified_gmt":"2014-03-09T09:30:42","slug":"vlookup","status":"publish","type":"page","link":"https:\/\/sapsecurityanalyst.com\/WP\/vlookup\/","title":{"rendered":"VLOOKUP"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>In this post, we are going to discuss about VLOOKUP in Microsoft Excel. The &#8220;V&#8221; in VLOOKUP stands for vertical. It is a very important function which can be used for finding data from sets of data which are in one or more columns.<\/p>\n<h4>Syntax for VLOOKUP:<\/h4>\n<address>VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)<\/address>\n<address>\u00a0<\/address>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1850 aligncenter\" alt=\"\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531bfd715c296.png\" width=\"512\" height=\"141\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531bfd715c296.png 512w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531bfd715c296-300x82.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531bfd715c296-290x79.png 290w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531bfd715c296-150x41.png 150w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/p>\n<p><b>lookup _value:\u00a0<\/b>The\u00a0value\u00a0we want to find in the first\u00a0column\u00a0of the\u00a0table_array.<\/p>\n<p><b style=\"line-height: 1.5em;\">table_array:\u00a0<\/b><span style=\"line-height: 1.5em;\">This is the table of\u00a0data\u00a0that VLOOKUP searches to find the information we are looking for.<\/span><\/p>\n<p><b>col_index_num:<\/b>\u00a0The column number in the table_array that contains the data we want returned.<\/p>\n<p><b>range_lookup:<\/b>\u00a0A logical value (TRUE or FALSE only) that indicates whether we want VLOOKUP to find an exact or an approximate match to the lookup_value. Typing\u00a0<i>False\u00a0<\/i>will return exact matches only.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">Let&#8217;s see how it actually works.<\/p>\n<ul>\n<li>Suppose, we have two lists of users (say list A and list B) and we want to know what all users in list A are present in list B also.<\/li>\n<\/ul>\n<p style=\"text-align: left;\">Below are the two lists in excel:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1854\" alt=\"\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c0a55bdc81.png\" width=\"239\" height=\"279\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c0a55bdc81.png 265w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c0a55bdc81-256x300.png 256w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c0a55bdc81-128x150.png 128w\" sizes=\"(max-width: 239px) 100vw, 239px\" \/><\/p>\n<p>Let&#8217;s do a VLOOKUP to find this. We can either directly write the formula for VLOOKUP (as shown below) or we can use the function field (<em>fx<\/em>) to insert the function for vlookup using vlookup window:<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1856 aligncenter\" alt=\"\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c20d18518b.png\" width=\"728\" height=\"539\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c20d18518b.png 728w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c20d18518b-300x222.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c20d18518b-290x214.png 290w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c20d18518b-150x111.png 150w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/p>\n<p style=\"text-align: left;\">Let&#8217;s do the vlookup for finding those values which are in List A in the List B. We will try it using the vlookup function argument (Option 2 above).<\/p>\n<p style=\"text-align: left;\">Click on cell C2 and execute function vlookup to get the vlookup window. The first value in List A is user 1 which is in cell A2. Since this needs to be searched first, we will insert A2 in lookup_value.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1860\" alt=\"\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c29d162a97.png\" width=\"363\" height=\"96\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c29d162a97.png 519w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c29d162a97-300x79.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c29d162a97-290x76.png 290w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c29d162a97-150x39.png 150w\" sizes=\"(max-width: 363px) 100vw, 363px\" \/>Now place the cursor on Table_array text box in vlookup window.<\/p>\n<p style=\"text-align: left;\">Since value user 1 can be present in any of the cells in List B, we need to select the whole column B. As soon as column B is selected, the value in the text box Table_array automatically gets updated with B:B.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1861\" alt=\"\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2ad3bcf98.png\" width=\"333\" height=\"111\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2ad3bcf98.png 416w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2ad3bcf98-300x100.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2ad3bcf98-290x96.png 290w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2ad3bcf98-150x50.png 150w\" sizes=\"(max-width: 333px) 100vw, 333px\" \/>Now place the cursor in the text box for Col_index_num. Since column B is the only column where we are trying to find data, insert 1 in this text box.<\/p>\n<p>Finally insert value <strong>False<\/strong> in Range_lookup text box (since we are searching for the exact value)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1862\" alt=\"\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2c3023016.png\" width=\"580\" height=\"282\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2c3023016.png 725w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2c3023016-300x146.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2c3023016-290x141.png 290w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2c3023016-150x73.png 150w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/>Click OK.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"303\" class=\"alignnone size-full wp-image-1863\" alt=\"\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2c9de0356.png\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2c9de0356.png 476w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2c9de0356-300x190.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2c9de0356-290x184.png 290w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2c9de0356-150x95.png 150w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/>We got <strong>#N\/A<\/strong> in cell C2 which suggests that value user 1 is not present in List B. Now click on bottom right corner of cell C2 to get the following:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1864\" alt=\"\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2dcb17fab.png\" width=\"387\" height=\"249\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2dcb17fab.png 484w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2dcb17fab-300x192.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2dcb17fab-290x186.png 290w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/03\/img_531c2dcb17fab-150x96.png 150w\" sizes=\"(max-width: 387px) 100vw, 387px\" \/>This screen shows that values user 2, user 3 and user 5 are present in List B.<\/p>\n<p style=\"text-align: left;\">\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; In this post, we are going to discuss about VLOOKUP in Microsoft Excel. The &#8220;V&#8221; in VLOOKUP stands for vertical. It is a very important function which can be used for finding data from sets of data which are in one or more columns.&nbsp;<a class=\"read-more\" href=\"https:\/\/sapsecurityanalyst.com\/WP\/vlookup\/\">&hellip;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/pages\/1848"}],"collection":[{"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/comments?post=1848"}],"version-history":[{"count":3,"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/pages\/1848\/revisions"}],"predecessor-version":[{"id":1865,"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/pages\/1848\/revisions\/1865"}],"wp:attachment":[{"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/media?parent=1848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}