<?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: Count Unique Days</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:28:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Javier</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/#comment-61242</link>
		<dc:creator>Javier</dc:creator>
		<pubDate>Fri, 18 Mar 2011 20:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=540#comment-61242</guid>
		<description>&lt;p&gt;Hi, I was trying to use this formula to count unique days but I was not able. Could you please help me?&lt;br&gt;
I have a column  F6 to F36 with short date and I have the following dates long the column: 3/10, 3/11, 3/12, 3/13. I would like to count how many unique days I have. I tried the above formula but I got the &quot;#VALUE!&quot;.. Any idea?&lt;br&gt;
Thanks in advance!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, I was trying to use this formula to count unique days but I was not able. Could you please help me?<br />
I have a column  F6 to F36 with short date and I have the following dates long the column: 3/10, 3/11, 3/12, 3/13. I would like to count how many unique days I have. I tried the above formula but I got the &#8220;#VALUE!&#8221;.. Any idea?<br />
Thanks in advance!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shailesh bura</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/#comment-56161</link>
		<dc:creator>shailesh bura</dc:creator>
		<pubDate>Thu, 23 Dec 2010 10:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=540#comment-56161</guid>
		<description>&lt;p&gt;The above function not working...&lt;br&gt;
=SUM(IF(LEN(I7:I46),1/(COUNTIF(I7:I46,&quot;&lt;&quot;&amp;INT(I7:I46)+1)-COUNTIF(I7:I46,&quot;&lt;&quot;&amp;INT(I7:I46)))))&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The above function not working&#8230;<br />
=SUM(IF(LEN(I7:I46),1/(COUNTIF(I7:I46,&#8221;&lt;&#8221;&amp;INT(I7:I46)+1)-COUNTIF(I7:I46,&#8221;&lt;&#8221;&amp;INT(I7:I46)))))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/#comment-42072</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Fri, 13 Nov 2009 01:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=540#comment-42072</guid>
		<description>&lt;p&gt;Matthew:  Make sure you&#039;re entering with Control+Shift+Enter as it is an array formula.  If you are, then format all of your dates as &#039;General&#039;.  This will make them look like numbers and any text you have in the list will stand out (because it will still look like a date).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Matthew:  Make sure you&#8217;re entering with Control+Shift+Enter as it is an array formula.  If you are, then format all of your dates as &#8216;General&#8217;.  This will make them look like numbers and any text you have in the list will stand out (because it will still look like a date).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Brent</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/#comment-42065</link>
		<dc:creator>Matthew Brent</dc:creator>
		<pubDate>Thu, 12 Nov 2009 16:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=540#comment-42065</guid>
		<description>&lt;p&gt;I used Dick&#039;s original formula that started this thread and received the following error:&lt;/p&gt;
&lt;p&gt;A value used in the formula is of the wrong data type set.&lt;/p&gt;
&lt;p&gt;When I show the calculate steps used in evaluating the formula, it indicates that the range of data I selected will result in an error.&lt;/p&gt;
&lt;p&gt;I formatted the entire range of cells as &#039;Date&#039; &gt;  &#039;3/14/01 13:30&#039; to match the example, but the error is still returned.&lt;/p&gt;
&lt;p&gt;I simply replaced the example range with my range.&lt;br&gt;
Here is the exact formula text:&lt;br&gt;
=SUM(IF(LEN(I7:I46),1/(COUNTIF(I7:I46,&quot;&lt;&quot;&amp;INT(I7:I46)+1)-COUNTIF(I7:I46,&quot;&lt;&quot;&amp;INT(I7:I46)))))&lt;/p&gt;
&lt;p&gt;Am I missing a step?  Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I used Dick&#8217;s original formula that started this thread and received the following error:</p>
<p>A value used in the formula is of the wrong data type set.</p>
<p>When I show the calculate steps used in evaluating the formula, it indicates that the range of data I selected will result in an error.</p>
<p>I formatted the entire range of cells as &#8216;Date&#8217; &gt;  &#8217;3/14/01 13:30&#8242; to match the example, but the error is still returned.</p>
<p>I simply replaced the example range with my range.<br />
Here is the exact formula text:<br />
=SUM(IF(LEN(I7:I46),1/(COUNTIF(I7:I46,&#8221;&lt;&#8221;&amp;INT(I7:I46)+1)-COUNTIF(I7:I46,&#8221;&lt;&#8221;&amp;INT(I7:I46)))))</p>
<p>Am I missing a step?  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/#comment-33492</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 09 Jul 2008 15:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=540#comment-33492</guid>
		<description>&lt;p&gt;Matt,&lt;/p&gt;
&lt;p&gt;Converting to a Long with CLng rounds decimals.  Since the time portion of the date value is a decimal, you can easily end up with different dates being counted as the same (4pm of one day is the same as 4am the next day after rounding).&lt;/p&gt;
&lt;p&gt;To fix it, use Int to truncate the decimal instead:&lt;/p&gt;
&lt;p&gt;If IsDate(rCell.Value) Then&lt;br&gt;
  cDays.Add rCell.Value, CStr(Int(rCell.Value))&lt;br&gt;
End If&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Matt,</p>
<p>Converting to a Long with CLng rounds decimals.  Since the time portion of the date value is a decimal, you can easily end up with different dates being counted as the same (4pm of one day is the same as 4am the next day after rounding).</p>
<p>To fix it, use Int to truncate the decimal instead:</p>
<p>If IsDate(rCell.Value) Then<br />
  cDays.Add rCell.Value, CStr(Int(rCell.Value))<br />
End If</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heles Eugene</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/#comment-31433</link>
		<dc:creator>Heles Eugene</dc:creator>
		<pubDate>Sun, 23 Mar 2008 11:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=540#comment-31433</guid>
		<description>&lt;p&gt;hi this is not a comment it looks more as a question:-)&lt;br&gt;
SUMPRODUCT((WEEKDAY(ROW(INDIRECT($A$3&amp;&quot;:&quot;&amp;$B$2))=D7))*((DAY(ROW(INDIRECT($A$3&amp;&quot;:&quot;&amp;$B$2)))=13))&lt;br&gt;
for Excel guru&#039;s the know already for what I&#039;m looking for;right the number of weekdays(D7)&amp;the 13th&lt;br&gt;
my result =0&lt;br&gt;
plrese help me&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>hi this is not a comment it looks more as a question:-)<br />
SUMPRODUCT((WEEKDAY(ROW(INDIRECT($A$3&amp;&#8221;:&#8221;&amp;$B$2))=D7))*((DAY(ROW(INDIRECT($A$3&amp;&#8221;:&#8221;&amp;$B$2)))=13))<br />
for Excel guru&#8217;s the know already for what I&#8217;m looking for;right the number of weekdays(D7)&amp;the 13th<br />
my result =0<br />
plrese help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alok</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/#comment-15759</link>
		<dc:creator>alok</dc:creator>
		<pubDate>Sat, 20 Aug 2005 19:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=540#comment-15759</guid>
		<description>&lt;p&gt;i want to know about the basics of macro programming in excel.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>i want to know about the basics of macro programming in excel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tbone</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/#comment-1504</link>
		<dc:creator>tbone</dc:creator>
		<pubDate>Tue, 27 Jul 2004 14:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=540#comment-1504</guid>
		<description>&lt;p&gt;why not use an advanced filter, with unique=true?&lt;/p&gt;
&lt;p&gt;then count that?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>why not use an advanced filter, with unique=true?</p>
<p>then count that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koos</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/#comment-1503</link>
		<dc:creator>Koos</dc:creator>
		<pubDate>Thu, 24 Jun 2004 11:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=540#comment-1503</guid>
		<description>&lt;p&gt;Do you have any suggestions as to expanding this functions with a condition?&lt;/p&gt;
&lt;p&gt;I am trying to count unique values/dates per period, where I have the dates in one column and the periods(numeric representation of the month) in another column (if I can discard this latter column that would be even better).&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Koos&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Do you have any suggestions as to expanding this functions with a condition?</p>
<p>I am trying to count unique values/dates per period, where I have the dates in one column and the periods(numeric representation of the month) in another column (if I can discard this latter column that would be even better).</p>
<p>Thanks in advance,</p>
<p>Koos</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/13/count-unique-days/#comment-1502</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Fri, 14 May 2004 15:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=540#comment-1502</guid>
		<description>&lt;p&gt;&quot;The collection object might be a good topic for a future post!&quot;&lt;/p&gt;
&lt;p&gt;Geez, why didn&#039;t I think of that.  Thanks, Matt.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;The collection object might be a good topic for a future post!&#8221;</p>
<p>Geez, why didn&#8217;t I think of that.  Thanks, Matt.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

