I'm trying to create a formula that keeps a running total.
So it will look in the cell to the left and if there is a value greater than zero it looks for the next cell above with a value greater than zero and adds the two together.
If there is no value greater than zero above it takes just the value to the left.
The problem I'm having currently is if either the cell to the left or the cell directly above is empty it leaves the cell empty even though there's a value in either the cell to the left or "A CELL" above just not the cell directly above.
it takes no value at all leaving the cell blank. I need it be smart enough to look at more than just the cell directly above.
[TABLE="class: grid, width: 500, align: right"]
<tbody>[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]O[/TD]
[TD="align: center"]P[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Daily Over/Short[/TD]
[TD="align: center"]MTD Cash [/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: right"]-2[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: right"]-12[/TD]
[TD="align: right"]Formula goes here[/TD]
[/TR]
</tbody>[/TABLE]
More than just there actually but every cell in that column.
The cell rows & Columns are accurately labeled in the above sample.
I tried to create an AND/IF formula but don't know the correct syntax for the formula to work.
Thanks all
So it will look in the cell to the left and if there is a value greater than zero it looks for the next cell above with a value greater than zero and adds the two together.
If there is no value greater than zero above it takes just the value to the left.
The problem I'm having currently is if either the cell to the left or the cell directly above is empty it leaves the cell empty even though there's a value in either the cell to the left or "A CELL" above just not the cell directly above.
it takes no value at all leaving the cell blank. I need it be smart enough to look at more than just the cell directly above.
[TABLE="class: grid, width: 500, align: right"]
<tbody>[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]O[/TD]
[TD="align: center"]P[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Daily Over/Short[/TD]
[TD="align: center"]MTD Cash [/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: right"]-2[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: right"]-12[/TD]
[TD="align: right"]Formula goes here[/TD]
[/TR]
</tbody>[/TABLE]
More than just there actually but every cell in that column.
The cell rows & Columns are accurately labeled in the above sample.
I tried to create an AND/IF formula but don't know the correct syntax for the formula to work.
Thanks all