Numbers formula for "sum of all cells above this row"

Is there a way, using the cell formulas in Numbers, to say "sum of all the cells above this row"? I'm trying to make a ledger of sorts, and I want to have a column that is "how much you've spent so far" for each entry, which is the sum of all the "Price" cells for that row and above.


Is this possible? Thank you in advance for your help!

iMac, OS X Mavericks (10.9)

Posted on Jul 21, 2014 3:40 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 22, 2014 12:49 PM

HI Alexander,


This is similar to what Ian has provided, but uses a different formula that takes advantage of Numbers's ability to automatically fill formulas into new rows IF the same formula is in every cell above the new one.

User uploaded file

Column D contains this formula, entered in D2 and filled down to the end of the column.


D2: =SUM(C$2:C2)


NOte that the last sum (120.00) is repeated in the last two rows, where no data has been entered in column C. A revised version of the formula, used in column E, adds a 'switch' to keep cells in this column 'blank' until data has been entered in column C:


E2: =IF(LEN(C)<1,"",SUM($C$2:C2))


Regards,

Barry

4 replies
Question marked as Top-ranking reply

Jul 22, 2014 12:49 PM in response to AlexanderBurtonWinn

HI Alexander,


This is similar to what Ian has provided, but uses a different formula that takes advantage of Numbers's ability to automatically fill formulas into new rows IF the same formula is in every cell above the new one.

User uploaded file

Column D contains this formula, entered in D2 and filled down to the end of the column.


D2: =SUM(C$2:C2)


NOte that the last sum (120.00) is repeated in the last two rows, where no data has been entered in column C. A revised version of the formula, used in column E, adds a 'switch' to keep cells in this column 'blank' until data has been entered in column C:


E2: =IF(LEN(C)<1,"",SUM($C$2:C2))


Regards,

Barry

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.

Numbers formula for "sum of all cells above this row"

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