IF statement with a DATEDIF calculation in it

Nev Bentley

New Member
Joined
Oct 30, 2017
Messages
4
Is it possible to add a piece of text to say that there is no end date in the DateDif calculation I have this =IF(DATEDIF(J18,K18,"m"),"No End date") and I get the #VALUE returned
 
the formula i was using returned years.month
how do i add an if to this that if years.month <18 then "needs approval" otherwise "ok"
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
i tried this and am getting my results
=IF(DATEDIF([@DOB],TODAY(),"Y")<18,"Needs Approval","ok")
how can i correct that blank date of birth also generates needs approval or is missing instead of ok

also if i have this formula in a cell
can i override it manually with approval received or will it keep reverting to approval needed
 
Upvote 0
whats wrong with this?
=IF(AND(DATEDIF([@DOB],TODAY(),"Y")<18,[@service]="otps internet",[@service]="otps phone",[@service]="otps clothing",[@service]="otps utilities"),"needs approval","ok")
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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