summing

deedee88

Board Regular
Joined
Jan 17, 2009
Messages
98
Hi,

I am wondering if someone can help me with a formula for Total Comp Revenue 2007. Below is a sample of the data. I have no problem with the 2008 formula total. I used a sumif formula which adds up all the 2008 amounts and it works fine. I am stuck in coming up with a formula for the 2007 total. I only need to add the months which are comparable to 2008. Any help will be greatly appreciated!
<table width="806" border="0" cellpadding="0" cellspacing="0"><col style="width: 48pt;" width="64" span="2"> <col style="width: 6pt;" width="8"> <col style="width: 48pt;" width="64" span="2"> <col style="width: 5pt;" width="6"> <col style="width: 48pt;" width="64" span="2"> <col style="width: 5pt;" width="6"> <col style="width: 48pt;" width="64" span="2"> <col style="width: 9pt;" width="12"> <col style="width: 48pt;" width="64" span="2"> <col style="width: 5pt;" width="6"> <col style="width: 48pt;" width="64" span="2"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl66" style="height: 15pt; width: 48pt;" width="64" align="center" height="20">Jan</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64">
</td> <td class="xl65" style="border-left: medium none; width: 6pt;" width="8">
</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64" align="center">Feb</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64">
</td> <td class="xl65" style="border-left: medium none; width: 5pt;" width="6">
</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64" align="center">Mar</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64">
</td> <td class="xl65" style="border-left: medium none; width: 5pt;" width="6">
</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64" align="center">Apr</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64">
</td> <td class="xl66" style="border-left: medium none; width: 9pt;" width="12">
</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64" align="center">May</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64">
</td> <td class="xl66" style="border-left: medium none; width: 5pt;" width="6">
</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64" align="center">Total Comp Revenue</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64">
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" align="right" height="20">2008</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2007</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2008</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2007</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2008</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2007</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2008</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2007</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2008</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2007</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2008</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">2007</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl67" style="height: 15pt; border-top: medium none;" align="right" height="20">185</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">275</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">337</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">297</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">320</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">394</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">390</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">477</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">159</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">331</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">1391</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">1774</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl67" style="height: 15pt; border-top: medium none;" align="right" height="20">176</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">334</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">349</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">262</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">248</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">403</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">176</td> <td class="xl68" style="border-top: medium none; border-left: medium none;" align="right">334</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl67" style="height: 15pt; border-top: medium none;" align="right" height="20">252</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">173</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">322</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">143</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">482</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">310</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">146</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">274</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl67" style="border-top: medium none; border-left: medium none;" align="right">1056</td> <td class="xl68" style="border-top: medium none; border-left: medium none;" align="right">626</td> </tr> </tbody></table>
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Test the 2008 column, and Add the 2007 column: SUMIF($A7,">0",$B7

My result is in Col Q:

=SUM(SUMIF($A7,">0",$B7),SUMIF($D7,">0",$E7),SUMIF($G7,">0",$H7),SUMIF($J7,">0",$K7),SUMIF($M7,">0",$N7))
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top