Jan 14, 2020 04:17 PM
I’d like to have a column which will display if it’s time for a page to be updated. It should look at my “Last Updated” column date and if today’s date is less than 1 month from then it from then it would say “Current”, if more than 1 month it would say “Needs Update”, if more than 2 months it would say “Update Now”. Any thoughts? Thanks!
Jan 14, 2020 05:03 PM
Bill, great to see you in the community! Welcome!
Can you be more specific about your definition of a “page”?
Jan 14, 2020 05:05 PM
Hello! By that I just mean a record I have in my table, for example, a URL in the first column which points to one of the pages on our site.
Jan 14, 2020 05:39 PM
I see, so you’re using this table as part of a content refresh calendar - a tickle-folder of sorts to ensure web content get’s a little freshening, right?
Yep, so I think you need just a formula field that takes the last updated date field and adds 30 days to it, right?
Days Since Refresh
DATETIME_DIFF(TODAY(), {Last Update})/86400
Update Status
IF({Days Since Refresh} < 30, "Current", "Needs Refresh")
Jan 14, 2020 05:53 PM
Yes, exactly. Now let’s say I have three options though, how would I do this?
Last Update is less than 30 days would be “Current”
Last Update is between 30 days and 60 days would be “Needs Refresh”
Last Update is more than 60 days days would be “Update Now”
Jan 14, 2020 06:07 PM
IF({Days Since Refresh} < 30,
"Current",
IF({Days Since Refresh} < 60,
"Needs Refresh",
"Update Now!"
)
)
Jan 14, 2020 06:43 PM
Thanks for this. Now I think I have figured out what I want. How do I use simply the DATETIME_DIFF(TODAY(), {Last Update})/86400 formuala, but if it returns an empty value, the cell is left blank?
Jan 15, 2020 08:53 AM
Days Since Refresh
IF({Last Update} = '',
'',
DATETIME_DIFF(TODAY(), {Last Update})/86400
)
Jan 15, 2020 04:37 PM
Great! Going to bother you with one more thing. I’d like to color records based on my Days Since Update field. Could I do that? For example if under 30 days, green. If between 31 and 60 days, orange. And anything greater than 61 days, red.
Jan 15, 2020 04:52 PM
If you have a Pro account, this is possible to a degree.