Summing over multiple worksheets

A

Alberta Rose

Hi. I have weekly data by Contract number over multiple worksheets. I want
to sum the hours associated with the contract. The contract information will
not always be in the same cell, as new contracts are constantly added. My
question is, should I use an If and then a SumIf or would a SumIf by
sufficient?

=SUMIF("'Apr 4:Jun 27'!, A5:A33",A5,"'Apr 4:Jun 27'!, G5:G33")

I'm obviously missing something here. I want this formula to look in
worksheets Apr 4 to Jun 27 in cells A5 through A33 and if there is a match to
cell A5 on my summary worksheet, then add corresponding figures in cells G5
through G33 and then put into cell G5 on my summary worksheet.

Help please :)
 
T

T. Valko

Try this...

I'm assuming the sheet names are the *Sunday* dates for a period.

A1 = 4/4/2010 (Apr 4) = first sheet to include
B1 = 6/27/2010 (Jun 27) = last sheet to include

Then:

=SUMPRODUCT(SUMIF(INDIRECT("'"&TEXT(A1-7+ROW(INDIRECT("1:"&(B1-A1)/7+1))*7,"mmm
d")&"'!A5:A33"),A5,INDIRECT("'"&TEXT(A1-7+ROW(INDIRECT("1:"&(B1-A1)/7+1))*7,"mmm
d")&"'!G5:G33")))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top