<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Arrays with Offset</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:28:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Gary</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/#comment-39381</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Mon, 18 May 2009 02:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1128#comment-39381</guid>
		<description>&lt;p&gt;I think I may have solved my own question by trying:&lt;/p&gt;
&lt;p&gt;=SUM(SUBTOTAL(9,OFFSET(Range A,ROW(Range A)-MIN(ROW(Range A)),,1))*SUBTOTAL(9,OFFSET(Range B,ROW(Range B)-MIN(ROW(Range B)),,1)))&lt;/p&gt;
&lt;p&gt;This seems to be equivalent to &lt;/p&gt;
&lt;p&gt;=Subtotal(9, Range C)         where Range C = (Range A) X (Range B)&lt;/p&gt;
&lt;p&gt;This enables me to eliminate the creation of the large intermediate array C which was only created so that it could be summed with autofilters.&lt;/p&gt;
&lt;p&gt;Please confirm or comment if anyone knows of situations where this would not be true.&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I think I may have solved my own question by trying:</p>
<p>=SUM(SUBTOTAL(9,OFFSET(Range A,ROW(Range A)-MIN(ROW(Range A)),,1))*SUBTOTAL(9,OFFSET(Range B,ROW(Range B)-MIN(ROW(Range B)),,1)))</p>
<p>This seems to be equivalent to </p>
<p>=Subtotal(9, Range C)         where Range C = (Range A) X (Range B)</p>
<p>This enables me to eliminate the creation of the large intermediate array C which was only created so that it could be summed with autofilters.</p>
<p>Please confirm or comment if anyone knows of situations where this would not be true.</p>
<p>Gary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/#comment-39380</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Mon, 18 May 2009 01:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1128#comment-39380</guid>
		<description>&lt;p&gt;Suppose I have two columner arrays A and B and want to calculate the sum of the products of A and B under various autofilter conditions in a single cell.  Can this be done using Subtotal function?  In the absence  of an elegant shortcut, I am forced to create another array C and the use the Subtotal function on it.  &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Suppose I have two columner arrays A and B and want to calculate the sum of the products of A and B under various autofilter conditions in a single cell.  Can this be done using Subtotal function?  In the absence  of an elegant shortcut, I am forced to create another array C and the use the Subtotal function on it.  </p>
<p>Thanks,</p>
<p>Gary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lori</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/#comment-24134</link>
		<dc:creator>lori</dc:creator>
		<pubDate>Tue, 15 May 2007 11:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1128#comment-24134</guid>
		<description>&lt;p&gt;So the geological mean of Cretaceous and Triassic is Jurassic then? ;-)&lt;br&gt;
Nice formula for a filtered Geomean btw.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>So the geological mean of Cretaceous and Triassic is Jurassic then? <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> <br />
Nice formula for a filtered Geomean btw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/#comment-24026</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Fri, 11 May 2007 15:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1128#comment-24026</guid>
		<description>&lt;p&gt;To doco (who suggested how to use GEOMEAN and filtering together)&lt;/p&gt;
&lt;p&gt;I used you suggestion but couldn&#039;t get it to work when some data cells in my array were blank... therefore I went back to basics&lt;/p&gt;
&lt;p&gt;If anyone is looking to find the geological mean and filter data at the same time this is how I did it:&lt;/p&gt;
&lt;p&gt;=SUBTOTAL(6,I4:I37)^(1/(SUBTOTAL(2,I4:I37)))&lt;/p&gt;
&lt;p&gt;where I4:I37 is my range&lt;br&gt;
SUBTOTAL (6) gives the product of the cells  in the range that are unfiltered&lt;br&gt;
SUBTOTAL (2) counts the number of cells&lt;/p&gt;
&lt;p&gt;I know this isn&#039;t about using offset but I thought it applied to some of the suggestions on this (excellent) page&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;Carl&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>To doco (who suggested how to use GEOMEAN and filtering together)</p>
<p>I used you suggestion but couldn&#8217;t get it to work when some data cells in my array were blank&#8230; therefore I went back to basics</p>
<p>If anyone is looking to find the geological mean and filter data at the same time this is how I did it:</p>
<p>=SUBTOTAL(6,I4:I37)^(1/(SUBTOTAL(2,I4:I37)))</p>
<p>where I4:I37 is my range<br />
SUBTOTAL (6) gives the product of the cells  in the range that are unfiltered<br />
SUBTOTAL (2) counts the number of cells</p>
<p>I know this isn&#8217;t about using offset but I thought it applied to some of the suggestions on this (excellent) page</p>
<p>With regards,</p>
<p>Carl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/#comment-19234</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Tue, 21 Mar 2006 14:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1128#comment-19234</guid>
		<description>&lt;p&gt;Justin:  Make sure you have named ranges Rge1 and Rge2 or use actaul range references in your place.  Make sure you&#039;re entering those array formulas with Control+Shift+Enter, not just Enter.  See&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.dicks-blog.com/archives/2004/04/05/anatomy-of-an-array-formula/&quot; rel=&quot;nofollow&quot;&gt;http://www.dicks-blog.com/archives/2004/04/05/anatomy-of-an-array-formula/&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Justin:  Make sure you have named ranges Rge1 and Rge2 or use actaul range references in your place.  Make sure you&#8217;re entering those array formulas with Control+Shift+Enter, not just Enter.  See</p>
<p><a href="http://www.dicks-blog.com/archives/2004/04/05/anatomy-of-an-array-formula/" rel="nofollow">http://www.dicks-blog.com/archives/2004/04/05/anatomy-of-an-array-formula/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/#comment-19228</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Tue, 21 Mar 2006 01:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1128#comment-19228</guid>
		<description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This solution looks fanastic, but I can&#039;t get it to work.  &lt;/p&gt;
&lt;p&gt;My initial motivations were to apply it to an AVEDEV function across a range, but after my implementation failed, I set about testing the example formula with exactly the same data as shown in your example.  I replicated exactly your example and copied the code (right down to the values and named ranges).&lt;/p&gt;
&lt;p&gt;The result of applying the sample equation is &quot;#VALUE!&quot; (in both cases).&lt;/p&gt;
&lt;p&gt;Using the Evaluate Formula function, I notice that it seems to be failing on the filtering function &quot;Rge1=&quot;Dick&quot;&quot;.  Where &quot;Rge1? should be shown it displays &quot;#VALUE1? - but everything else seems to resolve properly.&lt;/p&gt;
&lt;p&gt;Suspecting that I needed some add-ins, I enabled &quot;Analysis Toolpak&quot; through &quot;Solver Addin&quot; - this has not improved things.&lt;/p&gt;
&lt;p&gt;This is an excellent website - if I can get a reply to this, you will make my day!&lt;/p&gt;
&lt;p&gt;Regards,&lt;br&gt;
Justin&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>This solution looks fanastic, but I can&#8217;t get it to work.  </p>
<p>My initial motivations were to apply it to an AVEDEV function across a range, but after my implementation failed, I set about testing the example formula with exactly the same data as shown in your example.  I replicated exactly your example and copied the code (right down to the values and named ranges).</p>
<p>The result of applying the sample equation is &#8220;#VALUE!&#8221; (in both cases).</p>
<p>Using the Evaluate Formula function, I notice that it seems to be failing on the filtering function &#8220;Rge1=&#8221;Dick&#8221;".  Where &#8220;Rge1? should be shown it displays &#8220;#VALUE1? &#8211; but everything else seems to resolve properly.</p>
<p>Suspecting that I needed some add-ins, I enabled &#8220;Analysis Toolpak&#8221; through &#8220;Solver Addin&#8221; &#8211; this has not improved things.</p>
<p>This is an excellent website &#8211; if I can get a reply to this, you will make my day!</p>
<p>Regards,<br />
Justin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/#comment-12436</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Thu, 19 May 2005 23:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1128#comment-12436</guid>
		<description>&lt;p&gt;Hi doco,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;I must be dim, but I cannot see how that would work?&lt;/p&gt;
&lt;p&gt;oesn&#039;t that still require the user to manually re-calculate (regardless of whether they have calculation mode set to automatic or not)?&lt;/p&gt;
&lt;p&gt;Thanks for your assistance,&lt;/p&gt;
&lt;p&gt;Alan.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi doco,</p>
<p>Thanks for your response.</p>
<p>I must be dim, but I cannot see how that would work?</p>
<p>oesn&#8217;t that still require the user to manually re-calculate (regardless of whether they have calculation mode set to automatic or not)?</p>
<p>Thanks for your assistance,</p>
<p>Alan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ross</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/#comment-12355</link>
		<dc:creator>ross</dc:creator>
		<pubDate>Thu, 12 May 2005 14:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1128#comment-12355</guid>
		<description>&lt;p&gt;&lt;i&gt;ross&#039;s ducks&lt;/i&gt;...urrrrrrrggggggggg, complex formulas!!!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><i>ross&#8217;s ducks</i>&#8230;urrrrrrrggggggggg, complex formulas!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doco</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/#comment-12354</link>
		<dc:creator>doco</dc:creator>
		<pubDate>Thu, 12 May 2005 13:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1128#comment-12354</guid>
		<description>&lt;p&gt;I meant to say &quot;should&quot; - it works for me with all hidden and or filtered rows.  The only real problem I have had with it is pasting results to another sheet: you will not want to use  PasteSpecial PasteAll as it will give reference to the entire referenced column UsedRange; which creates some unforseen problems later on.&lt;/p&gt;
&lt;p&gt;Dick: is there a way to edit posts? :-(&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I meant to say &#8220;should&#8221; &#8211; it works for me with all hidden and or filtered rows.  The only real problem I have had with it is pasting results to another sheet: you will not want to use  PasteSpecial PasteAll as it will give reference to the entire referenced column UsedRange; which creates some unforseen problems later on.</p>
<p>Dick: is there a way to edit posts? <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doco</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/11/arrays-with-offset/#comment-12353</link>
		<dc:creator>doco</dc:creator>
		<pubDate>Thu, 12 May 2005 13:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1128#comment-12353</guid>
		<description>&lt;p&gt;microsoft.public.excel.worksheet.functions&lt;br&gt;
Sunday, April 17, 2005 11:38 AM&lt;/p&gt;
&lt;p&gt;A fellow named Domenic responded to a question I had for this same thing.  We exchanged several emails - thanks Domenic!&lt;/p&gt;
&lt;p&gt;Two things I wanted to know: first how to use other measures of central tendency beyond sum, count, average, stdev, etc. to measure a list of sales ratios.  The following array formula was used for median, avedev, geomean, harmean:&lt;/p&gt;
&lt;p&gt;{=MEDIAN(IF(SUBTOTAL(3,OFFSET($AF$2:$AF$64,ROW($AF$2:$AF$64)-MIN(ROW($AF$2:$AF$64)),0,1)),$AF$2:$AF$64))}&lt;/p&gt;
&lt;p&gt;and works fine.&lt;/p&gt;
&lt;p&gt;Also wanted to do a calculation on the same list but for only those visible rows that were compared to a list of parameters.  EG list of Quarters (1 - 4) and the central tendency of any visible rows that were in a particular quarter&lt;/p&gt;
&lt;p&gt;Give from visible rows&lt;br&gt;
Term   Median  GeoMean   Mean   ...&lt;br&gt;
  1&lt;br&gt;
  2&lt;br&gt;
  3&lt;br&gt;
  4&lt;/p&gt;
&lt;p&gt;{=MEDIAN(IF((SUBTOTAL(3,OFFSET($E$2:$E$64,ROW($E$2:$E$64)-MIN(ROW($E$2:$E$64)),0,1)))*($E$2:$E$64=$E67),$AF$2:$AF$64))}&lt;/p&gt;
&lt;p&gt;I think the use of Row(...) solves your problem&lt;/p&gt;
&lt;p&gt;HTH&lt;br&gt;
doco&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>microsoft.public.excel.worksheet.functions<br />
Sunday, April 17, 2005 11:38 AM</p>
<p>A fellow named Domenic responded to a question I had for this same thing.  We exchanged several emails &#8211; thanks Domenic!</p>
<p>Two things I wanted to know: first how to use other measures of central tendency beyond sum, count, average, stdev, etc. to measure a list of sales ratios.  The following array formula was used for median, avedev, geomean, harmean:</p>
<p>{=MEDIAN(IF(SUBTOTAL(3,OFFSET($AF$2:$AF$64,ROW($AF$2:$AF$64)-MIN(ROW($AF$2:$AF$64)),0,1)),$AF$2:$AF$64))}</p>
<p>and works fine.</p>
<p>Also wanted to do a calculation on the same list but for only those visible rows that were compared to a list of parameters.  EG list of Quarters (1 &#8211; 4) and the central tendency of any visible rows that were in a particular quarter</p>
<p>Give from visible rows<br />
Term   Median  GeoMean   Mean   &#8230;<br />
  1<br />
  2<br />
  3<br />
  4</p>
<p>{=MEDIAN(IF((SUBTOTAL(3,OFFSET($E$2:$E$64,ROW($E$2:$E$64)-MIN(ROW($E$2:$E$64)),0,1)))*($E$2:$E$64=$E67),$AF$2:$AF$64))}</p>
<p>I think the use of Row(&#8230;) solves your problem</p>
<p>HTH<br />
doco</p>
]]></content:encoded>
	</item>
</channel>
</rss>

