Relative reference in condition of SUMIF

I need to SUM all the weekly totals. Each row has a date. In a hidden table, I calculate the WEEKNUM of the entry. Using SUMIF, I can add everything up. However, it appears I have to hard code the condition. For example:

=SUMIF(Table 5 :: A2:A37,"=30",Table 5 :: B2:B37)

Is there some way I can avoid "=30" and use some kind of reference?

A2:A37 is each entry's week number, B2:B37 is each entry's totals

dt

Mac mini, Mac OS X (10.5.7)

Posted on Jul 27, 2009 7:39 PM

Reply
4 replies

Jul 27, 2009 10:51 PM in response to Doug Tallman

If the weeks are sequential, you can use ROW() plus an integer (ROW()+28 for instance if the formula was in row 2) to reference the week. You will also want to make the range absolute so instead of A2:A37 it would be A$2:A$37 or $A$2:$A$37 or you may be able to use a more simple A in place of the range which will reference the entire column. Same with the reference to B2:B37.

You would end up with

=SUMIF(Table 5 :: A, ROW()+28, Table 5 :: B)

then fill down to the rows below, no changes required.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Relative reference in condition of SUMIF

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.