Afternoon All,
I have a list of data as Follows for year 2011 and 2010
<table style="width: 507px; height: 100px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 132pt;" width="176"> <col style="width: 48pt;" span="2" width="64"> <col style="width: 56pt;" width="75"> <col style="width: 48pt;" span="2" width="64"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl63" style="height: 15pt; width: 132pt;" height="20" width="176"> <table style="width: 331px; height: 100px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 48pt;" span="2" width="64"> <col style="width: 56pt;" width="75"> <col style="width: 48pt;" span="2" width="64"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; width: 48pt;" height="20" width="64">Month</td> <td class="xl65" style="border-left: medium none; width: 48pt;" width="64">Week</td> <td class="xl65" style="border-left: medium none; width: 48pt;" width="64">Fruit</td> <td class="xl65" style="border-left: medium none; width: 48pt;" width="64">Volume</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">Mar</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">10</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">banana</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">48</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">Mar</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">10</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">Orange</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">1562</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">Mar</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">10</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">nectarine</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">519</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">Mar</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">10</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">nuts</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">1</td> </tr> </tbody></table></td><td class="xl63" style="border-left: medium none; width: 48pt;" width="64">
</td><td class="xl63" style="border-left: medium none; width: 48pt;" width="64">
</td><td class="xl63" style="border-left: medium none; width: 56pt;" width="75">
</td><td class="xl63" style="border-left: medium none; width: 48pt;" width="64">
</td><td class="xl63" style="border-left: medium none; width: 48pt;" width="64">
</td></tr></tbody></table>
Currently I have the following function to sum volume according to week and Fruit.
=SUMPRODUCT(--(Data!$B$6:$B$2000=$B$2),--(Data!$E$6:$E$2000="nectarine"),Data!$F$6:$F$2000)
I would like to compare Month to date for 2011 and 2010. Adding an array to the above formula for month is easy enough. But I need to be able to add the 2010 data according to the weeks in 2011. So if its only Weeks 10,11,12 for Mar2011 can I look for the comparative data in the 2010 sheet?
I was wondering if a dynamic range would work but my knowledge of this is very limited.
Any assistance would be greatly appreciated
I have a list of data as Follows for year 2011 and 2010
<table style="width: 507px; height: 100px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 132pt;" width="176"> <col style="width: 48pt;" span="2" width="64"> <col style="width: 56pt;" width="75"> <col style="width: 48pt;" span="2" width="64"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl63" style="height: 15pt; width: 132pt;" height="20" width="176"> <table style="width: 331px; height: 100px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 48pt;" span="2" width="64"> <col style="width: 56pt;" width="75"> <col style="width: 48pt;" span="2" width="64"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; width: 48pt;" height="20" width="64">Month</td> <td class="xl65" style="border-left: medium none; width: 48pt;" width="64">Week</td> <td class="xl65" style="border-left: medium none; width: 48pt;" width="64">Fruit</td> <td class="xl65" style="border-left: medium none; width: 48pt;" width="64">Volume</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">Mar</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">10</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">banana</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">48</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">Mar</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">10</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">Orange</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">1562</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">Mar</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">10</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">nectarine</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">519</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">Mar</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">10</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">nuts</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">1</td> </tr> </tbody></table></td><td class="xl63" style="border-left: medium none; width: 48pt;" width="64">
</td><td class="xl63" style="border-left: medium none; width: 48pt;" width="64">
</td><td class="xl63" style="border-left: medium none; width: 56pt;" width="75">
</td><td class="xl63" style="border-left: medium none; width: 48pt;" width="64">
</td><td class="xl63" style="border-left: medium none; width: 48pt;" width="64">
</td></tr></tbody></table>
Currently I have the following function to sum volume according to week and Fruit.
=SUMPRODUCT(--(Data!$B$6:$B$2000=$B$2),--(Data!$E$6:$E$2000="nectarine"),Data!$F$6:$F$2000)
I would like to compare Month to date for 2011 and 2010. Adding an array to the above formula for month is easy enough. But I need to be able to add the 2010 data according to the weeks in 2011. So if its only Weeks 10,11,12 for Mar2011 can I look for the comparative data in the 2010 sheet?
I was wondering if a dynamic range would work but my knowledge of this is very limited.
Any assistance would be greatly appreciated