basic if statement

pickwa

Board Regular
Joined
Jun 6, 2011
Messages
54
Hi guys im struggling with the basics again

=IF(B2<(TODAY()-40),"yes","no")

this formula works well but is there a way of making it say

=IF(b2<(today()-40 or 0),"yes","no"

so if the value in b2 is 0 or blank it will display also display "NO" as it currently says "yes"

i mite be going about this in the wrong way?

Can anyone advise me?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi thanks for your respones, would i need to encorperate that into my current formula somehow. Appologies i am a complete novice and slightly out of my depth!

Thanks

Nick
 
Upvote 0
=IF(and(B2>0,b2<(TODAY()-40),"yes","no"))

this is what i came up with from the last response.......obviously not quite rite. Feel like such an idiot but i just dont have a clue what im doing when it comes to large statements.
 
Upvote 0
Sorry, my formula got cut off due to < > symbols...

should be

=IF(AND(B2 > 0, B2 < TODAY()-40),"yes","no")
 
Upvote 0
Absolute legend mate! really appreciate the help! im slowly getting my head round this program but its going to take a while!

its good of you to help me out!
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,726
Members
452,939
Latest member
WCrawford

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