<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for tally</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this tag.</description>
		<pubDate>Wed, 03 Dec 2008 00:27:52 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Group and count items in Excel</title>
	<link>http://www.bytemycode.com/snippets/snippet/492/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/492/comments/</comments>
	<pubDate>Fri, 27 Oct 2006 08:30:38 +0000</pubDate>
	<dc:creator>RobHarrigan</dc:creator>
	<category>count, excel, group, macro, tally</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/492/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Oct. 27th, 2006  8:30 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/492/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/RobHarrigan/" title="Helper">RobHarrigan</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/count">count</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/excel">excel</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/group">group</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/macro">macro</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/tally">tally</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/492/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>Excel macro to group and count the number of items in a range of cells, delimited by the pipe character "|". It returns a summary of the items including a percent of total and count for each item found, plus a grand total of all items.<br /><br />Currently limited to 100 items, simple becasue I didn't have the time to spend to get dynamic arrays to work.<br /><br /><blockquote><br />Sample Data:<br />--------------<br />cat|dog|bird<br />--------------<br />cat|bird<br />--------------<br />cat<br />--------------<br />frog<br /><br />==================<br />OUTPUT from =total(A1:A4)<br />==================<br />42.9% - 3: cat<br />28.6% - 2: bird<br />14.3% - 1: dog<br />14.3% - 1: frog<br />---<br />7</blockquote></p>
		]]>
	</description>
</item>
	</channel>
</rss>