CarolMcconnell
3 years agoQrew Captain
Formula to find weekdays for a duration
I have this formula but I'm getting errors. I'm not sure if it's just a syntax issue or something else.
I have this in a Numeric Formula field. Both the Date Closed and NWS Date Received are date fields but the Total Pending First Open is a Formula Duration Field.
As the formula is, I'm getting the error "Expecting Date but found duration" on this section "
------------------------------
Carol Mcconnell
------------------------------
If (IsNull ([Date Closed]),WeekdaySub(Today()-[NWS Date Received]-[Total pending First Open],[Date Closed]-[NWS Date Received]-[Total pending First Open]))
I have this in a Numeric Formula field. Both the Date Closed and NWS Date Received are date fields but the Total Pending First Open is a Formula Duration Field.
As the formula is, I'm getting the error "Expecting Date but found duration" on this section "
WeekdaySub(Today()-[NWS Date Received]-[Total pending First Open]"
I appreciate any assistance.------------------------------
Carol Mcconnell
------------------------------
- ok, try this
// first calculate the End Date and put it into the formula variable called End Date
var date EndDate = IF(IsNull ([Date Closed]),Today(), [Date Closed]); // ok so now we know the End Date
WeekdaySub($EndDate, [NWS Date Received]) -ToDays([Total pending First Open])
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------