データ型:数式
戻り値のデータ型:数値
IF( NOT( ISBLANK( birthday__c ) ) ,
IF( DATE( 2000 , MONTH( birthday__c ) , DAY( birthday__c ) ) <= DATE( 2000 , MONTH( TODAY() ) , DAY( TODAY() ) ),
YEAR (Today()) - YEAR ( birthday__c ),
YEAR (Today()) - YEAR ( birthday__c ) -1 ),
null)
データ型:数式
戻り値のデータ型:テキスト
IF(
FLOOR((TODAY() - birthday__c ) / 365.2425) < 10,
"a_10代未満",
IF(
FLOOR((TODAY() - birthday__c ) / 365.2425) < 20,
"b_10代",
IF(
FLOOR((TODAY() - birthday__c ) / 365.2425) < 30,
"c_20代",
IF(
FLOOR((TODAY() - birthday__c ) / 365.2425) < 40,
"d_30代",
IF(
FLOOR((TODAY() - birthday__c ) / 365.2425) < 50,
"e_40代",
IF(
FLOOR((TODAY() - birthday__c ) / 365.2425) < 60,
"f_50代",
IF(
FLOOR((TODAY() - birthday__c ) / 365.2425) < 70,
"g_60代",
IF(
FLOOR((TODAY() - birthday__c ) / 365.2425) < 80,
"h_70代",
IF(
FLOOR((TODAY() - birthday__c ) / 365.2425) < 90,
"i_80代",
IF(
FLOOR((TODAY() - birthday__c ) / 365.2425) < 100,
"j_90代",
"k_90代以上"
)
)
)
)
)
)
)
)
)
)
データ型:数式
戻り値のデータ型:数値
※Birthdateを生年月日を聞く項目名(birthday__cなど)に差し替えてください。
IF(MONTH(TODAY()) >=4,
IF(
MONTH( Birthdate ) >= 4,
YEAR(TODAY()) - YEAR( Birthdate ),
YEAR(TODAY()) - YEAR( Birthdate ) + 1
),
IF(
MONTH( Birthdate ) >= 4,
YEAR(TODAY()) - YEAR( Birthdate )-1,
YEAR(TODAY()) - YEAR( Birthdate )
))
IF(
YEAR(govtech__begin_date__c) >= 2019,
"令和" & TEXT(YEAR(govtech__begin_date__c) - 2018) & "年" & TEXT(MONTH(govtech__begin_date__c)) & "月" & TEXT(DAY(govtech__begin_date__c)) & "日",
"#エラー"
)