A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Your formula, as written, will not return the results you want.
Try this:
=SUMPRODUCT((A2:A10=1)*SUMIF(Sheet1!A1:A3,Sheet2!B2:B10,Sheet1!C1:C3))
I used Sheet1, assuming you don't actually have a sheet named "sheet".
Is that something you can work with?
Ron Coderre
Microsoft MVP - Excel (2006 - 2010)
P.S. If any post answers your question, please mark it as the Answer (so it won't keep showing as an open item.)