Jul 13, 2019 03:33 PM
How would you write a date time formula for Beginning of current month to End of current month? The trick is, it’s the current month and the month always changes.
Any Jedi out there?
Jul 15, 2019 11:02 PM
Try adding a 0 to the outer false condition like below. Also, you can probably replace {Today}
with the TODAY()
function to eliminate an extra field.
IF({Start Date}, IF(DATETIME_FORMAT({Deal Date}, 'YYYYMM')=DATETIME_FORMAT(TODAY(), 'YYYYMM'), 'This Month', IF(DATETIME_FORMAT({Deal Date}, 'YYYYMM')=DATETIME_FORMAT(DATEADD(TODAY(), -1, 'month'), 'YYYYMM'), 'Last Month')), 0)
Jul 16, 2019 12:44 AM
That last tweak fixed everything, all working perfectly. Thanks!
Jul 17, 2019 05:19 PM
Hi,
This formula is working but I get an #ERROR! when the service booking date is blank. How would you tweak it to get rid of the #ERROR!?
Jul 17, 2019 07:04 PM
All those nested ifs testing what the month is could be a singular Switch function: SWITCH({Month},1,'January',2,'February',3,'March',4,'April',5,'May',6,'June',7,'July',8,'August',9,'September',10,'October',11,'November',12,'December')
To run a formula only when a field is not blank you would do something like this: IF({Field in question}, <>, BLANK())
. In your case, you’d be inserting the SWITCH function in place of the ‘<>’.
Jul 17, 2019 11:19 PM
Thanks for your help, no more #ERROR!, cheers!
Jul 17, 2019 11:53 PM
Hi,
Can you help solve this challenge? I have a multi-select field and whenever there is a CANP-AL or CANP-GL, I would like it to be input in a separate field? Is this possible? How would you write the formula? Thanks in advance!
Jul 18, 2019 08:56 AM
Use the FIND()
function.
IF(FIND('CANP-AL',{Delivery Co-ordinator Activities}),'CANP-AL',IF(FIND('CANP-GL',{Delivery Co-ordinator Activities}),'CANP-GL'))
For future reference please refer to Airtable’s formula function definition page:
Jul 18, 2019 04:39 PM
Works like Magic, thank you so much!
Jul 18, 2019 05:13 PM
Hi,
Just need a little tweak in your formula. The formula is working but only returns one activity. How would get it to returns multiple activities when performed by one person?
Jul 18, 2019 05:28 PM
Your original request said “or”, so the formula works as an or statement. For it to work for both cases, make two IF() statements seperated by an &. IF(condition, 'value if true')&IF(condition, 'value if true')