{"id":2418,"date":"2017-07-18T07:41:12","date_gmt":"2017-07-18T07:41:12","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=2418"},"modified":"2017-07-18T07:48:30","modified_gmt":"2017-07-18T07:48:30","slug":"using-match-to-find-unique-rows","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/using-match-to-find-unique-rows\/","title":{"rendered":"Using Match to find Unique Rows"},"content":{"rendered":"<pre>\r\n=MATCH(lookup_value, lookup_array, match_type)\r\n<\/pre>\n<p><strong>lookup_value<\/strong> &#8211; Value you are interested in<br \/>\n<strong>lookup_array<\/strong> &#8211; Column you want to look for value<br \/>\n<strong>match_type<\/strong> &#8211; Whether it should be a exact match or approximate match<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/codethataint.com\/blog\/wp-content\/uploads\/2017\/07\/Using-Match-Function.png\" alt=\"\" height=\"206\" width=\"1094\"\/><\/p>\n<p><strong>Match Function<\/strong><\/p>\n<pre>\r\n =MATCH(D2,A2:A7,FALSE)\r\n<\/pre>\n<p>Looks for D2 in the Lookup Array in A2 to A7<\/p>\n<p><strong>Match with Msg<\/strong><\/p>\n<pre>\r\n  =IFERROR(MATCH(D2,A2:A7,FALSE),\"Missing\")\r\n<\/pre>\n<p>In case of Error <strong>IFERROR <\/strong>is used to make it display as <em>Missing<\/em><\/p>\n<p><strong>Match with ISNA<\/strong><\/p>\n<pre>\r\n  =ISNA(MATCH(D2,A2:A7,FALSE))\r\n<\/pre>\n<p>If <strong>#N\/A<\/strong> then it would be displayed as <em>True <\/em><\/p>\n<p><strong>Match with 2 Columns<\/strong><\/p>\n<pre>\r\n  =MATCH(D2,A2:A7,FALSE)&MATCH(E2,B2:B7,FALSE)\r\n<\/pre>\n<p>In the above code, we are checking the two columns for uniqueness by using two match function<br \/>\nand using <strong>&#038;&#038;<\/strong> Operator to display the value as <strong>11<\/strong> or <strong>#N\/A<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>=MATCH(lookup_value, lookup_array, match_type) lookup_value &#8211; Value you are interested in lookup_array &#8211; Column you want to look for value match_type &#8211; Whether it should be a exact match or approximate match Match Function =MATCH(D2,A2:A7,FALSE) Looks for D2 in the Lookup Array in A2 to A7 Match with Msg =IFERROR(MATCH(D2,A2:A7,FALSE),&#8221;Missing&#8221;) In case of Error IFERROR is&hellip; <a href=\"https:\/\/codethataint.com\/blog\/using-match-to-find-unique-rows\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[],"class_list":["post-2418","post","type-post","status-publish","format-standard","hentry","category-excel"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=2418"}],"version-history":[{"count":4,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2418\/revisions"}],"predecessor-version":[{"id":2423,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2418\/revisions\/2423"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=2418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=2418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=2418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}