<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Using conditional formulas to sum up data in Microsoft Excel</title>
	<link>http://ask.metafilter.com/82890/Using-conditional-formulas-to-sum-up-data-in-Microsoft-Excel/</link>
	<description>Comments on Ask MetaFilter post Using conditional formulas to sum up data in Microsoft Excel</description>
	<pubDate>Tue, 05 Feb 2008 18:54:19 -0800</pubDate>
	<lastBuildDate>Tue, 05 Feb 2008 18:54:19 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Using conditional formulas to sum up data in Microsoft Excel</title>
		<link>http://ask.metafilter.com/82890/Using-conditional-formulas-to-sum-up-data-in-Microsoft-Excel</link>	
		<description>Can I use Excel to loop through lists of names and sum up numbers for each name, without having to define the cell ranges that correspond to each name? &lt;br /&gt;&lt;br /&gt; (This is Excel 2003.)&lt;br&gt;
&lt;br&gt;
I have an Excel workbook with many worksheets inside. Each worksheet corresponds to an area of responsibility. Each row has a person&apos;s name on it, but each person can have many rows. So when sorted by name, each worksheet looks like this:&lt;br&gt;
&lt;br&gt;
Doe, John     x     x     x     1.00     x&lt;br&gt;
Doe, John     x     x     x     4.00     x&lt;br&gt;
Smith, Jane     x     x     x     8.00     x&lt;br&gt;
Smith, Jane     x     x     x     6.00     x&lt;br&gt;
&lt;br&gt;
Where each x represents a column of data I don&apos;t care much about. There are no blank lines between the names; there&apos;s just a header row at the top of the spreadsheet, then solid data until the end of the name list.&lt;br&gt;
&lt;br&gt;
I also have a summary worksheet with one row for each worksheet. The summary worksheet uses =SUM(WorksheetName!StartingCell:EndingCell) to add up the numbers column.&lt;br&gt;
&lt;br&gt;
What I really want to do is create another summary worksheet that would have a row for each worksheet + person combination that sums that person&apos;s total numbers on that worksheet. So it would look like:&lt;br&gt;
&lt;br&gt;
Worksheet Name&lt;br&gt;
     Doe, John     5.00&lt;br&gt;
     Smith, Jane     14.00&lt;br&gt;
&lt;br&gt;
Repeated for each worksheet and the people who have numbers on that worksheet.&lt;br&gt;
&lt;br&gt;
I want a formula that will:&lt;br&gt;
1. Look at the each cell in the first column of a given worksheet.&lt;br&gt;
2. For each cell that contains a name, skip over four columns and add the number in that cell to a running total.&lt;br&gt;
3. Continue until it hits a different name, then dump the total in a cell on my &quot;person summary&quot; worksheet.&lt;br&gt;
3. Repeat that process for the next name in the worksheet, until it comes to the first blank cell in the first column.&lt;br&gt;
&lt;br&gt;
Can Excel handle this type of conditional formula? I can&apos;t find an example that seems analogous to what I want -- or if I have, I haven&apos;t recognized it.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.82890</guid>
		<pubDate>Tue, 05 Feb 2008 18:34:04 -0800</pubDate>
		<dc:creator>korres</dc:creator>
		
			<category>excel</category>
		
			<category>conditional</category>
		
			<category>Microsoft</category>
		
			<category>math</category>
		
	</item> <item>
		<title>By: PercussivePaul</title>
		<link>http://ask.metafilter.com/82890/Using-conditional-formulas-to-sum-up-data-in-Microsoft-Excel#1227880</link>	
		<description>Have you tried playing around with &lt;a href=&quot;http://en.wikipedia.org/wiki/Pivot_table&quot;&gt;Pivot&lt;/a&gt; &lt;a href=&quot;http://www.microsoft.com/dynamics/using/excel_pivot_tables_collins.mspx&quot;&gt;Tables&lt;/a&gt;?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.82890-1227880</guid>
		<pubDate>Tue, 05 Feb 2008 18:54:19 -0800</pubDate>
		<dc:creator>PercussivePaul</dc:creator>
	</item><item>
		<title>By: pompomtom</title>
		<link>http://ask.metafilter.com/82890/Using-conditional-formulas-to-sum-up-data-in-Microsoft-Excel#1227890</link>	
		<description>You don&apos;t need to loop... you can do this with the SUMIF() function.&lt;br&gt;
&lt;br&gt;
So if your names are in column A, and your numbers in column E:&lt;br&gt;
&lt;br&gt;
=SUMIF(WorksheetName!A:A,&quot;John Doe&quot;,WorksheetName!E:E)&lt;br&gt;
&lt;br&gt;
will give you the total for John Doe.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.82890-1227890</guid>
		<pubDate>Tue, 05 Feb 2008 19:01:34 -0800</pubDate>
		<dc:creator>pompomtom</dc:creator>
	</item><item>
		<title>By: korres</title>
		<link>http://ask.metafilter.com/82890/Using-conditional-formulas-to-sum-up-data-in-Microsoft-Excel#1227906</link>	
		<description>Wow, that was about a million times simpler than I thought it was going to be. I wish I had realized SUMIF worked that way! Thanks, pompomtom!&lt;br&gt;
&lt;br&gt;
PercussivePaul, thank you for reminding me about pivot tables; I don&apos;t need them this time around, but I think they may come in handy with some reports that I&apos;m probably going to have to put together soon.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.82890-1227906</guid>
		<pubDate>Tue, 05 Feb 2008 19:12:31 -0800</pubDate>
		<dc:creator>korres</dc:creator>
	</item><item>
		<title>By: stefanie</title>
		<link>http://ask.metafilter.com/82890/Using-conditional-formulas-to-sum-up-data-in-Microsoft-Excel#1227925</link>	
		<description>One caveat about using SUMIF: You&apos;ll use the formula for a few months until you&apos;ve forgotten you&apos;re using it at all. As soon as that happens, you&apos;ll add John Q. Public to your worksheets and forget to add him to your summary sheet. Be sure to use a sanity check with your worksheet grand totals to make sure you haven&apos;t missed any data.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.82890-1227925</guid>
		<pubDate>Tue, 05 Feb 2008 19:31:31 -0800</pubDate>
		<dc:creator>stefanie</dc:creator>
	</item>
	</channel>
</rss>
