You can't do that with SUMIF unless you use 2007 and then there is a new
function called SUMIFS, nevertheless you can use
=SUMPRODUCT(--(A1:A10000>=C1),--(A1:A10000<=C2),B1:B10000)
note that you cannot use the whole column so you need to specify the range

Signature
Regards,
Peo Sjoblom
Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)
> That would be a sloution, but I would prefer to take the range ends from
> two separate cells. Something like
> =sumif(A:A, and(A:A>=C1,A:A<=C2), B:B)
>
> any ideas?