If(

If([(Year) Can Have Actual Flag],

If([(Prior Year Entry) Can Have Actual Flag], [(Calc) Actual Dollars Total Gross] - [(Prior Year Entry) Actual Cost Savings],

[(Calc) Actual Dollars Total Gross]),

If([(Prior Year Entry) Can Have Actual Flag], [(Calc) Budget Dollars Total Gross] - [(Prior Year Entry) Actual Cost Savings],

If([(Prior Year Entry) Budgeted Cost Savings] > 0 or [(Prior Year Entry) Budgeted Cost Savings] < 0, [(Calc) Budget Dollars Total Gross]- [(Prior Year Entry) Budgeted Cost Savings],

[(Calc) Budget Dollars Total Gross]))

)

< 0 and [(Tactic/Initiative) Zero-out Negative Incremental], 0,

If([(Year) Can Have Actual Flag],

If([(Prior Year Entry) Can Have Actual Flag], [(Calc) Actual Dollars Total Gross] - [(Prior Year Entry) Actual Cost Savings],

[(Calc) Actual Dollars Total Gross]),

If([(Prior Year Entry) Can Have Actual Flag], [(Calc) Budget Dollars Total Gross] - [(Prior Year Entry) Actual Cost Savings],

If([(Prior Year Entry) Budgeted Cost Savings] > 0 or [(Prior Year Entry) Budgeted Cost Savings] < 0, [(Calc) Budget Dollars Total Gross]- [(Prior Year Entry) Budgeted Cost Savings],

[(Calc) Budget Dollars Total Gross]))

)

)I want to have the same calculations but remove [(Year) Can Have Actual Flag] and [(Prior Year Entry) Can Have Actual Flag]. Instead I want to use If(NotIsNull([(Calc) Actual Dollars Total Gross] for the Actual dollars and If(NotIsNull([(Calc) Budget Dollars Total Gross] for the Budget dollar calculations. I just seem to be missing some logic or parenthesis no matter what I come up with.

Any help appreciated.