Excel conditional formula help

labellaluke

New Member
Joined
Dec 10, 2013
Messages
3
I need to create a formula to do the following:

If B3 is greater than zero, calculate A3+72 (A3 is a date field)
If B3 is less than zero, leave cell blank.

I could also use if B3 is not blank, calculate A3+72
If B3 is blank, leave current cell blank.

I've tried several things but can't make it work. This is my first conditional formula.

Thanks! :)
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
what have you tried ?

if B3 is greater than zero than also not blank
so

=If( B3>0, A3+72, "")
should work as for the false b3 is not > than 0 so a blank and less than should work
OR
=IF( OR(B3<0, B3=""), "", A3+72)

what happens if the cell is zero 0
 
Upvote 0
what have you tried ?

if B3 is greater than zero than also not blank
so

=If( B3>0, A3+72, "")
should work as for the false b3 is not > than 0 so a blank and less than should work
OR
=IF( OR(B3<0, B3=""), "", A3+72)

what happens if the cell is zero 0

This is what I did and it doesn't do the calculation. It just displays =A3+72.
=IF(B3>0,"[=A3+72]","0")
 
Upvote 0
By putting in "" you are changing to text in an IF formula
same for the zero "0" thats text

=IF(B3>0,"[=A3+72]","0")
change to
=IF(B3>0,A3+72,0)
as i posted
 
Upvote 0
I assume you are trying to avoid 0 - if you put zero into B7 , then you will get FALSE , as you dont have a condition for a false in the 2nd nested IF
as i asked earlier

what do you want to do if = 0
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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