May 22, 2020 10:52 PM
Hi there.
I want to create a base to track my receipts for warranty purposes.
I can just insert the purchase date in a column and track it myself, but what I would like to do is when the entry is one year old change its status in a dropdown column from “current” to “expired”.
Thanks
Solved! Go to Solution.
May 23, 2020 05:34 AM
Thanks everyone for your assistance.
I found a similar formula in a template post on the Universe.
This is what I ended up using.
IF(DATETIME_DIFF(TODAY(), {Purchase Date}, ‘days’) < 365, ‘Current’, ‘Expired’)
May 22, 2020 11:08 PM
Single-select fields (i.e. the dropdown you mentioned) cannot be modified by Airtable itself. You can change it manually, change it via custom code (i.e. the API or the Scripting block), or have an integration system like Zapier or Integromat make the change. My gut says the latter would be easiest.
May 23, 2020 12:36 AM
Everything that @Justin_Barrett said is 100% true and will give you the result that you were specifically asking for.
However, why not just create a simple formula field in Airtable that automatically changes between “Current” and “Expired”? That would be the quickest & easiest way of solving this issue, without needing to jump through a lot of extra hoops.
May 23, 2020 02:26 AM
Thanks @Justin_Barrett and @ScottWorld for the quick responses.
In hindsight it’s not essential to have the result as a dropdown. I had a crack at using Zapier and haven’t gotten that to work yet either. Can you help me with an example formula to insert?
Thanks Darren
May 23, 2020 05:14 AM
I think that this link might be helpful to come up with a formula. Check, in particular, “Date and time fuctions”. Also, replace date or time or field1, field2 in the brackets with your specific field name/date from your database.
If this solution has been helpful, please add SOLVED to the subject line.
Thank you,
Mary Kay
May 23, 2020 05:34 AM
Thanks everyone for your assistance.
I found a similar formula in a template post on the Universe.
This is what I ended up using.
IF(DATETIME_DIFF(TODAY(), {Purchase Date}, ‘days’) < 365, ‘Current’, ‘Expired’)
May 23, 2020 02:39 PM
And that’s why I shouldn’t stay up so late perusing the forum. :slightly_smiling_face: That formula solution did cross my mind, but I got a bit too hyper focused on the single-select part of the original post.
May 23, 2020 03:15 PM
Lol!! :rofl: :joy: I know the feeling, though… this forum can be addicting! :joy: