Hi and welcome to MrExcel.
Some sample data and your expected results may help you to get the answer you seek.
In the mean time, here is my sample data and example results based on what I think you are asking.....
Sample data....
Sheet1
* | A | B | C | D | E |
* | | | | | |
Bill | * | | | | |
Bob | * | | | | |
Ben | * | | | | |
Don | * | | | | |
Dan | * | | | | |
Bill | * | | | | |
Bob | * | | | | |
Ben | * | | | | |
Don | * | | | | |
Bill | * | | | | |
Bob | * | | | | |
Ben | * | | | | |
* | * | * | * | * | |
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 75px;"><col style="width: 75px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 20px;"></colgroup><tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]
[TD="align: center"]Name[/TD]
[TD="align: center"]Date[/TD]
[TD="align: center"]Stat1[/TD]
[TD="align: center"]Stat2[/TD]
[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="align: right"]01/01/2012[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]102[/TD]
[TD="bgcolor: #CACACA, align: center"]3[/TD]
[TD="align: right"]02/01/2012[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]202[/TD]
[TD="bgcolor: #CACACA, align: center"]4[/TD]
[TD="align: right"]03/01/2012[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]302[/TD]
[TD="bgcolor: #CACACA, align: center"]5[/TD]
[TD="align: right"]04/01/2012[/TD]
[TD="align: right"]400[/TD]
[TD="align: right"]402[/TD]
[TD="bgcolor: #CACACA, align: center"]6[/TD]
[TD="align: right"]05/01/2012[/TD]
[TD="align: right"]500[/TD]
[TD="align: right"]502[/TD]
[TD="bgcolor: #CACACA, align: center"]7[/TD]
[TD="align: right"]01/01/2013[/TD]
[TD="align: right"]600[/TD]
[TD="align: right"]602[/TD]
[TD="bgcolor: #CACACA, align: center"]8[/TD]
[TD="align: right"]02/01/2013[/TD]
[TD="align: right"]700[/TD]
[TD="align: right"]702[/TD]
[TD="bgcolor: #CACACA, align: center"]9[/TD]
[TD="align: right"]03/01/2013[/TD]
[TD="align: right"]800[/TD]
[TD="align: right"]802[/TD]
[TD="bgcolor: #CACACA, align: center"]10[/TD]
[TD="align: right"]04/01/2013[/TD]
[TD="align: right"]900[/TD]
[TD="align: right"]902[/TD]
[TD="bgcolor: #CACACA, align: center"]11[/TD]
[TD="align: right"]05/01/2013[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1002[/TD]
[TD="bgcolor: #CACACA, align: center"]12[/TD]
[TD="align: right"]06/01/2013[/TD]
[TD="align: right"]1100[/TD]
[TD="align: right"]1102[/TD]
[TD="bgcolor: #CACACA, align: center"]13[/TD]
[TD="align: right"]07/01/2013[/TD]
[TD="align: right"]1200[/TD]
[TD="align: right"]1202[/TD]
[TD="bgcolor: #CACACA, align: center"]14[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Example results1.....
Master
* | A | B | C | D | E |
* | * | | | | |
Bill | * | * | | | |
Bob | * | * | * | | |
Ben | * | * | * | | |
Don | * | * | * | | |
Dan | * | * | * | | |
* | * | * | * | * | |
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 20px;"><col style="width: 64px;"><col style="width: 20px;"></colgroup><tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]
[TD="align: center"]Name[/TD]
[TD="align: center"]Stat1[/TD]
[TD="align: center"]Year[/TD]
[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="align: right"]1600[/TD]
[TD="bgcolor: #FFFF00, align: right"]2013[/TD]
[TD="bgcolor: #CACACA, align: center"]3[/TD]
[TD="align: right"]1800[/TD]
[TD="bgcolor: #CACACA, align: center"]4[/TD]
[TD="align: right"]2000[/TD]
[TD="bgcolor: #CACACA, align: center"]5[/TD]
[TD="align: right"]900[/TD]
[TD="bgcolor: #CACACA, align: center"]6[/TD]
[TD="align: right"]0[/TD]
[TD="bgcolor: #CACACA, align: center"]7[/TD]
</tbody>
Spreadsheet Formulas |
Cell | Formula | B2 | =SUMPRODUCT(--(YEAR(Sheet1!$B$2:$B$13)=$D$2)*(Sheet1!$A$2:$A$13=A2),Sheet1!$C$2:$C$13) |
<tbody>
</tbody> |
<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Example results2.....
Master
* | A | B | C | D | E |
* | * | | | | |
Bill | * | * | | | |
Bob | * | * | * | | |
Ben | * | * | * | | |
Don | * | * | * | | |
Dan | * | * | * | | |
* | * | * | * | * | |
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 20px;"><col style="width: 64px;"><col style="width: 20px;"></colgroup><tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]
[TD="align: center"]Name[/TD]
[TD="align: center"]Stat1[/TD]
[TD="align: center"]Year[/TD]
[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="align: right"]100[/TD]
[TD="bgcolor: #FFFF00, align: right"]2012[/TD]
[TD="bgcolor: #CACACA, align: center"]3[/TD]
[TD="align: right"]200[/TD]
[TD="bgcolor: #CACACA, align: center"]4[/TD]
[TD="align: right"]300[/TD]
[TD="bgcolor: #CACACA, align: center"]5[/TD]
[TD="align: right"]400[/TD]
[TD="bgcolor: #CACACA, align: center"]6[/TD]
[TD="align: right"]500[/TD]
[TD="bgcolor: #CACACA, align: center"]7[/TD]
</tbody>
Spreadsheet Formulas |
Cell | Formula | B2 | =SUMPRODUCT(--(YEAR(Sheet1!$B$2:$B$13)=$D$2)*(Sheet1!$A$2:$A$13=A2),Sheet1!$C$2:$C$13) |
<tbody>
</tbody> |
<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
I hope that helps.
Good luck.
Ak