Aug 23 2023 01:16 AM
Hi All,
I need help with a calculated column in SharePoint.
I have 2 dates that I want to use to calculate the number of dates between them. My current formula (with my custom column names) is;
=IF(ISBLANK([1ST PROBATION REPORT RECEIVED DATE], "", NETWORKDAYS([1ST PROBATION REPORT RECEIVED DATE], [1ST PROBATION REPORT DUE DATE]))
I keep receiving a syntax error when accepting, with correlation ID fe39d3a0-b092-7000-0b42-686cd4298b68.
I've tried replacing the "," with ";", and this also does not resolve the syntax error.
Thanks upfront for any assistance.
Aug 23 2023 01:46 AM
Solution@Anubis66614 NETWORKDAYS() function is not supported in SharePoint calculated formulas.
You have to use the formula like:
=IF(ISBLANK([1ST PROBATION REPORT RECEIVED DATE]),"",DATEDIF([1ST PROBATION REPORT RECEIVED DATE],[1ST PROBATION REPORT DUE DATE],"d"))
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Aug 23 2023 01:48 AM - edited Aug 23 2023 02:09 AM
If above formula still giving you the syntax error, try this:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Aug 23 2023 05:03 AM