T
Troy
How can I select a range and sum every other cell?
Myrna Larson said:If all that is wanted is to sum the odd-numbered rows:
=SUMPRODUCT((B2:B32)*(MOD(ROW(B2:B32),2)))
or the even-numbered rows:
=SUMPRODUCT((B2:B32)*(1-MOD(ROW(B2:B32),2)))
Of course this is less flexible than your formula, which allows one to do every 3rd or 4th row,
etc.
Myrna Larson said:If all that is wanted is to sum the odd-numbered rows:
=SUMPRODUCT((B2:B32)*(MOD(ROW(B2:B32),2)))
or the even-numbered rows:
=SUMPRODUCT((B2:B32)*(1-MOD(ROW(B2:B32),2)))
Of course this is less flexible than your formula, which allows one to do every 3rd or 4th row,
etc.