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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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