<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.office.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx</link><description>Thanks to Jessica Liu for putting together the next few posts on function improvements. In Excel 2010, we made many improvements to Excel's function library. Excel 2010 will feature an accurate and consistent function library while remaining compatible</description><dc:language>en-US</dc:language><generator>Telligent Community 1.5.134.15456 (Build: 5.5.134.15456)</generator><item><title>re: Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx#5071</link><pubDate>Sat, 10 Oct 2009 05:21:25 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5071</guid><dc:creator>joeu2004</dc:creator><description>&lt;p&gt;[Forgive me if this is another duplicate. &amp;nbsp;It will be my last try for now.]&lt;/p&gt;
&lt;p&gt;Has the following Excel 2003 problem been fixed in 2010 (or 2007)?&lt;/p&gt;
&lt;p&gt;INT(123456789 - 0.0000004) returns 123456789 instead of 123456788.&lt;/p&gt;
&lt;p&gt;This causes a problem in formulas like the following: &amp;nbsp;if A1 is =123456789-0.0000004, =A1-INT(A1) is negative unexpectedly, about -4.917E-07 when formatted as General.&lt;/p&gt;
&lt;p&gt;In contrast, INT(123456789 - 0.0000005) returns 123456788 as expected, and myInt(123456789 - 0.0000004) returns 123456788, where myInt() is the following UDF:&lt;/p&gt;
&lt;p&gt;Function myInt(x as Double) as Double&lt;/p&gt;
&lt;p&gt;myInt = Int(x)&lt;/p&gt;
&lt;p&gt;End Function&lt;/p&gt;
&lt;p&gt;Note that 123456789 - 0.0000004 is represented internally as about 123456788.999999,598, whereas 123456789 - 0.0000005 is about 123456788.999999,493 internally. &amp;nbsp;(The comma demarcates the first 15 significant digits.)&lt;/p&gt;
&lt;p&gt;So I suspect that the Excel INT algorithm is effectively, albeit perhaps unintentionally, rounding its argument to 15 significant digits before truncating to an integer. &amp;nbsp;It shouldn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;Indeed, the largest expression involving 123456789 that returns an incorrect INT value is 123456789 - 33*2^-26, which is represented internally as about 123456788.999999,508, whereas 123456789 - 34*2^-26 is about 123456789.999999,493 internally.&lt;/p&gt;
&lt;p&gt;As you might imagine, the problem is not limited to 123456789 and 0.0000004. &amp;nbsp;And the problem will not appear with some combinations that you might think are similar, e.g. 100000000 and 0.0000004.&lt;/p&gt;
&lt;p&gt;You need to look at the exact conversion of the internal binary representation -- that is, beyond the first 15 significant digits -- to determine whether or not to expect a problem. &amp;nbsp;I have VBA code that will help with that, if you need it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5071" width="1" height="1"&gt;</description></item><item><title>re: Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx#5072</link><pubDate>Fri, 09 Oct 2009 10:16:01 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5072</guid><dc:creator>AdamV</dc:creator><description>&lt;p&gt;Really please to see these improvements, and the whitepaper does add some great detail.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://wp.me/p2I5L-44"&gt;http://wp.me/p2I5L-44&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5072" width="1" height="1"&gt;</description></item><item><title>re: Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx#5073</link><pubDate>Wed, 30 Sep 2009 07:32:00 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5073</guid><dc:creator>Doug Jenkins</dc:creator><description>&lt;p&gt;&amp;quot;We did not change VBA&amp;#39;s RND function since that is part of VBA&amp;#39;s math library. All of the other worksheet functions we&amp;#39;ve added are available through VBA.&amp;quot;&lt;/p&gt;
&lt;p&gt;Having the worksheet functions available to VBA is no substitute for implementing native VBA functions to the same standard.&lt;/p&gt;
&lt;p&gt;Well not unless you have also provided a dramatic reduction in the time penalty of using a worksheetfunction call from VBA.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5073" width="1" height="1"&gt;</description></item><item><title>re: Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx#5074</link><pubDate>Thu, 17 Sep 2009 20:46:47 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5074</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;&amp;lt;p&amp;gt;I think it would be great if you could add a function to do a simple linear interpolation, such as in the above link.  &amp;lt;/p&amp;gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5074" width="1" height="1"&gt;</description></item><item><title>re: Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx#5075</link><pubDate>Wed, 16 Sep 2009 18:28:55 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5075</guid><dc:creator>Colin Banfield</dc:creator><description>&lt;p&gt;Well, at least we can use the updated RAND function in VBA through [RAND()]&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5075" width="1" height="1"&gt;</description></item><item><title>re: Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx#5076</link><pubDate>Wed, 16 Sep 2009 17:42:38 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5076</guid><dc:creator>Jessica Liu</dc:creator><description>&lt;p&gt;Colin: We did not change VBA&amp;#39;s RND function since that is part of VBA&amp;#39;s math library. All of the other worksheet functions we&amp;#39;ve added are available through VBA.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5076" width="1" height="1"&gt;</description></item><item><title>re: Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx#5077</link><pubDate>Mon, 14 Sep 2009 19:28:44 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5077</guid><dc:creator>Colin Banfield</dc:creator><description>&lt;p&gt;Jessica, that&amp;#39;s good news. Would there be a similar improvement in the VBA Rnd function?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5077" width="1" height="1"&gt;</description></item><item><title>re: Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx#5078</link><pubDate>Mon, 14 Sep 2009 18:49:43 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5078</guid><dc:creator>Jessica Liu</dc:creator><description>&lt;p&gt;anon &amp;amp; Simon: I will be describing the UI changes we have made to help users distinguish and choose between functions that are similarly named in a future blog post. So stay tuned for that!&lt;/p&gt;
&lt;p&gt;Colin: We are using the Mersenne Twister for RAND.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5078" width="1" height="1"&gt;</description></item><item><title>re: Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx#5079</link><pubDate>Mon, 14 Sep 2009 11:10:37 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5079</guid><dc:creator>Mike Staunton</dc:creator><description>&lt;p&gt;Good news, but long overdue and, without knowing which improved algorithms have been used, it&amp;#39;s impossible to be really happy - for instance, the best application for NormSInv that I know is from Feb 2009&lt;/p&gt;
&lt;p&gt;And will the last of the former ATP functions, that for Fourier transforms, finally get a proper built-in function?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5079" width="1" height="1"&gt;</description></item><item><title>re: Function Improvements in Excel 2010</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/09/10/function-improvements-in-excel-2010.aspx#5080</link><pubDate>Mon, 14 Sep 2009 10:49:04 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5080</guid><dc:creator>Simon Murphy</dc:creator><description>&lt;p&gt;Anon&lt;/p&gt;
&lt;p&gt;I prefer the additional function route rather the workbook flag approach you prefer.&lt;/p&gt;
&lt;p&gt;I think few people check that sort of setting, so its better to be explicit in the face of the worksheet.&lt;/p&gt;
&lt;p&gt;I agree it adds complexity, but that is the trade off for power and flexibility.&lt;/p&gt;
&lt;p&gt;Having a worksheet/book flag would lead to lots of head scratching when two apparently identical functions in 2 worksheets/books give inconsistent results.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5080" width="1" height="1"&gt;</description></item></channel></rss>