Documentation/Calc Functions/WEEKNUM EXCEL2003

    From The Document Foundation Wiki
    Other languages:

    Function name:



    Date and Time


    Determines the week number for a date specified either by a date-time serial number or in a text string. It is assumed that January 1 always lies within week 1. You can select whether the first day of a new week is on Sunday or Monday.

    WEEKNUM_EXCEL2003 exists only for interoperability with legacy documents created with older versions of Microsoft Excel. In Calc, if you open an Excel 2003 (.xls) file that contains calls to the WEEKNUM function, those calls are converted to calls to the WEEKNUM_EXCEL2003 function. If you save a document from Calc in ODS (Open Document Format for Office Applications) or OOXML (Office Open XML) format, any calls to the WEEKNUM_EXCEL2003 function are converted to refer to the WEEKNUM function.

    Because of the limited applicability of this function, fuller details are intentionally omitted from this wiki.

    Note pin.svg

    For all new documents and most cases that do not require interoperability with legacy Excel spreadsheets, it is recommended that you use Calc’s two more flexible functions to calculate the week number of a specified date. These are WEEKNUM (compliant with ODF 1.2) and ISOWEEKNUM (compatible with ISO 8601).


    WEEKNUM_EXCEL2003(Date; ReturnType)





    Additional details:




    Related LibreOffice functions:


    ODF standard:


    Related (or similar) Excel functions: