<?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: Most Frequent Occurence</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Bob Phillips</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/#comment-47467</link>
		<dc:creator>Bob Phillips</dc:creator>
		<pubDate>Wed, 30 Jun 2010 12:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3935#comment-47467</guid>
		<description>&lt;p&gt;A tabulated result using Ihm&#039;s formula&lt;/p&gt;
&lt;p&gt;D2: =A2-DAY(A2)+1&lt;br&gt;
D3: =IF(ISERROR(MATCH(0,COUNTIF(D$2:D2,($A$2:$A$20-DAY($A$2:$A$20)+1)&amp;&quot;&quot;),0)),&quot;&quot;,&lt;br&gt;
INDEX(IF(ISBLANK($A$2:$A$20),&quot;&quot;,$A$2:$A$20-DAY($A$2:$A$20)+1),MATCH(0,COUNTIF(D$2:D2,($A$2:$A$20-DAY($A$2:$A$20)+1)&amp;&quot;&quot;),0)))&lt;/p&gt;
&lt;p&gt;D3 is an array formula, copy down as far as you need&lt;/p&gt;
&lt;p&gt;E2: =INDEX(Driver,MODE(IF(date-DAY(date)+1=D2,MATCH(Driver,Driver,0))))&lt;/p&gt;
&lt;p&gt;also an array formula, copy down as far as Column D goes&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>A tabulated result using Ihm&#8217;s formula</p>
<p>D2: =A2-DAY(A2)+1<br />
D3: =IF(ISERROR(MATCH(0,COUNTIF(D$2:D2,($A$2:$A$20-DAY($A$2:$A$20)+1)&amp;&#8221;"),0)),&#8221;",<br />
INDEX(IF(ISBLANK($A$2:$A$20),&#8221;",$A$2:$A$20-DAY($A$2:$A$20)+1),MATCH(0,COUNTIF(D$2:D2,($A$2:$A$20-DAY($A$2:$A$20)+1)&amp;&#8221;"),0)))</p>
<p>D3 is an array formula, copy down as far as you need</p>
<p>E2: =INDEX(Driver,MODE(IF(date-DAY(date)+1=D2,MATCH(Driver,Driver,0))))</p>
<p>also an array formula, copy down as far as Column D goes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/#comment-47383</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 28 Jun 2010 02:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3935#comment-47383</guid>
		<description>&lt;p&gt;The Duplicate Master addin will also do this, , &lt;a href=&quot;http://www.experts-exchange.com/A_2123.html&quot; rel=&quot;nofollow&quot;&gt;http://www.experts-exchange.com/A_2123.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Normally I&#039;d also use a PivotTable, but if case sensitivity, white spaces, or mis-spelt strings need matching then the addin provides flexibility to cater for this&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The Duplicate Master addin will also do this, , <a href="http://www.experts-exchange.com/A_2123.html" rel="nofollow">http://www.experts-exchange.com/A_2123.html</a></p>
<p>Normally I&#8217;d also use a PivotTable, but if case sensitivity, white spaces, or mis-spelt strings need matching then the addin provides flexibility to cater for this</p>
<p>Cheers</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lhm</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/#comment-47368</link>
		<dc:creator>lhm</dc:creator>
		<pubDate>Sat, 26 Jun 2010 18:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3935#comment-47368</guid>
		<description>&lt;p&gt;Pivot is probably better here, but perhaps also try with ctrl+shift+enter:&lt;/p&gt;
&lt;p&gt;=INDEX(Driver,MODE(IF(TEXT(Date,&quot;yyyy-mm-1&quot;)=D2,MATCH(Driver,Driver,0))))&lt;/p&gt;
&lt;p&gt;where D2=month (eg May-08), Date=a2:a13, Driver=b2:b13.&lt;br&gt;
The new MODE.MULT function could be put to use for the multiple driver case maybe?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Pivot is probably better here, but perhaps also try with ctrl+shift+enter:</p>
<p>=INDEX(Driver,MODE(IF(TEXT(Date,&#8221;yyyy-mm-1&#8243;)=D2,MATCH(Driver,Driver,0))))</p>
<p>where D2=month (eg May-08), Date=a2:a13, Driver=b2:b13.<br />
The new MODE.MULT function could be put to use for the multiple driver case maybe?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/#comment-47358</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Sat, 26 Jun 2010 09:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3935#comment-47358</guid>
		<description>&lt;p&gt;@Dick&lt;br&gt;
Wrong pivot Layout.....&lt;br&gt;
See this&lt;br&gt;
&lt;a href=&quot;http://tinypic.com/r/23h4lyw/6&quot; rel=&quot;nofollow&quot;&gt;http://tinypic.com/r/23h4lyw/6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The Top 1 will then work correctly&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Dick<br />
Wrong pivot Layout&#8230;..<br />
See this<br />
<a href="http://tinypic.com/r/23h4lyw/6" rel="nofollow">http://tinypic.com/r/23h4lyw/6</a></p>
<p>The Top 1 will then work correctly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris U</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/#comment-47352</link>
		<dc:creator>Chris U</dc:creator>
		<pubDate>Fri, 25 Jun 2010 23:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3935#comment-47352</guid>
		<description>&lt;p&gt;I should add that I know that one problem with my solution above is that if more than one item has the max value, it will only return the first one it finds in the summary table for each month.  (so, the first name in the list).  for instance, the 3rd month gave Mike&#039;s name even though he had zero.&lt;/p&gt;
&lt;p&gt;But that was not listed as part of the question.  It seems that it would take VBA and multiple cells to pull off multiple max&#039;s.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I should add that I know that one problem with my solution above is that if more than one item has the max value, it will only return the first one it finds in the summary table for each month.  (so, the first name in the list).  for instance, the 3rd month gave Mike&#8217;s name even though he had zero.</p>
<p>But that was not listed as part of the question.  It seems that it would take VBA and multiple cells to pull off multiple max&#8217;s.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EJ</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/#comment-47349</link>
		<dc:creator>EJ</dc:creator>
		<pubDate>Fri, 25 Jun 2010 21:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3935#comment-47349</guid>
		<description>&lt;p&gt;This was the fastest way I could do it using just workbook functions (trying to avoid the pivot table).  This gets the job done in a few minutes.&lt;/p&gt;
&lt;p&gt;Enter formula in C3: =MONTH(A2)&lt;br&gt;
Drag C3 down&lt;/p&gt;
&lt;p&gt;Enter headings on D2 and E2 of April and May&lt;/p&gt;
&lt;p&gt;Enter formula in D2: =COUNTIFS($C$2:$C$13,&quot;4?,$B$2:$B$13,$B2)&lt;br&gt;
Drag D2 down&lt;/p&gt;
&lt;p&gt;Enter formula in D14: =INDEX($B2:$B13,MATCH(MAX(D2:D13),D2:D13,0),1)&lt;/p&gt;
&lt;p&gt;Drag D2:D14 over&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This was the fastest way I could do it using just workbook functions (trying to avoid the pivot table).  This gets the job done in a few minutes.</p>
<p>Enter formula in C3: =MONTH(A2)<br />
Drag C3 down</p>
<p>Enter headings on D2 and E2 of April and May</p>
<p>Enter formula in D2: =COUNTIFS($C$2:$C$13,&#8221;4?,$B$2:$B$13,$B2)<br />
Drag D2 down</p>
<p>Enter formula in D14: =INDEX($B2:$B13,MATCH(MAX(D2:D13),D2:D13,0),1)</p>
<p>Drag D2:D14 over</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Items I am reading from Google Reader  June 25, 2010 » My Small Business Consultants</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/#comment-47348</link>
		<dc:creator>Items I am reading from Google Reader  June 25, 2010 » My Small Business Consultants</dc:creator>
		<pubDate>Fri, 25 Jun 2010 21:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3935#comment-47348</guid>
		<description>&lt;p&gt;[...] Most Frequent Occurence [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Most Frequent Occurence [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris U</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/#comment-47345</link>
		<dc:creator>Chris U</dc:creator>
		<pubDate>Fri, 25 Jun 2010 19:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3935#comment-47345</guid>
		<description>&lt;p&gt;This is my first time posting here so I hope this actually works.&lt;br&gt;
I have accomplished this using first the Max(if) array formula, then nested offset and nested match functions.&lt;/p&gt;
&lt;p&gt;[is there a way to post screen shots in comments?  do i need to upload the pic somewhere else first?]&lt;/p&gt;
&lt;p&gt;I added more data to Tammy&#039;s original some dates for Jan &amp; Feb.  The results, using a Sum array formula, is this for each person: (Table A)&lt;/p&gt;
&lt;p&gt;12345&lt;br&gt;
Mike21035&lt;br&gt;
Andy30010&lt;br&gt;
Tammy04010&lt;br&gt;
Sam00010&lt;br&gt;
Jerry11001&lt;/p&gt;
&lt;p&gt;(the top row are the # values for the month).&lt;/p&gt;
&lt;p&gt;Now, to match the max for each month to the person who acheived it.&lt;br&gt;
Table B- these are my results.  Column 3 produces the name using excel functions&lt;br&gt;
Month #Max #Name&lt;br&gt;
13Andy&lt;br&gt;
24Tammy&lt;br&gt;
30Mike&lt;br&gt;
43Mike&lt;br&gt;
55Mike&lt;/p&gt;
&lt;p&gt;The first column are the month values again.  The second column uses this Max array formula to find the max: {=MAX(IF($F$1:$J$1=$E10,$F$2:$J$6))}&lt;/p&gt;
&lt;p&gt;The third column uses Match to first find the correct column in Table A for the month from column 1 in Table B; then Match (along with the offset for the # I just got) to identify which row of Table A the max value from Column 2 Table B is in.  Finally, those 2 numbers give the parameters by which to identify the name using the Index function.&lt;/p&gt;
&lt;p&gt;=OFFSET($E$1,MATCH($F10,OFFSET($E$2:$E$6,,MATCH($E10,$F$1:$J$1,0),,),0),,,)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is my first time posting here so I hope this actually works.<br />
I have accomplished this using first the Max(if) array formula, then nested offset and nested match functions.</p>
<p>[is there a way to post screen shots in comments?  do i need to upload the pic somewhere else first?]</p>
<p>I added more data to Tammy&#8217;s original some dates for Jan &amp; Feb.  The results, using a Sum array formula, is this for each person: (Table A)</p>
<p>12345<br />
Mike21035<br />
Andy30010<br />
Tammy04010<br />
Sam00010<br />
Jerry11001</p>
<p>(the top row are the # values for the month).</p>
<p>Now, to match the max for each month to the person who acheived it.<br />
Table B- these are my results.  Column 3 produces the name using excel functions<br />
Month #Max #Name<br />
13Andy<br />
24Tammy<br />
30Mike<br />
43Mike<br />
55Mike</p>
<p>The first column are the month values again.  The second column uses this Max array formula to find the max: {=MAX(IF($F$1:$J$1=$E10,$F$2:$J$6))}</p>
<p>The third column uses Match to first find the correct column in Table A for the month from column 1 in Table B; then Match (along with the offset for the # I just got) to identify which row of Table A the max value from Column 2 Table B is in.  Finally, those 2 numbers give the parameters by which to identify the name using the Index function.</p>
<p>=OFFSET($E$1,MATCH($F10,OFFSET($E$2:$E$6,,MATCH($E10,$F$1:$J$1,0),,),0),,,)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt H</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/#comment-47343</link>
		<dc:creator>Matt H</dc:creator>
		<pubDate>Fri, 25 Jun 2010 19:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3935#comment-47343</guid>
		<description>&lt;p&gt;Oh, and then I would sort descending on column E!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Oh, and then I would sort descending on column E!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt H</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/06/25/most-frequent-occurence/#comment-47342</link>
		<dc:creator>Matt H</dc:creator>
		<pubDate>Fri, 25 Jun 2010 19:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3935#comment-47342</guid>
		<description>&lt;p&gt;I would probably just Pivot it too. The only difference is that I would use DRIVER as the Row Label, and then COUNT OF DATE in the Values area.&lt;/p&gt;
&lt;p&gt;Here&#039;s another way with worksheet formulas.&lt;/p&gt;
&lt;p&gt;1. Figure out all of the unique names in the list. Do this by choosing Data &gt; Filter &gt; Advanced Filter. Choose &quot;Copy to another location&quot; and check &quot;Unique records only&quot;.&lt;/p&gt;
&lt;p&gt;2. Next to the filtered list of names (suppose they start in D2), enter the following formula in E2 and then fill down:&lt;/p&gt;
&lt;p&gt;=COUNTIF($B$2:$B$13,&quot;=&quot;&amp;D2)&lt;/p&gt;
&lt;p&gt;That will be equivalent to evaluating&lt;/p&gt;
&lt;p&gt;E2  =COUNTIF($B$2:$B$13,&quot;=Andy&quot;)&lt;br&gt;
E3  =COUNTIF($B$2:$B$13,&quot;=Jerry&quot;)&lt;br&gt;
etc.&lt;/p&gt;
&lt;p&gt;The comparison will treat both &quot;andy&quot; and &quot;Andy&quot; as the same; i.e. it is not case sensitive. But an extra trailing space will cause trouble. E.g. if the cell&#039;s text is really &quot;Andy &quot;, then Andy-space will look a different entry from &quot;Andy&quot;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I would probably just Pivot it too. The only difference is that I would use DRIVER as the Row Label, and then COUNT OF DATE in the Values area.</p>
<p>Here&#8217;s another way with worksheet formulas.</p>
<p>1. Figure out all of the unique names in the list. Do this by choosing Data &gt; Filter &gt; Advanced Filter. Choose &#8220;Copy to another location&#8221; and check &#8220;Unique records only&#8221;.</p>
<p>2. Next to the filtered list of names (suppose they start in D2), enter the following formula in E2 and then fill down:</p>
<p>=COUNTIF($B$2:$B$13,&#8221;=&#8221;&amp;D2)</p>
<p>That will be equivalent to evaluating</p>
<p>E2  =COUNTIF($B$2:$B$13,&#8221;=Andy&#8221;)<br />
E3  =COUNTIF($B$2:$B$13,&#8221;=Jerry&#8221;)<br />
etc.</p>
<p>The comparison will treat both &#8220;andy&#8221; and &#8220;Andy&#8221; as the same; i.e. it is not case sensitive. But an extra trailing space will cause trouble. E.g. if the cell&#8217;s text is really &#8220;Andy &#8220;, then Andy-space will look a different entry from &#8220;Andy&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

