IF Statement

mdestasio

New Member
Joined
Aug 23, 2011
Messages
5
I am about to lose my mind...I think i am correctly writing an IF statement but it is not returning the value I am looking for. Can anyone validate that I have written this correctly. Thank you!

=IF(J24=0,(I27+J23),(I27+J24))

If J24 is greater than zero it returns the correct value. If J24 is 0 it just returns 0.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
What is in I27? If it is 0, then the result would be 0 when J24=0. Otherwise, the formula looks OK.
 
Upvote 0
Thanks for the validation...I27 is 17400, i just tested this on a new tab and it works...which leads me to the next question...what else would cause it to returning a value of zero?
 
Upvote 0
BTW I ran the formula evaluator and it checks out step by step. True statement and the first formula get the correct sum but then shows zero as the result
 
Upvote 0
What do you get if you put =I27+J23 in a blank cell? Is it 0? That's what the formula is calling for.
 
Upvote 0
So maybe one is >0 and one is <0 or both are 0.

Also, note that the formula does not reference J24, but I think that is what you wanted.
 
Upvote 0
That formula can be reduced to:

=I27+IF(J24,J24,J23)

What is in all 3 cells?
 
Upvote 0
What I am trying to calculate is projected revenue by week. I27 ithe cummulative actual revenue, J23 is the weekly planned revenue and J24 is weekly actual revenue. What I am asking the formula to do is calculate projected revenue projectedby taking the cummulative total (i27) and adding weekly actuals (j24), but if the actuals are currently zero then add the planned revenue (j23).

After further testing it appears my problem is with j23. If i enter =j23 in a cell it gives me 0 when the value $16000. the formula for cell j23 is: =SUMIF($G:$G,"planned",K:K)
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top