<?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: Rounding DATEDIF</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:06:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: AJ</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/#comment-36019</link>
		<dc:creator>AJ</dc:creator>
		<pubDate>Mon, 10 Nov 2008 14:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1186#comment-36019</guid>
		<description>&lt;p&gt;All:&lt;/p&gt;
&lt;p&gt;I stumbled upon this page while I was researching the initial post by DK. Not sure if this is still of help for you, but just so you know - I used the following function, which seems to work fine.&lt;/p&gt;
&lt;p&gt;=(YEAR(B9)-YEAR(A9))*12+(MONTH(B9)-MONTH(A9))&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>All:</p>
<p>I stumbled upon this page while I was researching the initial post by DK. Not sure if this is still of help for you, but just so you know &#8211; I used the following function, which seems to work fine.</p>
<p>=(YEAR(B9)-YEAR(A9))*12+(MONTH(B9)-MONTH(A9))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eve</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/#comment-30076</link>
		<dc:creator>Eve</dc:creator>
		<pubDate>Sat, 26 Jan 2008 00:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1186#comment-30076</guid>
		<description>&lt;p&gt;I was looking for a solution to calculate # of months between 2 dates and run into this posting.  Since I don&#039;t have the DatedIF function, I use the following workaround and it seems to work well:&lt;br&gt;
