WEEKNUM_EXCEL2003

模块
目录
索引 🔎︎

## WEEKNUM_ADD

结果为一个日期所在的星期序列数。

The WEEKNUM_EXCEL2003 function is designed to calculate week numbers exactly as Microsoft Excel 2003 did. Use the WEEKNUM function for ODF OpenFormula and Excel 2010 compatibility, or ISOWEEKNUM function when you just need ISO 8601 week numbers. In releases prior to LibreOffice 5.1 WEEKNUM_EXCEL2003 was named WEEKNUM_ADD.

### 语法

WEEKNUM_EXCEL2003(Date; ReturnType)

Date 日历周内的日期。

ReturnType 1 表示一周从星期日开始，2 表示一周从星期一开始。

### 示例

2001 年 12 月 24 日在哪一周?

「=WEEKNUM_EXCEL2003(DATE(2001;12;24);1)」返回 52。