在 Excel 公式中将星期一视为一周的第一天,获取特定日期的一年中的一周

Getting the week of the year of particular days, considering Monday as the first day of the week in Excel Formula

我正在尝试使用 Excel 中的公式查找特定日期在一年中的第几周。我发现 Excel 将星期日视为一周中的 1st 天,而不是将星期一作为第一天。

我使用公式 =WEEKNUM(A2)(其中 A2 是日期行)并得到如下结果

--------------------------------
|  Date      |   Week of Year  |
--------------------------------
| 5/16/2015  |        20       |
| 5/17/2015  |        21       |
| 5/18/2015  |        21       |
| 5/19/2015  |        21       |
| 5/20/2015  |        21       |
| 5/21/2015  |        21       |
| 5/22/2015  |        21       |
| 5/23/2015  |        21       |
| 5/24/2015  |        22       |
| 5/25/2015  |        22       |
--------------------------------

但是我如何得到如下结果(将星期一视为一周的第一天)

--------------------------------
|  Date      |   Week of Year  |
--------------------------------
| 5/16/2015  |        20       |
| 5/17/2015  |        20       |
| 5/18/2015  |        21       |
| 5/19/2015  |        21       |
| 5/20/2015  |        21       |
| 5/21/2015  |        21       |
| 5/22/2015  |        21       |
| 5/23/2015  |        21       |
| 5/24/2015  |        21       |
| 5/25/2015  |        22       |
--------------------------------

将第二个参数传递给 WEEKNUM2 代表星期一。

=WEEKNUM(A2, 2)