=ROUND((EOMONTH(E21,0)-EOMONTH(D21,0))/30,0)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I was looking for a solution to calculate # of months between 2 dates and run into this posting.  Since I don&#8217;t have the DatedIF function, I use the following workaround and it seems to work well:<br />
=ROUND((EOMONTH(E21,0)-EOMONTH(D21,0))/30,0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/#comment-15705</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Sun, 14 Aug 2005 05:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1186#comment-15705</guid>
		<description>&lt;p&gt;I needed to calculate amoritization counting every month as a whole month regardless of the date of the month the transcation begins and ends. Brets post sounded the most promising.&lt;br&gt;
=DATEDIF(EOMONTH(I656,0),EOMONTH(J656,0),îmî)+IF(AND(EOMONTH(I656,0)=EOMONTH(J656,0),DATEDIF(I656,J656,îdî)&gt;0),1,0)&lt;/p&gt;
&lt;p&gt;I subsitiute a cell reference for the date - ie EOMONTH(g20,0)as above. Don&#039;t see any use for the IF statement added to the end.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I needed to calculate amoritization counting every month as a whole month regardless of the date of the month the transcation begins and ends. Brets post sounded the most promising.<br />
=DATEDIF(EOMONTH(I656,0),EOMONTH(J656,0),îmî)+IF(AND(EOMONTH(I656,0)=EOMONTH(J656,0),DATEDIF(I656,J656,îdî)&gt;0),1,0)</p>
<p>I subsitiute a cell reference for the date &#8211; ie EOMONTH(g20,0)as above. Don&#8217;t see any use for the IF statement added to the end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helen</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/#comment-15515</link>
		<dc:creator>Helen</dc:creator>
		<pubDate>Mon, 11 Jul 2005 13:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1186#comment-15515</guid>
		<description>&lt;p&gt;Ignore my post above, I need more sleep. And this blog needs an &quot;edit my comment&quot; feature! :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ignore my post above, I need more sleep. And this blog needs an &#8220;edit my comment&#8221; feature! <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helen</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/#comment-15514</link>
		<dc:creator>Helen</dc:creator>
		<pubDate>Mon, 11 Jul 2005 13:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1186#comment-15514</guid>
		<description>&lt;p&gt;Maybe I&#039;m missing some complication here, but why not just change the &quot;equals&quot; sign in your original formula to &quot;less than or equal to&quot;?&lt;br&gt;
=DATEDIF(A1,B1,&quot;m&quot;)+IF(DAY(A1)&lt;=DAY(B1),0,1)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Maybe I&#8217;m missing some complication here, but why not just change the &#8220;equals&#8221; sign in your original formula to &#8220;less than or equal to&#8221;?<br />
=DATEDIF(A1,B1,&#8221;m&#8221;)+IF(DAY(A1)&lt;=DAY(B1),0,1)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jazzer</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/#comment-14453</link>
		<dc:creator>Jazzer</dc:creator>
		<pubDate>Fri, 08 Jul 2005 08:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1186#comment-14453</guid>
		<description>&lt;p&gt;ok, &quot;not equal&quot; sign didn&#039;t display. So here it is replaced with NEQ&lt;/p&gt;
&lt;p&gt;=DATEDIF(0,B1,&quot;m&quot;)-DATEDIF(0,A1,&quot;m&quot;)+(DAY(A1) NEQ DAY(B1))-(MONTH(DATE(YEAR(A1),MONTH(A1),DAY(A1)+1)) NEQ MONTH(A1))&lt;/p&gt;
&lt;p&gt;- Asser&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>ok, &#8220;not equal&#8221; sign didn&#8217;t display. So here it is replaced with NEQ</p>
<p>=DATEDIF(0,B1,&#8221;m&#8221;)-DATEDIF(0,A1,&#8221;m&#8221;)+(DAY(A1) NEQ DAY(B1))-(MONTH(DATE(YEAR(A1),MONTH(A1),DAY(A1)+1)) NEQ MONTH(A1))</p>
<p>- Asser</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jazzer</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/#comment-14452</link>
		<dc:creator>Jazzer</dc:creator>
		<pubDate>Fri, 08 Jul 2005 08:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1186#comment-14452</guid>
		<description>&lt;p&gt;Hi Dick,&lt;/p&gt;
&lt;p&gt;  This worked for my test material. Not sure if I understood the problem corretly though:&lt;/p&gt;
&lt;p&gt;=DATEDIF(0,B1,&quot;m&quot;)-DATEDIF(0,A1,&quot;m&quot;)+(DAY(A1)DAY(B1))-(MONTH(DATE(YEAR(A1),MONTH(A1),DAY(A1)+1))MONTH(A1))&lt;/p&gt;
&lt;p&gt;- Asser&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dick,</p>
<p>  This worked for my test material. Not sure if I understood the problem corretly though:</p>
<p>=DATEDIF(0,B1,&#8221;m&#8221;)-DATEDIF(0,A1,&#8221;m&#8221;)+(DAY(A1)DAY(B1))-(MONTH(DATE(YEAR(A1),MONTH(A1),DAY(A1)+1))MONTH(A1))</p>
<p>- Asser</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/#comment-14451</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 08 Jul 2005 06:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1186#comment-14451</guid>
		<description>&lt;p&gt;Instead of EOMONTH, use&lt;/p&gt;
&lt;p&gt;DATE(YEAR(a1),MONTH(a1)+1,0)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Instead of EOMONTH, use</p>
<p>DATE(YEAR(a1),MONTH(a1)+1,0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DA</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/#comment-14449</link>
		<dc:creator>DA</dc:creator>
		<pubDate>Fri, 08 Jul 2005 01:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1186#comment-14449</guid>
		<description>&lt;p&gt;DK:&lt;/p&gt;
&lt;p&gt;As a non-tech guy, I cannot understand why you would want to calculate these dates.  I guess I&#039;ll just observe the commentary to determine whether an adequate formula exists for this calculation.&lt;/p&gt;
&lt;p&gt;DA&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>DK:</p>
<p>As a non-tech guy, I cannot understand why you would want to calculate these dates.  I guess I&#8217;ll just observe the commentary to determine whether an adequate formula exists for this calculation.</p>
<p>DA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/07/rounding-datedif/#comment-14448</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Thu, 07 Jul 2005 23:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1186#comment-14448</guid>
		<description>&lt;p&gt;Brett:  I can&#039;t be sure end user has the &lt;a href=&quot;http://www.dicks-blog.com/archives/2004/08/25/the-analysis-toolpack/&quot; rel=&quot;nofollow&quot;&gt;ATP&lt;/a&gt; so EOMONTH is out.&lt;/p&gt;
&lt;p&gt;Frank:  Okay as long as they are in the same year, but that&#039;s not the case for any of the data I was working with.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Brett:  I can&#8217;t be sure end user has the <a href="http://www.dicks-blog.com/archives/2004/08/25/the-analysis-toolpack/" rel="nofollow">ATP</a> so EOMONTH is out.</p>
<p>Frank:  Okay as long as they are in the same year, but that&#8217;s not the case for any of the data I was working with.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

