{"id":4920,"date":"2019-03-20T11:44:52","date_gmt":"2019-03-20T16:44:52","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=4920"},"modified":"2020-02-05T13:27:08","modified_gmt":"2020-02-05T18:27:08","slug":"do-you-know-excel-vlookup","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=4920","title":{"rendered":"Do you know \u2026 Excel VLOOKUP?"},"content":{"rendered":"<p>I frequently need to correlate two sets of data \u2013 generally information about accounts, where the logon ID will be found in both data sets. I\u2019ve imported my information into Access, defined a relationship between the two tables, and used a query to correlate my data. I\u2019ve written quick scripts to pull the data into an associative array for correlation. These are not <em>quick<\/em> approaches.<\/p>\n<p>Using the <a href=\"https:\/\/support.office.com\/en-us\/article\/vlookup-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1\">VLOOKUP<\/a> function in Excel, you can search through data in rows and retrieve values from the record\u2019s other columns. <a href=\"https:\/\/support.office.com\/en-us\/article\/hlookup-function-a3034eec-b719-4ba3-bb65-e1ad662ed95f\">HLOOKUP<\/a> provides the same function, but searches data in columns and retrieves values from the record\u2019s other rows (Vertical Lookup and Horizontal Lookup).<\/p>\n<p>Today, I have a list of individuals with their reporting structure and need to identify which accounts have Skype for Business provisioned.<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/?attachment_id=4921\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4921 size-full\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-65.png\" alt=\"\" width=\"928\" height=\"408\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-65.png 928w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-65-300x132.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-65-768x338.png 768w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/a><\/p>\n<p>The Skype user list is, unfortunately, comes from a different program.<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/?attachment_id=4922\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4922 size-full\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-66.png\" alt=\"\" width=\"705\" height=\"496\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-66.png 705w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-66-300x211.png 300w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/a><\/p>\n<p>To lookup user IDs from the first table against the Skype info in the second table, I use =VLOOKUP(B2,S4BInfo!A:B,2,FALSE)<\/p>\n<p>The first parameter in the function is the information you want to find, the second parameter is the area where you\u2019ll be looking for the data, the third parameter is the column <em>in that range<\/em> that you want to return when a match is found. The fourth parameter indicates if you want to find the closest match (\u2018TRUE\u2019) or an exact match (\u2018FALSE\u2019). So my formula says \u201cfind the value in B2 within columns A and B of the SBInfo tab. Return the value from column 2 of that range, and I want an identical match\u201d.<\/p>\n<p>Note that the third parameter column number may not match the column number in the sheet \u2013 if I used the range C:D from the table below, I would still want to return the data in column 2 because my target data is still the second column in the search range.<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/?attachment_id=4923\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4923 size-full\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-67.png\" alt=\"\" width=\"872\" height=\"559\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-67.png 872w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-67-300x192.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-67-768x492.png 768w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><\/a><\/p>\n<p>Fill down and I have a single table that contains both the reporting information that I needed and a column indicating if the individual has a Skype for Business account<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/?attachment_id=4924\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4924 size-full\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-68.png\" alt=\"\" width=\"679\" height=\"589\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-68.png 679w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/03\/word-image-68-300x260.png 300w\" sizes=\"auto, (max-width: 679px) 100vw, 679px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I frequently need to correlate two sets of data \u2013 generally information about accounts, where the logon ID will be found in both data sets. I\u2019ve imported my information into Access, defined a relationship between the two tables, and used a query to correlate my data. I\u2019ve written quick scripts to pull the data into &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[677],"tags":[675,708,709,691,729,731],"class_list":["post-4920","post","type-post","status-publish","format-standard","hentry","category-office-365","tag-did-you-know","tag-excel","tag-microsoft-excel","tag-microsoft-office","tag-microsoft-office-365","tag-ms-excel"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4920"}],"version-history":[{"count":2,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4920\/revisions"}],"predecessor-version":[{"id":5947,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4920\/revisions\/5947"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}