Advanced-excel-functions-advanced-excel-date-time-weekday-function
提供:Dev Guides
日付と時刻-WEEKDAY関数
説明
WEEKDAY関数は、日付に対応する曜日を返します。 日は、デフォルトで1(日曜日)から7(土曜日)の範囲の整数として与えられます。
構文
WEEKDAY (serial_number, [return_type])
引数
Argument | Description | Required/Optional |
---|---|---|
Serial_number |
A sequential number that represents the date of the day you are trying to find. 日付は、DATE関数を使用するか、他の数式または関数の結果として入力する必要があります。 |
Required |
Return_type |
A number that determines the type of return value. 下記の返品タイプ表をご覧ください。 |
Optional |
戻り型テーブル
Return_type | Number Returned |
---|---|
1 or omitted | Numbers 1 (Sunday) through 7 (Saturday). Behaves like previous versions of Microsoft Excel. |
2 | Numbers 1 (Monday) through 7 (Sunday). |
3 | Numbers 0 (Monday) through 6 (Sunday). |
11 | Numbers 1 (Monday) through 7 (Sunday). |
12 | Numbers 1 (Tuesday) through 7 (Monday). |
13 | Numbers 1 (Wednesday) through 7 (Tuesday). |
14 | Numbers 1 (Thursday) through 7 (Wednesday). |
15 | Numbers 1 (Friday) through 7 (Thursday). |
16 | Numbers 1 (Saturday) through 7 (Friday). |
17 | Numbers 1 (Sunday) through 7 (Saturday). |
ノート
- Microsoft Excelは、日付を連続したシリアル番号として保存するため、計算に使用できます。 デフォルトでは、1900年1月1日はシリアル番号1、2008年1月1日は1900年1月1日から39,448日後のシリアル番号39448です。
- serial_numberが現在の日付基準値の範囲外の場合、WEEKDAYは#NUM!を返します。 エラー値
- return_typeが上の表で指定された範囲外の場合、WEEKDAYは#NUM!を返します。 エラー値
- 指定されたserial_numberが数値として認識できない場合、WEEKDAYは#VALUE!を返します。 エラー値
- 指定されたreturn_typeが数値として認識できない場合、WEEKDAYは#VALUE!を返します。 エラー値
適用範囲
Excel 2007、Excel 2010、Excel 2013、Excel 2016