{"id":1925,"date":"2026-04-09T16:26:33","date_gmt":"2026-04-09T16:26:33","guid":{"rendered":"https:\/\/xlfxs.com\/?p=1925"},"modified":"2026-04-09T16:26:33","modified_gmt":"2026-04-09T16:26:33","slug":"calculate-above-and-below-me","status":"publish","type":"post","link":"https:\/\/xlfxs.com\/?p=1925","title":{"rendered":"Calculate above and below me"},"content":{"rendered":"\n<p>Calculating average of the column in a cell inside that same column<\/p>\n\n\n\n<p>Getting average of what is above me and what is below me in my same column in one of the cells<\/p>\n\n\n\n<p>DS2 has 1 to use as Average, anything else to get regular number from some calculation \u2026<\/p>\n\n\n\n<p><code>PH2 = IF($DS2=1, IFERROR(AVERAGE(PH$1:PH1,PH3:PH$110),\"N\/A\"), \"Other numbers\")<\/code><\/p>\n\n\n\n<p>This is mainly to avoid circular references when using Average(A:A)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Calculating average of the column in a cell inside that same column Getting average of what is above me and what is below me in my same column in one of the cells DS2 has 1 to use as Average, anything else to get regular number from some calculation \u2026 PH2 = IF($DS2=1, IFERROR(AVERAGE(PH$1:PH1,PH3:PH$110),&#8221;N\/A&#8221;), &#8220;Other&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/xlfxs.com\/?p=1925\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;Calculate above and below me&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1926,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[221,80,81,35,6,7],"tags":[222,147,148],"class_list":["post-1925","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-average","category-if","category-iferror","category-logical","category-standard_functions","category-statistical","tag-average","tag-if","tag-iferror"],"_links":{"self":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1925","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=1925"}],"version-history":[{"count":1,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1925\/revisions"}],"predecessor-version":[{"id":1927,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1925\/revisions\/1927"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/media\/1926"}],"wp:attachment":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}