Forum Discussion
QuickBaseCoachD
8 years agoQrew Captain
Not tested but try this as a formula Numeric field called [Service Years]
var date EndDate = IF(IsNull([Termination Date],Today(),[Termination Date]);
ToDays($EndDate - [Date of Hire]) / 365.25
var date EndDate = IF(IsNull([Termination Date],Today(),[Termination Date]);
ToDays($EndDate - [Date of Hire]) / 365.25
- JohnDonnelly8 years agoQrew Trainee
Thank you for the quick response. I receive the following syntax error with the formula above;
Formula syntax error
var date EndDate = IF(IsNull([Termination Date],Today(),[Termination Date]) ;
Please check the syntax of your entire formula. Possible culprits are a mismatched set of parentheses, missing quotes, or an extra bracket.
ToDays($EndDate - [Date of Hire]) / 365.25 - QuickBaseCoachD8 years agoQrew CaptainMissing a bracket
try this
var date EndDate = IF(IsNull([Termination Date]),Today(),[Termination Date]);
ToDays($EndDate - [Date of Hire]) / 365.25 - JohnDonnelly8 years agoQrew Trainee
That works perfectly, thank you so much.
- Alexandraochoa7 years agoQrew TraineeI've tried this and it worked perfectly, but how do I get this in number of day? Do I need to switch to duration?
I am doing mine based off of DATE SENT TO LAB & REPORT DATE. Any help would be appreciated. Thanks - QuickBaseCoachD7 years agoQrew CaptainPlease post your formula