Forum Discussion
Liron567
Mar 10, 2023Copper Contributor
Update SharePoint column status depending on if a date has passed or not
Hi
I am trying to do an auto update column for status of staff holiday (pending, active, ended)
I have 2 date columns 'start date' and 'end date'
I have set up conditional formatting on the status column as follows
=IF([Start Date]>TODAY(),"Pending",IF([End Date]>TODAY(),"Active",IF([End Date]<TODAY(),"Ended")))
but there are some issues with this formula.
Can anyone help me write a formula that would work for such instance.
TIA
Liron567 Try using this:
=IF([Start Date]>TODAY(),"Pending",IF([End Date]>TODAY(),"Active",IF([End Date]<TODAY(),"Ended","")))
If not working, you can try using NOW() instead of TODAY()
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.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
- Liron567Copper ContributorThank you, this looks similar to mine. Could you please tell me what you changed.
TIALiron567 IF function in SharePoint calculated formula has syntax like below:
IF(logical_test, value_if_true, value_if_false)
You did not provide value_if_false parameter in your formula for last IF function.
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.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs