Module
Contents
Index 🔎︎

## 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) returns 52.