{"id":19,"date":"2012-01-21T23:13:48","date_gmt":"2012-01-22T05:13:48","guid":{"rendered":"http:\/\/xlfxs.com\/?p=19"},"modified":"2012-01-21T23:13:48","modified_gmt":"2012-01-22T05:13:48","slug":"hyperlink","status":"publish","type":"post","link":"https:\/\/xlfxs.com\/?p=19","title":{"rendered":"Hyperlink usage and HyperlinkOf UDF"},"content":{"rendered":"<p>The&nbsp;<em><strong>Hyperlink<\/strong><\/em> function is really powerful and yet not widely used.<\/p>\n<p>You can create a whole navigation system with <em><strong>Hyperlink<\/strong><\/em> fx or create a custom jump to link to take user to certain area.<\/p>\n<p>Of course the &#8220;Jump-to&#8221; link need other functions, like <strong><em>Match<\/em><\/strong>, <em><strong>Indirect<\/strong><\/em> and <em><strong>Index<\/strong><\/em><\/p>\n<p>Here is a sample of what we can do with <em><strong>Hyperlink<\/strong><\/em> and other functions<\/p>\n<p>It also has the UDF (User-defined-function) that called <em><strong>HyperlinkOf<\/strong><\/em> to get the actual Hyperlink address of a cell hold a regular hyperlink (created with Insert &#8211;&gt; Hyperlink)<\/p>\n<p>This one has a lot of formulas to make it work well:<\/p>\n<p>First: we have the formula that brings the path where this Excel file is saved:<\/p>\n<pre>=LEFT(CELL(\"filename\",$A$1),SEARCH(\"[\",CELL(\"filename\",$A$1))-1)<\/pre>\n<p>Then: we have the one that grabs This Excel file name:<\/p>\n<pre>=MID(CELL(\"filename\",$A$1),SEARCH(\"[\",CELL(\"filename\",$A$1))+1,SEARCH(\"]\",CELL(\"filename\",$A$1),SEARCH(\"[\",CELL(\"filename\",$A$1)))-SEARCH(\"[\",CELL(\"filename\",$A$1))-1)<\/pre>\n<p>Then: The one that brings Active sheet name:<\/p>\n<pre>=MID(CELL(\"filename\",$A$1),SEARCH(\"]\",CELL(\"filename\",$A$1))+1,500)<\/pre>\n<p>And off course: the one that Constructs the Hyperlink itself<\/p>\n<pre>=HYPERLINK(IF(C10=$C$8,\"[\"&amp;C10&amp;\"]'\"&amp;D10&amp;\"'!\"&amp;E10,IF(B10=$B$8,C10,B10&amp;C10)))<\/pre>\n<p>And as a bonus, the UDF that reads the URL from a flat Hyperlink:<\/p>\n<pre>=hyperlinkof(G3)<\/pre>\n<p><a href=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2012\/01\/Zip_0098.zip\"><img decoding=\"async\" class=\"aligncenter\" src=\"\/wp-content\/uploads\/2014\/12\/Download1.png\" alt=\"\"><\/a><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;Hyperlink function is really powerful and yet not widely used. You can create a whole navigation system with Hyperlink fx or create a custom jump to link to take user to certain area. Of course the &#8220;Jump-to&#8221; link need other functions, like Match, Indirect and Index Here is a sample of what we can do&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/xlfxs.com\/?p=19\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;Hyperlink usage and HyperlinkOf UDF&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":71,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70,3,79,30,31,36,40,6,10],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cell","category-formulas","category-hyperlink","category-hyperlinkof","category-information","category-lookup_and_references","category-mid","category-standard_functions","category-udf-user-defined-functions"],"_links":{"self":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/19","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=19"}],"version-history":[{"count":0,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/media\/71"}],"wp:attachment":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}