Nov 24, 2020 08:20 AM
Hi everyone. I am able to get the following using Excel formulas but unable to find the equivalent in Airtable formula. Would appreciate any help here:
[based on a given date e.g. 2020-11-25], show
I tried workdays formula to no avail.
Thank you.
jamesquek
Nov 24, 2020 01:45 PM
Hi James!
That’s a fun question. Airtable’s formulas are a little different than Excel, but you can acheive the same results. Here’s how I went about it:
DATETIME_PARSE(DATETIME_FORMAT(Date,'YYYY') & DATETIME_FORMAT(Date,'MM') & '01','YYYYMMDD')
DATEADD(DATEADD({First Day of Month},1,'month'),-1,'day')
DATETIME_FORMAT({Last Day of Month},'D')
{Days In Month} - DATETIME_FORMAT(Date,'D')
Here’s the base where I made these formulas: https://airtable.com/invite/l?inviteId=invAGgFDa1m3xz4Ix&inviteToken=1941c133a29e2c9439cc26d23ed92df...
And a very useful overview of date formatting in Airtable: https://support.airtable.com/hc/en-us/articles/216141218-Supported-format-specifiers-for-DATETIME-FO...
Nov 26, 2020 05:30 PM
[SOLVED]
That’s amazing, Julian. Working perfectly with slight tweaks.
I am appreciative of the great help I am getting from this community!
jamesquek