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 ...
ganeshsanap
Mar 11, 2023MVP
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