Hi @Sofie Gregory ,
Welcome to Q&A forum!
To set up a SharePoint List with a status column that automatically updates based on the expiry date, you can use JSON column formatting. Below is an example of how you can achieve the three status options (Active, Expired, Needs Attention) using JSON code.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "=if([$expirydate] < @now, 'Expired', if([$expirydate] > @now + 5184000000, 'Active', 'Needs attention'))",
"style": {
"background-color": "=if([$expirydate] < @now, 'red', if([$expirydate] > @now + 5184000000, ' ', 'yellow'))"
}
}
And the result:
Good day!
If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.