ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If statement (https://www.excelbanter.com/excel-worksheet-functions/255290-if-statement.html)

Donna

If statement
 
I need a formula that will help me produce the correct answer in this
scenario: If Revised forecast is <0 then Forecast - Actual, if Revised
Forecast is 0 then Revised Forecast - Actual

Forecast
360

Revised Forecast
600

Actual
10

Variance
590

This formula is not working -
=IF(D13<"0",SUM(D4-D22),IF(D13"0",SUM(D13-D22)))


Teethless mama

If statement
 
=IF(D13<0,D4-D22,IF(D130,D13-D22,""))


"Donna" wrote:

I need a formula that will help me produce the correct answer in this
scenario: If Revised forecast is <0 then Forecast - Actual, if Revised
Forecast is 0 then Revised Forecast - Actual

Forecast
360

Revised Forecast
600

Actual
10

Variance
590

This formula is not working -
=IF(D13<"0",SUM(D4-D22),IF(D13"0",SUM(D13-D22)))


Donna

If statement
 
Mama - you are awesome!

"Teethless mama" wrote:

=IF(D13<0,D4-D22,IF(D130,D13-D22,""))


"Donna" wrote:

I need a formula that will help me produce the correct answer in this
scenario: If Revised forecast is <0 then Forecast - Actual, if Revised
Forecast is 0 then Revised Forecast - Actual

Forecast
360

Revised Forecast
600

Actual
10

Variance
590

This formula is not working -
=IF(D13<"0",SUM(D4-D22),IF(D13"0",SUM(D13-D22)))


Donna

If statement
 
Just to complicate things.

If there is no revised forecast how can I modify this formula to return the
original forecast?

Forecast
360

Revised Forecast
0

Actual
10

Variance
350


Can one formula handle either situation?



"Teethless mama" wrote:

=IF(D13<0,D4-D22,IF(D130,D13-D22,""))


"Donna" wrote:

I need a formula that will help me produce the correct answer in this
scenario: If Revised forecast is <0 then Forecast - Actual, if Revised
Forecast is 0 then Revised Forecast - Actual

Forecast
360

Revised Forecast
600

Actual
10

Variance
590

This formula is not working -
=IF(D13<"0",SUM(D4-D22),IF(D13"0",SUM(D13-D22)))



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

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