NÚMSEMANA_OOO

A função NÚMSEMANA_OOO calcula o número de semana do ano para uma determinada data.

Ícone de nota

This function exists for interoperability with LibreOffice releases older than 5.1.0 and OpenOffice.org. It calculates week numbers for a week numbering system in that week number 1 is the week that contains the January 4th. This function does not provide interoperability with other spreadsheet applications. For new documents use the WEEKNUM or ISOWEEKNUM function instead.


Sintaxe

NÚMSEMANA_OOO(número; modo)

número é o número interno de data.

modo define o início da semana e o tipo de cálculo.

1 = domingo

2 = segunda-feira (ISO 8601)

outro valor = segunda-feira (ISO 8601)

Exemplos

=NÚMSEMANA_OOO(DATA(1995;1;1);1) devolve 1

=NÚM.EMANA_OOO(DATA(1995;1;1);2) devolve 52. A semana 1 começa na segunda-feira, 2 de janeiro de 1995.