ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Logical Formulas (https://www.excelbanter.com/excel-worksheet-functions/153190-logical-formulas.html)

debinnyc

Logical Formulas
 
I am trying to build a formula that if values change, the formula changes.
For example, if there is a small column of numbers such as line budgets. If
those budgets are revised, the new budget would be placed in the next column,
with a max of two revisions. I have an actual YTD costs, and a balance
formula. What I need is for the balance formula to calculate against the
budgeted amount (i.e. =budget-YTD). So if the budget is revised, I want the
balance to automatically consider the revised amount, not the original
amount.
I have tried using the IF stmt, but I cannot get the formula to consider the
revisions. Can anyone please help? Thanks

DaveO[_2_]

Logical Formulas
 
Hi, Deb-
Let's say the budget column is A, the first revision column is B, the
second revision column is C; actuals YTD are in D, and the Balance
formula is in E. Let's assume the revisions are blank until they are
updated, since it's possible for a budget to be revised to zero.
(Trying to avoid a logic flaw, here.)

Try this formula:
=IF(C4<"",C4-D4,IF(B4<"",B4-D4,A4-D4))

It works from right to left to find the first non-blank entry starting
with revision 2; if revision 2 is blank it checks for a revision 1; if
rev 1 is blank it performs the math on the original budget amount.

Will that get you where you need to go?

Dave O


debinnyc

Logical Formulas
 
Still not working. I copied the formula exactly to the spreadsheet, and
filled in the appropriate cell locations. The formula does not have any
errors, but the result of the formula shows a negative value of the current
YTD, in other words 0-YTD, not the budgeted as desired. For reference if it
helps, the columns a

Budget C74
Rev 1 E74
Rev 2 G74
YTD I74

Thanks

"DaveO" wrote:

Hi, Deb-
Let's say the budget column is A, the first revision column is B, the
second revision column is C; actuals YTD are in D, and the Balance
formula is in E. Let's assume the revisions are blank until they are
updated, since it's possible for a budget to be revised to zero.
(Trying to avoid a logic flaw, here.)

Try this formula:
=IF(C4<"",C4-D4,IF(B4<"",B4-D4,A4-D4))

It works from right to left to find the first non-blank entry starting
with revision 2; if revision 2 is blank it checks for a revision 1; if
rev 1 is blank it performs the math on the original budget amount.

Will that get you where you need to go?

Dave O



debinnyc

Logical Formulas
 
Is there anyone that can help? Please advise.

"debinnyc" wrote:

Still not working. I copied the formula exactly to the spreadsheet, and
filled in the appropriate cell locations. The formula does not have any
errors, but the result of the formula shows a negative value of the current
YTD, in other words 0-YTD, not the budgeted as desired. For reference if it
helps, the columns a

Budget C74
Rev 1 E74
Rev 2 G74
YTD I74

Thanks

"DaveO" wrote:

Hi, Deb-
Let's say the budget column is A, the first revision column is B, the
second revision column is C; actuals YTD are in D, and the Balance
formula is in E. Let's assume the revisions are blank until they are
updated, since it's possible for a budget to be revised to zero.
(Trying to avoid a logic flaw, here.)

Try this formula:
=IF(C4<"",C4-D4,IF(B4<"",B4-D4,A4-D4))

It works from right to left to find the first non-blank entry starting
with revision 2; if revision 2 is blank it checks for a revision 1; if
rev 1 is blank it performs the math on the original budget amount.

Will that get you where you need to go?

Dave O




All times are GMT +1. The time now is 06:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com