<?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: Which Numbers Sum to Target</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Mon, 06 Feb 2012 18:39:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Santosh</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/#comment-71996</link>
		<dc:creator>Santosh</dc:creator>
		<pubDate>Wed, 11 Jan 2012 06:41:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1271#comment-71996</guid>
		<description>It is not giving accurate answer by Benzadeus as Recursion worked.</description>
		<content:encoded><![CDATA[<p>It is not giving accurate answer by Benzadeus as Recursion worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: benzadeus</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/#comment-67837</link>
		<dc:creator>benzadeus</dc:creator>
		<pubDate>Mon, 07 Nov 2011 17:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1271#comment-67837</guid>
		<description>&lt;p&gt;Using recursion, I created a code my own in portuguese-br version: &lt;a href=&quot;http://www.ambienteoffice.com.br/officevba/atingir_meta_de_soma/&quot; rel=&quot;nofollow&quot;&gt;http://www.ambienteoffice.com.br/officevba/atingir_meta_de_soma/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is easy to follow the sample workbook, even if you don&#039;t know portuguese: &lt;a href=&quot;http://www.ambienteoffice.com.br/officevba/atingir_meta_de_soma/exemplo.rar&quot; rel=&quot;nofollow&quot;&gt;http://www.ambienteoffice.com.br/officevba/atingir_meta_de_soma/exemplo.rar&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Using recursion, I created a code my own in portuguese-br version: <a href="http://www.ambienteoffice.com.br/officevba/atingir_meta_de_soma/" rel="nofollow">http://www.ambienteoffice.com.br/officevba/atingir_meta_de_soma/</a></p>
<p>It is easy to follow the sample workbook, even if you don&#8217;t know portuguese: <a href="http://www.ambienteoffice.com.br/officevba/atingir_meta_de_soma/exemplo.rar" rel="nofollow">http://www.ambienteoffice.com.br/officevba/atingir_meta_de_soma/exemplo.rar</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 0alex0</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/#comment-64212</link>
		<dc:creator>0alex0</dc:creator>
		<pubDate>Sun, 29 May 2011 17:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1271#comment-64212</guid>
		<description>&lt;p&gt;Thanks a lot; I just needed this macro for a otherwise seemingly unsolvable problem.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br&gt;
0alex0&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks a lot; I just needed this macro for a otherwise seemingly unsolvable problem.</p>
<p>Kind regards,<br />
0alex0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PK</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/#comment-63523</link>
		<dc:creator>PK</dc:creator>
		<pubDate>Fri, 13 May 2011 06:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1271#comment-63523</guid>
		<description>&lt;p&gt;FYI to future readers&lt;/p&gt;
&lt;p&gt;In response to Camilla&#039;s post the number records that can be processed can be increased by changing the length of the variables. &lt;/p&gt;
&lt;p&gt;i.e.&lt;/p&gt;
&lt;p&gt;instead of:&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;Global stat(30) &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Integer&lt;/span&gt;&lt;br&gt;
Global statb(30) &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Double&lt;/span&gt;&lt;br&gt;
Global elems(30) &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Double&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;use:&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;Global stat(60) &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Integer&lt;/span&gt;&lt;br&gt;
Global statb(60) &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Double&lt;/span&gt;&lt;br&gt;
Global elems(60) &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Double&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;this will allow you to use up to 60 values in the equation.&lt;/p&gt;
&lt;p&gt;NOTE: using this many values will SIGNIFICANTLY increase the time taken to calculate!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>FYI to future readers</p>
<p>In response to Camilla&#8217;s post the number records that can be processed can be increased by changing the length of the variables. </p>
<p>i.e.</p>
<p>instead of:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer">Global stat(30) <span class="kw1">AS</span> <span class="kw1">Integer</span><br />
Global statb(30) <span class="kw1">AS</span> <span class="kw1">Double</span><br />
Global elems(30) <span class="kw1">As</span> <span class="kw1">Double</span></div>
</div>
<p>use:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer">Global stat(60) <span class="kw1">AS</span> <span class="kw1">Integer</span><br />
Global statb(60) <span class="kw1">AS</span> <span class="kw1">Double</span><br />
Global elems(60) <span class="kw1">As</span> <span class="kw1">Double</span></div>
</div>
<p>this will allow you to use up to 60 values in the equation.</p>
<p>NOTE: using this many values will SIGNIFICANTLY increase the time taken to calculate!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Camilla</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/#comment-55312</link>
		<dc:creator>Camilla</dc:creator>
		<pubDate>Thu, 02 Dec 2010 22:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1271#comment-55312</guid>
		<description>&lt;p&gt;HELP PLEASE :)&lt;/p&gt;
&lt;p&gt;I get an error when my list of numbers exceed 30.  The list i&#039;m trying to work from has 700 numbers in the list.  Has anyone been sucessful using this with a large range?  &lt;/p&gt;
&lt;p&gt;The error i get is below:&lt;br&gt;
    elems(i) = Cells(i + 2, 2)&lt;/p&gt;
&lt;p&gt;any help would be greatly appreciated!&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>HELP PLEASE <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I get an error when my list of numbers exceed 30.  The list i&#8217;m trying to work from has 700 numbers in the list.  Has anyone been sucessful using this with a large range?  </p>
<p>The error i get is below:<br />
    elems(i) = Cells(i + 2, 2)</p>
<p>any help would be greatly appreciated!</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dermotb</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/#comment-54662</link>
		<dc:creator>dermotb</dc:creator>
		<pubDate>Thu, 25 Nov 2010 07:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1271#comment-54662</guid>
		<description>&lt;p&gt;I think I have a faster solution in cases where you want to limit the number of items in the total, or the total number of possible solutions. It uses a couple of computer chess tricks (like pre-storing a large number of combinations). For example, given a target figure, I can find&lt;br&gt;
* 8 items out of 60 items, in 20 seconds&lt;br&gt;
* 5 items out of 200 items, in under a minute &lt;/p&gt;
&lt;p&gt;Obviously, it gets much slower for more items, or where there are many possible solutions, but it should be pretty effective for business solutions.&lt;/p&gt;
&lt;p&gt;It can definitely be made more efficient, and it hasn&#039;t been independently checked, because I did it just for fun, so I haven&#039;t fine tuned it, but I&#039;m happy to share it.&lt;/p&gt;
&lt;p&gt;Write to me at dermot dot balson at gmail dot com if you&#039;d like a copy&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I think I have a faster solution in cases where you want to limit the number of items in the total, or the total number of possible solutions. It uses a couple of computer chess tricks (like pre-storing a large number of combinations). For example, given a target figure, I can find<br />
* 8 items out of 60 items, in 20 seconds<br />
* 5 items out of 200 items, in under a minute </p>
<p>Obviously, it gets much slower for more items, or where there are many possible solutions, but it should be pretty effective for business solutions.</p>
<p>It can definitely be made more efficient, and it hasn&#8217;t been independently checked, because I did it just for fun, so I haven&#8217;t fine tuned it, but I&#8217;m happy to share it.</p>
<p>Write to me at dermot dot balson at gmail dot com if you&#8217;d like a copy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/#comment-54027</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 12 Nov 2010 17:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1271#comment-54027</guid>
		<description>&lt;p&gt;This is great &amp; I have used it on some smaller ranges, however on bigger ranges the number of possible combinations is extremly large &amp; can be very slow. &lt;/p&gt;
&lt;p&gt;For example I may have 200 numbers, but the figure I am looking for is probably made up of a combination of just 5 or fewer of these.  How can I get the code just to look at these smaller combinations? &lt;/p&gt;
&lt;p&gt;This way I can do a quicker check &amp; if nothing is found, re-run for 10 number combinations, 15 etc, until I find the result.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is great &amp; I have used it on some smaller ranges, however on bigger ranges the number of possible combinations is extremly large &amp; can be very slow. </p>
<p>For example I may have 200 numbers, but the figure I am looking for is probably made up of a combination of just 5 or fewer of these.  How can I get the code just to look at these smaller combinations? </p>
<p>This way I can do a quicker check &amp; if nothing is found, re-run for 10 number combinations, 15 etc, until I find the result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rebecca</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/#comment-52877</link>
		<dc:creator>Rebecca</dc:creator>
		<pubDate>Tue, 19 Oct 2010 23:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1271#comment-52877</guid>
		<description>&lt;p&gt;THANK YOU SO MUCH! This was an enormous time-saver for me.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>THANK YOU SO MUCH! This was an enormous time-saver for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David J</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/#comment-43545</link>
		<dc:creator>David J</dc:creator>
		<pubDate>Wed, 27 Jan 2010 16:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1271#comment-43545</guid>
		<description>&lt;p&gt;Just downloaded Recursion1.zip and it works perfectly! It&#039;s a little slow with 30 to 40 combinations but all told it&#039;s a life saver. I don&#039;t know about the rest of you but I will be using this when I reconcile my credit card deposits in QuickBooks Pro. For the last 2 years I&#039;ve cussed QB for not having this built in. THANKS!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Just downloaded Recursion1.zip and it works perfectly! It&#8217;s a little slow with 30 to 40 combinations but all told it&#8217;s a life saver. I don&#8217;t know about the rest of you but I will be using this when I reconcile my credit card deposits in QuickBooks Pro. For the last 2 years I&#8217;ve cussed QB for not having this built in. THANKS!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe B</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/#comment-43378</link>
		<dc:creator>Joe B</dc:creator>
		<pubDate>Fri, 15 Jan 2010 23:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1271#comment-43378</guid>
		<description>&lt;p&gt;1000 points to you.&lt;br&gt;
I was presented the problem,&lt;br&gt;
tried to solve it myself,&lt;br&gt;
realized it would be difficult to code, (for me, at least)&lt;br&gt;
found the name of the problem,&lt;br&gt;
searched google,&lt;br&gt;
and found you had already created the solver for me!&lt;/p&gt;
&lt;p&gt;I&#039;m thrilled, Thanks.&lt;/p&gt;
&lt;p&gt;~Joe&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>1000 points to you.<br />
I was presented the problem,<br />
tried to solve it myself,<br />
realized it would be difficult to code, (for me, at least)<br />
found the name of the problem,<br />
searched google,<br />
and found you had already created the solver for me!</p>
<p>I&#8217;m thrilled, Thanks.</p>
<p>~Joe</p>
]]></content:encoded>
	</item>
</channel>
</rss>

