HI Jonathon,
You wrote:
"I have a column of check boxes, When I check them they populate a number from another column. The problem is I can't add up the numbers populated as the unchecked boxes cause an error! Is there anyway to say "just add up the numbers that have a tick along side them and ignore the rest of the zero values"?"
There are a couple of ways to do this, both shown on the table below.
The set of numbers in "another column" are in column B. The checkboxes determine which of these numbers are copied to column E. F2 contains the sum of the numbers in column F.
E2 and filled down: =IF(C,B,"")
Expanded, this says: IF the value in (this row of column) C is TRUE, then get the value in (this row of column) B, otherwise set the value of this cell to a null string.
'this cell' is the cell containing the formula on 'this row'. A null string is a text value with zero length (which appears 'empty' and which SUM will ignore/interpret as zero) .
F2 (not filled down): =SUM(E)
Sums the values in column E.
The second method does not require columns E and F. It uses only one formula in cell D2.
D2: =SUMIF(C,TRUE,B)
Expanded: SUM the values in column E that are on rows where the value in column C is "TRUE".
Checkbox cells contain one of two values: TRUE when they are checked; FALSE when they are not checked.
Regards,
Barry
PS to Sparkleberry
Bumping a message that has been in the thread for only one hour and four minutes is never necessary in this conference. Pretty much everyone who responds here signs on regularly and reviews all unsolved posts which he/she hasn't yet seen each time he/she signs on. No answer after an hour just means no one with an answer has yet visited.
Regards,
Barry