0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

2つの日付の間に残っている月数を計算します

Last updated at Posted at 2022-08-25

Answersで回答する時に使う情報のまとめに戻る

2つの日付の間に残っている月数を計算します

(MONTH(Custom_End_Date__c) + (12*(YEAR(Custom_End_Date__c)-YEAR(TODAY()))) - MONTH(TODAY())

Calculate the number of month left between two dates

変形バージョン、年と月を表示したい。

上記月バージョンを使って楽をします。

YEAR :

FLOOR( (MONTH(ales_Start_Date__c) + (12*(YEAR(ales_Start_Date__c)-YEAR(TODAY()))) - MONTH(TODAY())/12)

MONTH:

MOD( (MONTH(ales_Start_Date__c) + (12*(YEAR(ales_Start_Date__c)-YEAR(TODAY()))) - MONTH(TODAY()),12)

Formula to help count months

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?