This formula
appears on row 30 of column A
As a value is added to a row between 8 and 26, the formula calculates - in this case, subtracts the value
from the numeric balance given by the formula. This works well enough.
But is it possible to add a value in any row from 8 to 26, have it appear in the cell, and NOT calculate the balance by subtracting the value ? This would be a conditional situation as I see it:
In case you have questions - bills are paid either out of a bank account(Btn1 code)
or, at times, with a credit card(Btn2)
Btn1 calculates the subtraction giving the real bank balance
Btn2 does NOT calculate, leaving the bank balance and formula unchanged, however
the credit card balance has that value ADDED to it.
All values are entered from a userform Textbox1 with two buttons, Btn1 and Btn2, giving the user the option of what source they want to pay a bill from.
The formula must remain intact in order to perform Btn1 calculations. The caveat is having a value
added in a column with a formula at the bottom, yet telling Excel not to perform the calculation.
My term for this is "conditional calculation" - and I don't know if it can be done. I tired to make this as simple and clear as possible without too much information.
Thanks for anyone's help.
cr
Code:
=(SUM(BE3:BE7)-SUM(BE8:BE26))
As a value is added to a row between 8 and 26, the formula calculates - in this case, subtracts the value
from the numeric balance given by the formula. This works well enough.
But is it possible to add a value in any row from 8 to 26, have it appear in the cell, and NOT calculate the balance by subtracting the value ? This would be a conditional situation as I see it:
Code:
if Btn1 is pressed or clicked then
=(SUM(BE3:BE7)-SUM(BE8:BE26)) = true (value is added to correct row in column - perform the calculation - subtraction)
Else (Btn2 is pressed or clicked)
=(SUM(BE3:BE7)-SUM(BE8:BE26)) = false (value is added to correct row in column but do not calculate the result, but leave the formula intact)
End if
In case you have questions - bills are paid either out of a bank account(Btn1 code)
or, at times, with a credit card(Btn2)
Btn1 calculates the subtraction giving the real bank balance
Btn2 does NOT calculate, leaving the bank balance and formula unchanged, however
the credit card balance has that value ADDED to it.
All values are entered from a userform Textbox1 with two buttons, Btn1 and Btn2, giving the user the option of what source they want to pay a bill from.
The formula must remain intact in order to perform Btn1 calculations. The caveat is having a value
added in a column with a formula at the bottom, yet telling Excel not to perform the calculation.
My term for this is "conditional calculation" - and I don't know if it can be done. I tired to make this as simple and clear as possible without too much information.
Thanks for anyone's help.
cr
Last edited: