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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,214,523
Messages
6,120,034
Members
448,940
Latest member
mdusw

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