WEEKDAY
Returns the day of the week for the given date value. The day is returned as an integer between 1 (Sunday) and 7 (Saturday) if no type or type=1 is specified. For other types, see the table below.
Składnia
DZIEŃ.TYG (liczba; typ)
Liczba jako wartość daty jest liczbą dziesiętną, dla której jest zwracany jest dzień tygodnia.
Type is optional and determines the type of calculation.
Type |
Weekday number returned |
1 or omitted |
1 (Sunday) through 7 (Saturday). For compatibility with Microsoft Excel. |
2 |
1 (Monday) through 7 (Sunday). |
3 |
0 (poniedziałek) do 6 (niedziela) |
11 |
1 (poniedziałek) do 7 (niedziela) |
12 |
1 (wtorek) do 7 (poniedziałek) |
13 |
1 (Wednesday) through 7 (Tuesday). |
14 |
1 (Thursday) through 7 (Wednesday). |
15 |
1 (Friday) through 7 (Thursday). |
16 |
1 (Saturday) through 7 (Friday). |
17 |
1 (Sunday) through 7 (Saturday). |

Wartości dotyczą tylko standardowego formatu daty wybranego w menu .
Przykłady
=DZIEŃ.TYG ("14.06.2000") zwraca wartość 4 (brak parametru typ, w związku z tym używane jest standardowe liczenie. Standardowe liczenie rozpoczyna się od niedzieli (niedziela = 1). Dzień 14 czerwca 2000 r. to była środa, w związku z tym zwracana jest wartość 4).
=DZIEŃ.TYG("24.07.1996";2) zwraca wartość 3 (parametr typ wynosi 2, dlatego poniedziałek przyjmuje wartość 1. 24 czerwca 1996 r. to była środa, w związku z tym zwracana jest wartość 3).
=WEEKDAY("1996-07-24";1) returns 4 (the Type parameter is 1, therefore Sunday is day number 1. July 24, 1996 was a Wednesday and therefore day number 4).
=WEEKDAY("2017-05-02";14) returns 6 (the Type parameter is 14, therefore Thursday is day number 1. May 2, 2017 was a Tuesday and therefore day number 6)
=WEEKDAY(NOW()) returns the number of the current day.

To obtain a function indicating whether a day in A1 is a business day, use the IF and WEEKDAY functions as follows:
IF(WEEKDAY(A1;2)<6;"Business day";"Weekend")