メインコンテンツへスキップ

Excelで特定の年の最初の月曜日を見つけて取得するにはどうすればよいですか?

ワークシートで、特定の日付からXNUMX年の最初の月曜日をどのように計算して取得できますか? この記事では、Excelでこのタスクを解決するためのいくつかの便利な数式を紹介します。

数式を使用して、特定の年の最初の月曜日を計算して取得します


数式を使用して、特定の年の最初の月曜日を計算して取得します

次の式を適用して、特定の年の最初の月曜日を計算してください。

次の式を入力します。 = DATE(YEAR(A2)、1,8)-WEEKDAY(DATE(YEAR(A2)、1,6)) 結果を検索する空白のセルに入力し、塗りつぶしハンドルをこの数式を適用するセルまでドラッグすると、指定した日付から最初の月曜日の日付が一度に表示されます。スクリーンショットを参照してください。

注意:

1.日付形式ではない年番号セルのリストがある場合は、次の数式を適用してください。

= DATE(A2,1,1)+ CHOOSE(WEEKDAY(DATE(A2,1,1)、2)、0,6,5,4,3,2,1) 特定の年に基づいて最初の月曜日の日付を取得するには、スクリーンショットを参照してください。

2.上記の式では、 A2 セルには、最初の月曜日を取得する日付または年が含まれています。

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (5)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Description:
You can find the (n)th (x)day of a given M and Y where x is a number representing the day of the week (from 1 = Sunday through to 7 = Saturday) with this formula:

=DATE(Y,M,(n*7)+1)-WEEKDAY(DATE(Y,M,8-x))


When applied to the example:
n = 1 (1st occurrence in month)
x = 2 (of a Monday)
M = 1 (in January)
Y = A2 (of year in cell A2)

Thus:
=DATE(YEAR(A2),1,1*7+1)-WEEKDAY(DATE(YEAR(A2),1,8-2))


When simplified, you arrive at the same formula as the article:
=DATE(YEAR(A2),1,8)-WEEKDAY(DATE(YEAR(A2),1,6))


Hope this helps the next guy!
This comment was minimized by the moderator on the site
Description:
You can find the (n)th (x)day of a given M and Y where x is a number representing the day of the week (from 1 = Sunday through to 7 = Saturday) with this formula:

=DATE(Y,M,(n*7)+1)-WEEKDAY(DATE(Y,M,8-x))


When applied to the example:
n = 1
(1st occurrence in month)
x = 2
(of a Monday)
M = 1
(in January)
Y = A2
(of year in cell A2)

=DATE(YEAR(A2),1,1*7+1)-WEEKDAY(DATE(YEAR(A2),1,8-2))


When simplified, you arrive at the same formula as the article:
=DATE(YEAR(A2),1,8)-WEEKDAY(DATE(YEAR(A2),1,6))


Hope this helps the next guy!
This comment was minimized by the moderator on the site
Really bummed and disappointed you didn't take the time to explain the formula so we can adapt to other needs.
This comment was minimized by the moderator on the site
I can't login, and my previous response to stormtrance was incorrect. The formula DOES work. I do wish, though, that there was an explanation so I could figure out how to get each Monday and Friday date of every month.
This comment was minimized by the moderator on the site
Completely agree; also, the formula does not work. Here's the formula in action.8/5/2014 Thursday, January 2, 2014
8/5/2015 Friday, January 2, 2015
8/5/2016 Saturday, January 2, 2016
8/5/2017 Monday, January 2, 2017
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations