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

[スニペット]Excel関数:週数と日付

Posted at

日本語で今日が今年の第何週かを取得する:「2025年 第16週」形式

=YEAR(TODAY()) & "年 第" & TEXT(ISOWEEKNUM(TODAY()), "00") & "週"

A1の日付が今月の第何週に当たるかを取得する

=IF(A1 < (DATE(YEAR(A1), MONTH(A1), 1) + MOD(8 - WEEKDAY(DATE(YEAR(A1), MONTH(A1), 1), 2), 7)), 0, INT((A1 - (DATE(YEAR(A1), MONTH(A1), 1) + MOD(8 - WEEKDAY(DATE(YEAR(A1), MONTH(A1), 1), 2), 7))) / 7) + 1)

「◯年のISO第n週は、何月何日(月曜)から始まるか」を求める
年 → セル A1
週番号 → セル B1

=DATE(A1,1,4) - WEEKDAY(DATE(A1,1,4),2) + (B1-1)*7
0
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
0
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?