Try it like this:
=SUMPRODUCT(--(MONTH(B2:B5)=1),E2:E5+F2:F5,--(H2:H5="auto"))
A couple of notes.
If there are any empty cells in column B (within your range) then you need
to add another array since an empty cell will evaluate as month 1:
=SUMPRODUCT(--(ISNUMBER(B2:B5)),--(MONTH(B2:B5)=1),E2:E5+F2:F5,--(H2:H5="auto"))
Also, you can't use entire columns as range references directly with
SUMPRODUCT unless you're using Excel 2007.

Signature
Biff
Microsoft Excel MVP
>i have the following formula
> =IF(MONTH($B:$B)=MONTH(J1),+SUMIF($H:$H,"auto",$F:$F)+SUMIF($H:
[quoted text clipped - 12 lines]
>
> What am i missing here.
T. Valko - 14 Aug 2007 03:03 GMT
Ooops!
I forgot about this:
....=MONTH(J1)
=SUMPRODUCT(--(MONTH(B2:B5)=MONTH(J1)),E2:E5+F2:F5,--(H2:H5="auto"))
=SUMPRODUCT(--(ISNUMBER(B2:B5)),--(MONTH(B2:B5)=MONTH(J1)),E2:E5+F2:F5,--(H2:H5="auto"))

Signature
Biff
Microsoft Excel MVP
> Try it like this:
>
[quoted text clipped - 26 lines]
>>
>> What am i missing here.
ciojr@yahoo.com - 14 Aug 2007 12:15 GMT
> Try it like this:
>
[quoted text clipped - 36 lines]
>
> - Show quoted text -
This worked perfect. Thank you so much.
T. Valko - 14 Aug 2007 18:16 GMT
On Aug 13, 9:54 pm, "T. Valko" <biffinp...@comcast.net> wrote:
> Try it like this:
>
[quoted text clipped - 36 lines]
>
> - Show quoted text -
>This worked perfect. Thank you so much.
You're welcome. Thanks for the feedback!

Signature
Biff
Microsoft Excel MVP