CAT2016
New Member
- Joined
- Apr 13, 2016
- Messages
- 6
Hi
I have been reading a few threads here today about adding cells together every 'nth' row and I am having some success and some failures. I have managed to add up a range of cells (every 6) in a column using this formula
=SUMPRODUCT($C$10:$C$154*(MOD(ROW($C$10:$C$154),6)=1))
but it doesn't add the last cell even though it is included in the range.
I am also adding up another range of cells, again every 6 in the same column but on a different line using this formula
=SUMPRODUCT($C$11:$C$154*(MOD(ROW($C$11:$C$154),6)=1))
but it gives me the same total as the cell above it, also a total cell of the first formula, even though all the cells indicated in the range are of a $0 amount.
I have tried the formula in various different ways and MrExcel's was the closest and most accurate but I just can't get the correct totals using this formula in each of the 'total' cells.
What am I doing wrong????
QUOTED TOTALS $4.00 $3.00 $0.00
ACTUAL TOTALS $4.00 $3.00 $0.00
I have been reading a few threads here today about adding cells together every 'nth' row and I am having some success and some failures. I have managed to add up a range of cells (every 6) in a column using this formula
=SUMPRODUCT($C$10:$C$154*(MOD(ROW($C$10:$C$154),6)=1))
but it doesn't add the last cell even though it is included in the range.
I am also adding up another range of cells, again every 6 in the same column but on a different line using this formula
=SUMPRODUCT($C$11:$C$154*(MOD(ROW($C$11:$C$154),6)=1))
but it gives me the same total as the cell above it, also a total cell of the first formula, even though all the cells indicated in the range are of a $0 amount.
I have tried the formula in various different ways and MrExcel's was the closest and most accurate but I just can't get the correct totals using this formula in each of the 'total' cells.
What am I doing wrong????
QUOTED TOTALS $4.00 $3.00 $0.00
ACTUAL TOTALS $4.00 $3.00 $0.00