You need to sign in to do that
Don't have an account?

Error in formula field
Hello,
I have a formula field with the formula below:
(5 * ( FLOOR((Start_Date__c- DATE(1900,1, 8) ) / 7 ) ) + MIN(5, MOD(Start_Date__c- DATE(1900,1, 8), 7 ) ) )
-
(5 * ( FLOOR((End_Date__c- DATE(1900,1, 8) ) / 7 ) ) + MIN(5, MOD(End_Date__c- DATE(1900,1, 8), 7 ) ) )
I need to separate only the working days between these dates, and put in showing in the field formulates the result, but it is giving the following error
Error: Formula result is data type (Number), incompatible with expected data type (Date).
I have a formula field with the formula below:
(5 * ( FLOOR((Start_Date__c- DATE(1900,1, 8) ) / 7 ) ) + MIN(5, MOD(Start_Date__c- DATE(1900,1, 8), 7 ) ) )
-
(5 * ( FLOOR((End_Date__c- DATE(1900,1, 8) ) / 7 ) ) + MIN(5, MOD(End_Date__c- DATE(1900,1, 8), 7 ) ) )
I need to separate only the working days between these dates, and put in showing in the field formulates the result, but it is giving the following error
Error: Formula result is data type (Number), incompatible with expected data type (Date).
Datatype = Formula
Result = Date
instead of selecting Result = Number
All Answers
Datatype = Formula
Result = Date
instead of selecting Result = Number