<?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: Entering Long Array Formulas in VBA</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Array Formulas in Excel &#8211; Using VBA &#171; One Stop Analytics</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/#comment-73394</link>
		<dc:creator>Array Formulas in Excel &#8211; Using VBA &#171; One Stop Analytics</dc:creator>
		<pubDate>Mon, 06 Feb 2012 10:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=973#comment-73394</guid>
		<description>[...] 2. This is probably a very well thought out solution and easier in terms of operational complexity but requires more work in terms of code. It&#8217;s best read directly at Dick Kusleika&#8217;s blog &#8211; http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/. [...]</description>
		<content:encoded><![CDATA[<p>[...] 2. This is probably a very well thought out solution and easier in terms of operational complexity but requires more work in terms of code. It&#8217;s best read directly at Dick Kusleika&#8217;s blog &#8211; <a href="http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/" rel="nofollow">http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toutes versions Formule matricielle longue et VBA</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/#comment-70627</link>
		<dc:creator>Toutes versions Formule matricielle longue et VBA</dc:creator>
		<pubDate>Thu, 15 Dec 2011 09:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=973#comment-70627</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Kalemkarian</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/#comment-66163</link>
		<dc:creator>Andrew Kalemkarian</dc:creator>
		<pubDate>Tue, 06 Sep 2011 22:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=973#comment-66163</guid>
		<description>&lt;p&gt;For fun, I wrote function to easily use the alternative Named Formula method to insert a long array formula.  It&#039;s convenient (i.e. no need to break apart the formula), but at the end of the day I don&#039;t like this method because the formula does never appears in the formula bar, only the name.&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; LongArrayFormula(objRng &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range, strFormula &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;)&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; strName &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;Create a &quot;unique&quot; name&lt;br&gt;
&lt;/span&gt; &#160; &#160;strName = &lt;span class=&quot;st0&quot;&gt;&quot;LongFormula&quot;&lt;/span&gt; &amp; (10 * Rnd + 1) * Format(Now(), &lt;span class=&quot;st0&quot;&gt;&quot;yyyymmddHhNnSs&quot;&lt;/span&gt;)&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; objRng.Worksheet.Names.Add strName, strFormula &#160;&lt;span class=&quot;co1&quot;&gt;&#039;assumes formula already begins with =&lt;br&gt;
&lt;/span&gt; &#160; &#160;objRng.FormulaArray = &lt;span class=&quot;st0&quot;&gt;&quot;=&quot;&lt;/span&gt; &amp; strName&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>For fun, I wrote function to easily use the alternative Named Formula method to insert a long array formula.  It&#8217;s convenient (i.e. no need to break apart the formula), but at the end of the day I don&#8217;t like this method because the formula does never appears in the formula bar, only the name.</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Public</span> <span class="kw1">Sub</span> LongArrayFormula(objRng <span class="kw1">As</span> Range, strFormula <span class="kw1">As</span> <span class="kw1">String</span>)<br />
&nbsp; &nbsp; <span class="kw1">Dim</span> strName <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="co1">&#8216;Create a &#8220;unique&#8221; name<br />
</span> &nbsp; &nbsp;strName = <span class="st0">&#8220;LongFormula&#8221;</span> &amp; (10 * Rnd + 1) * Format(Now(), <span class="st0">&#8220;yyyymmddHhNnSs&#8221;</span>)<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; objRng.Worksheet.Names.Add strName, strFormula &nbsp;<span class="co1">&#8216;assumes formula already begins with =<br />
</span> &nbsp; &nbsp;objRng.FormulaArray = <span class="st0">&#8220;=&#8221;</span> &amp; strName<br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/#comment-65762</link>
		<dc:creator>Walter</dc:creator>
		<pubDate>Mon, 22 Aug 2011 22:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=973#comment-65762</guid>
		<description>&lt;p&gt;Thanks you Dick for your help, I just saw the error.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks you Dick for your help, I just saw the error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/#comment-65759</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Mon, 22 Aug 2011 22:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=973#comment-65759</guid>
		<description>&lt;p&gt;Walter: If I try to do it manually (after converting to A1 style reference) it errors because there are mismatched parentheses.  I think that may be the problem, but I&#039;m not sure.  Can you record the formula manually and paste it here?  Use code tags so you don&#039;t lose the greater-than signs.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Walter: If I try to do it manually (after converting to A1 style reference) it errors because there are mismatched parentheses.  I think that may be the problem, but I&#8217;m not sure.  Can you record the formula manually and paste it here?  Use code tags so you don&#8217;t lose the greater-than signs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/#comment-65710</link>
		<dc:creator>Walter</dc:creator>
		<pubDate>Sat, 20 Aug 2011 23:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=973#comment-65710</guid>
		<description>&lt;p&gt;Hi everybody,&lt;/p&gt;
&lt;p&gt;I am trying to use the same solution that Dave gave but it is not working for me. The Replace does not do anything. This is the code:&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; LongArrayFormula()&lt;br&gt;
&#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; theFormulaPart1 &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; theFormulaPart2 &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; theFormulaPart1 = &lt;span class=&quot;st0&quot;&gt;&quot;=SUM(IF(FREQUENCY(IF((R4C1:R2000C1&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;)*(R4C2:R2000C2=R10C2)*(R4C4:R2000C4=R7C2)*&quot;&lt;/span&gt; &amp; &lt;span class=&quot;st0&quot;&gt;&quot;X_X_X()&quot;&lt;/span&gt; &amp; &lt;span class=&quot;st0&quot;&gt;&quot;,MATCH(R4C1:R2000C1,R4C1:R2000C1,0)),ROW(INDIRECT(&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;1:&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&amp;ROWS(R4C1:R2000C1))))&gt;0,1,0))&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; theFormulaPart2 = &lt;span class=&quot;st0&quot;&gt;&quot;(IF(R3C4=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;,1,R4C6:R2000C6=R3C4))*(IF(R3C6=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;,1,R4C10:R2000C10=R3C6))*(IF(R3C9=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;,1,R4C5:R2000C5=R3C9))*(IF(R3C12=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;,1,R4C13:R2000C13=R3C12)),MATCH(R4C1:R2000C1,R4C1:R2000C1,0)),ROW(INDIRECT(&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;1:&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&amp;ROWS(R4C1:R2000C1))))&gt;0,1,0))&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt; ActiveSheet.Range(&lt;span class=&quot;st0&quot;&gt;&quot;E2:E2&quot;&lt;/span&gt;)&lt;br&gt;
&#160; &#160; &#160; &#160; .FormulaArray = theFormulaPart1&lt;br&gt;
&#160; &#160; &#160; &#160; .Replace &lt;span class=&quot;st0&quot;&gt;&quot;X_X_X()&quot;&lt;/span&gt;, theFormulaPart2&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I appreciate all your help to resolve this issue.&lt;/p&gt;
&lt;p&gt;Thanks a lot in advance.&lt;/p&gt;
&lt;p&gt;Walter.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi everybody,</p>
<p>I am trying to use the same solution that Dave gave but it is not working for me. The Replace does not do anything. This is the code:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Public</span> <span class="kw1">Sub</span> LongArrayFormula()<br />
&nbsp; <br />
&nbsp; &nbsp; <span class="kw1">Dim</span> theFormulaPart1 <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; &nbsp; <span class="kw1">Dim</span> theFormulaPart2 <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; theFormulaPart1 = <span class="st0">&#8220;=SUM(IF(FREQUENCY(IF((R4C1:R2000C1&#8243;</span><span class="st0">&#8220;&#8221;</span><span class="st0">&#8220;)*(R4C2:R2000C2=R10C2)*(R4C4:R2000C4=R7C2)*&#8221;</span> &amp;amp; <span class="st0">&#8220;X_X_X()&#8221;</span> &amp;amp; <span class="st0">&#8220;,MATCH(R4C1:R2000C1,R4C1:R2000C1,0)),ROW(INDIRECT(&#8220;</span><span class="st0">&#8220;1:&#8221;</span><span class="st0">&#8220;&amp;amp;ROWS(R4C1:R2000C1))))&amp;gt;0,1,0))&#8221;</span><br />
&nbsp; &nbsp; theFormulaPart2 = <span class="st0">&#8220;(IF(R3C4=&#8221;</span><span class="st0">&#8220;&#8221;</span><span class="st0">&#8220;,1,R4C6:R2000C6=R3C4))*(IF(R3C6=&#8221;</span><span class="st0">&#8220;&#8221;</span><span class="st0">&#8220;,1,R4C10:R2000C10=R3C6))*(IF(R3C9=&#8221;</span><span class="st0">&#8220;&#8221;</span><span class="st0">&#8220;,1,R4C5:R2000C5=R3C9))*(IF(R3C12=&#8221;</span><span class="st0">&#8220;&#8221;</span><span class="st0">&#8220;,1,R4C13:R2000C13=R3C12)),MATCH(R4C1:R2000C1,R4C1:R2000C1,0)),ROW(INDIRECT(&#8220;</span><span class="st0">&#8220;1:&#8221;</span><span class="st0">&#8220;&amp;amp;ROWS(R4C1:R2000C1))))&amp;gt;0,1,0))&#8221;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">With</span> ActiveSheet.Range(<span class="st0">&#8220;E2:E2&#8243;</span>)<br />
&nbsp; &nbsp; &nbsp; &nbsp; .FormulaArray = theFormulaPart1<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Replace <span class="st0">&#8220;X_X_X()&#8221;</span>, theFormulaPart2<br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">With</span><br />
&nbsp; &nbsp; <br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
<p>I appreciate all your help to resolve this issue.</p>
<p>Thanks a lot in advance.</p>
<p>Walter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Kalemkarian</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/#comment-55174</link>
		<dc:creator>Andrew Kalemkarian</dc:creator>
		<pubDate>Wed, 01 Dec 2010 00:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=973#comment-55174</guid>
		<description>&lt;p&gt;I&#039;m not entirely sure why, but in implementation I had to add LookAt:=xlPart to my Replace implementation.&lt;/p&gt;
&lt;p&gt;This is not necessary to get the example to work! -- but, it fixed my specific implementation.&lt;/p&gt;
&lt;p&gt;I made my Replace look like this:&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&#160; &#160; &#160; &#160; .Replace &lt;span class=&quot;st0&quot;&gt;&quot;X_X_X())&quot;&lt;/span&gt;, theFormulaPart2, LookAt:=xlPart&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m not entirely sure why, but in implementation I had to add LookAt:=xlPart to my Replace implementation.</p>
<p>This is not necessary to get the example to work! &#8212; but, it fixed my specific implementation.</p>
<p>I made my Replace look like this:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer">&nbsp; &nbsp; &nbsp; &nbsp; .Replace <span class="st0">&#8220;X_X_X())&#8221;</span>, theFormulaPart2, LookAt:=xlPart</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: BeRniTo</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/#comment-51911</link>
		<dc:creator>BeRniTo</dc:creator>
		<pubDate>Wed, 06 Oct 2010 13:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=973#comment-51911</guid>
		<description>&lt;p&gt;Brian, how did you make the replacement happen? It isn&#039;t working for me.&lt;br&gt;
Could you please post a simple example?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Brian, how did you make the replacement happen? It isn&#8217;t working for me.<br />
Could you please post a simple example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/#comment-42385</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=973#comment-42385</guid>
		<description>&lt;p&gt;Ahh I think I see now, your algorithm stores the formula in the name permanently, whereas here I was thinking it was trying to writing it back to the cell.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ahh I think I see now, your algorithm stores the formula in the name permanently, whereas here I was thinking it was trying to writing it back to the cell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/10/entering-long-array-formulas-in-vba/#comment-42384</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=973#comment-42384</guid>
		<description>&lt;p&gt;Thanks for the feedback.  Didn&#039;t find what that error all about, it goes right through the code with no error when I test it now.  It writes the formula string in the Name &quot;refers to&quot; field, which seems correct.&lt;/p&gt;
&lt;p&gt;The only hangup is when I write to the cell with the last statement, what I get is {=LongFormula} in the cell, instead of the formula itself.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback.  Didn&#8217;t find what that error all about, it goes right through the code with no error when I test it now.  It writes the formula string in the Name &#8220;refers to&#8221; field, which seems correct.</p>
<p>The only hangup is when I write to the cell with the last statement, what I get is {=LongFormula} in the cell, instead of the formula itself.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

