You need to sign in to do that
Don't have an account?
Stavros McGillicuddy
Business days between two dates off by 1
Why does this formula return Sunday result is 2 when it should be 1
(Actual_Ship_Date__c - Expected_Ship_Date__c) - ( FLOOR ( ( ( (Actual_Ship_Date__c) - Expected_Ship_Date__c) / 7 ) ) * 2 ) + CASE(MOD ( Expected_Ship_Date__c - DATE( 1900,1,6 ),7), 0,CASE( MOD ((Actual_Ship_Date__c) - DATE( 1900,1,6 ),7),0,1,2 ), 1,CASE( MOD ((Actual_Ship_Date__c) - DATE( 1900,1,6 ),7),0,2,1 ), IF(MOD(Expected_Ship_Date__c - DATE( 1900,1,6 ),7) - MOD((Actual_Ship_Date__c) - DATE( 1900,1,6 ),7) <= 0 ,0, IF(MOD((Actual_Ship_Date__c) - DATE( 1900,1,6 ),7) = 0,1,-2 ) ) )
The formula is not executing fully is giving error somewhere else the true value would be 1 or false would be -2. Therefore its failing in 3 or 4 line of the formula .Please check the conditions that you have inserted .
Thanks
Date2= Actual_Ship_Date__c
Date1= Expected_Ship_Date__c