Try:
=Sumproduct(--(Month(A2:A10)=1), B2:B10)
"Miroshak" wrote:
> Can someone help me in creating a sumif function that will add all the dollar
> amounts corresponding to only January's dates. I've tried to use the formula
> below with no success.
>
> Date Dollar
> January 1, 2007 40 =SUMIF(A2:A10,"">=(MONTH(1)),Dollar)
> January 5, 2007 55
> January 9, 2007 56
> February 2, 2007 40
> February 4, 2007 12
> February 14, 2007 78
> March 1, 2007 62
> March 15, 2007 35
> March 6, 2007 45
>
>
> --
> Miroshak
|