1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Airtableのformulaで月の最終日(eomonth)を計算する

Last updated at Posted at 2024-08-01

はじめに

ExcelやGoogle Sheetsにあるeomonth関数がAirtableにはない。
したがって、関数の組み合わせにより実装する必要がある。

具体的な書き方

例えば、翌月末日の計算はこのように実装できる

DATEADD(
    DATETIME_PARSE(
        MONTH(DATEADD({日付フィールド}, 2, 'month')) & 
        "/" & 1 & "/" & 
        YEAR(DATEADD({日付フィールド}, 2, 'month'))
    ), 
  -1, 'day'
)

注意点

タイムゾーン設定を参照元・参照先のフィールドで整合させる必要がある

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?