<?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: Euler Problem 19</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2008/12/30/euler-problem-19/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2008/12/30/euler-problem-19/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Hans Schraven</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/12/30/euler-problem-19/#comment-36795</link>
		<dc:creator>Hans Schraven</dc:creator>
		<pubDate>Fri, 02 Jan 2009 23:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1928#comment-36795</guid>
		<description>&lt;p&gt;What about:&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;For&lt;/span&gt; j = 0 &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; 1200&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; Format(DateAdd(&lt;span class=&quot;st0&quot;&gt;&quot;m&quot;&lt;/span&gt;, j, &lt;span class=&quot;st0&quot;&gt;&quot;01-01-1900&quot;&lt;/span&gt;), &lt;span class=&quot;st0&quot;&gt;&quot;w&quot;&lt;/span&gt;) = 1 &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt; x = x + 1&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>What about:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">For</span> j = 0 <span class="kw1">To</span> 1200<br />
&nbsp; <span class="kw1">If</span> Format(DateAdd(<span class="st0">&#8220;m&#8221;</span>, j, <span class="st0">&#8220;01-01-1900&#8243;</span>), <span class="st0">&#8220;w&#8221;</span>) = 1 <span class="kw1">Then</span> x = x + 1<br />
<span class="kw1">Next</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Route 55 (and Route 19) « Grumpy Old Programmer</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/12/30/euler-problem-19/#comment-36792</link>
		<dc:creator>Route 55 (and Route 19) « Grumpy Old Programmer</dc:creator>
		<pubDate>Fri, 02 Jan 2009 21:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1928#comment-36792</guid>
		<description>&lt;p&gt;[...] the other hand, VBA has the edge on problem 19. I spotted a little optimisation in Michael&#039;s code, which gave me this in VBA, which is about 20 times faster at 0.0019 seconds than the [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] the other hand, VBA has the edge on problem 19. I spotted a little optimisation in Michael&#8217;s code, which gave me this in VBA, which is about 20 times faster at 0.0019 seconds than the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/12/30/euler-problem-19/#comment-36789</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 02 Jan 2009 18:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1928#comment-36789</guid>
		<description>&lt;p&gt;Tushar -&lt;/p&gt;
&lt;p&gt;Do you have a link on your website to your large arithmetic functions?&lt;/p&gt;
&lt;p&gt;Happy New Year!&lt;/p&gt;
&lt;p&gt;...mrt&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Tushar -</p>
<p>Do you have a link on your website to your large arithmetic functions?</p>
<p>Happy New Year!</p>
<p>&#8230;mrt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Woodhouse</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/12/30/euler-problem-19/#comment-36786</link>
		<dc:creator>Mike Woodhouse</dc:creator>
		<pubDate>Fri, 02 Jan 2009 12:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1928#comment-36786</guid>
		<description>&lt;p&gt;The code as written is examining an awful lot of irrelevant dates, since we only want the first of each month. Changing the loop to &lt;/p&gt;
&lt;p&gt;      If Weekday(Start) = vbSunday Then&lt;br&gt;
         Answer = Answer + 1&lt;br&gt;
      End If&lt;br&gt;
      Start = DateSerial(Year(Start), Month(Start) + 1, 1)&lt;/p&gt;
&lt;p&gt;is about 20 times faster on my machine (0.001875 vs 0.035625). Not 30-odd, I imagine, because the DateSerial business is more expensive than incrementing.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The code as written is examining an awful lot of irrelevant dates, since we only want the first of each month. Changing the loop to </p>
<p>      If Weekday(Start) = vbSunday Then<br />
         Answer = Answer + 1<br />
      End If<br />
      Start = DateSerial(Year(Start), Month(Start) + 1, 1)</p>
<p>is about 20 times faster on my machine (0.001875 vs 0.035625). Not 30-odd, I imagine, because the DateSerial business is more expensive than incrementing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tushar Mehta</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/12/30/euler-problem-19/#comment-36774</link>
		<dc:creator>Tushar Mehta</dc:creator>
		<pubDate>Fri, 02 Jan 2009 00:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1928#comment-36774</guid>
		<description>&lt;p&gt;Or, use the Excel formula =SUMPRODUCT((WEEKDAY(DATE(1901,ROW(INDIRECT(&quot;1:1200?)),1))=1))  See &lt;a href=&quot;http://www.tushar-mehta.com/misc_tutorials/project_euler/euler019.html&quot; rel=&quot;nofollow&quot;&gt;http://www.tushar-mehta.com/misc_tutorials/project_euler/euler019.html&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Or, use the Excel formula =SUMPRODUCT((WEEKDAY(DATE(1901,ROW(INDIRECT(&#8220;1:1200?)),1))=1))  See <a href="http://www.tushar-mehta.com/misc_tutorials/project_euler/euler019.html" rel="nofollow">http://www.tushar-mehta.com/misc_tutorials/project_euler/euler019.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

