{"id":422,"date":"2015-04-06T16:02:23","date_gmt":"2015-04-06T16:02:23","guid":{"rendered":"http:\/\/xlfxs.com\/?p=422"},"modified":"2015-04-06T16:02:23","modified_gmt":"2015-04-06T16:02:23","slug":"why-i-ran-from-indirect-function","status":"publish","type":"post","link":"https:\/\/xlfxs.com\/?p=422","title":{"rendered":"Why I ran from =INDIRECT() function"},"content":{"rendered":"<p>I think if there is a single function that would be a huge threat to VBA and macros from user perspective, it would be INDIRECT()<\/p>\n<p>Yes, it wasn&#8217;t long enough before I got introduced to OFFSET() back in 1998, and was using it a lot and in my classes, yet once I found INDIRECT, things changed<\/p>\n<p>Along with ADDRESS, ROW and COLUMN and some text tricks like SEARCH, LEFT, LEN, RIGHT, etc, you can do a lot.<\/p>\n<p>You see INDIRECT does a simple job<\/p>\n<h3>Converts a text that represent a reference, into reference<\/h3>\n<p>So&#8230;<\/p>\n<p>If you do<\/p>\n<p><code>=INDIRECT(\"G4\")<\/code><\/p>\n<p>It gives you the value in G4<\/p>\n<p>Notice that &#8220;G4&#8221; has the double-quotations, means<\/p>\n<p><code>=INDIRECT(\"G\"&amp;SUM(S1:S4))<\/code><\/p>\n<p><!--more--><\/p>\n<p>Will give you the value in cell G8 if total number of S1 to S4 is 8<\/p>\n<p>&nbsp;<\/p>\n<p>This is powerful, and this is why I was able to do most of the tricks, like<\/p>\n<p><a title=\"iframe in Excel (XLiFrame)\" href=\"http:\/\/xlfxs.com\/iframe-in-excel-xliframe\/\">iframe in Excel (XLiFrame), <\/a><a title=\"Rotate table using 1 formula\" href=\"http:\/\/xlfxs.com\/rotate-table-using-1-formula\/\">Rotate table using 1 formula<\/a>, and <a title=\"Insert Blank rows into table using functions\" href=\"http:\/\/xlfxs.com\/insert-blank-rows-into-table-using-functions\/\">Insert Blank rows into table using functions<\/a><\/p>\n<p>Plus more<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I think if there is a single function that would be a huge threat to VBA and macros from user perspective, it would be INDIRECT() Yes, it wasn&#8217;t long enough before I got introduced to OFFSET() back in 1998, and was using it a lot and in my classes, yet once I found INDIRECT, things&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/xlfxs.com\/?p=422\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;Why I ran from =INDIRECT() function&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":604,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,85,36,47,6],"tags":[],"class_list":["post-422","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-formulas","category-indirect","category-lookup_and_references","category-offset","category-standard_functions"],"_links":{"self":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/422","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=422"}],"version-history":[{"count":0,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/422\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/media\/604"}],"wp:attachment":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}