Excel WEEKDAY function: find the day of the week and spot weekends
WEEKDAY returns the day of the week as a number. return_type differences, weekend checks, day names, weekend pay and colouring a timesheet — with examples.
Plenty of calculations depend on the day of the week: weekend hours are paid extra, a delivery falling on a weekend moves to Monday, and shift schedules highlight days off.
WEEKDAY takes a date and returns the day of the week as a number. With that number, IF, CHOOSE and conditional formatting can express any rule you need.
The key subtlety is which day the week starts on. The second argument settles that.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Date | Day no. | Day name | Type | |
| 2 | 10.03.2025 | 1 | Monday | Workday | |
| 3 | 14.03.2025 | 5 | Friday | Workday | |
| 4 | 15.03.2025 | 6 | Saturday | Weekend | |
| 5 | 16.03.2025 | 7 | Sunday | Weekend | |
| 6 |
Syntax
=ДЕНЬНЕД(serial_number; [return_type])
- serial_number — a date: a cell,
DATE(...)orTODAY(). - return_type — which day the week counts from (optional):
- 1 or omitted — Sunday = 1, Monday = 2 … Saturday = 7 (US style).
- 2 — Monday = 1 … Sunday = 7. The most practical choice for a Monday–Friday week.
- 3 — Monday = 0 … Sunday = 6.
- 11–17 — the week starts on Monday … Sunday respectively (11 is the same as 2).
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Date | Type 1 | Type 2 | Type 3 | |
| 2 | 10.03.2025 | 2 | 1 | 0 | |
| 3 | 15.03.2025 | 7 | 6 | 5 | |
| 4 | 16.03.2025 | 1 | 7 | 6 | |
| 5 |
Entering WEEKDAY step by step
1
Select B2. Формулы → Дата и время → WEEKDAY.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Day no. | ||
| 2 | 10.03.2025 | |||
| 3 | 14.03.2025 | |||
| 4 | ||||
| 5 |
2
Enter A2 for Serial_number and 2 for Return_type, then click OK.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Day no. | ||
| 2 | 10.03.2025 | 1 | ||
| 3 | 14.03.2025 | |||
| 4 | ||||
| 5 |
3
Fill the formula down. When typing by hand, Excel shows the list of types after =ДЕНЬНЕД(A2; — pick one with the arrow keys and press Tab.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Date | Hours | Rate | Pay | |
| 2 | 14.03.2025 | 8 | 30 000 | 240 000 | |
| 3 | 15.03.2025 | 6 | 30 000 | 270 000 | |
| 4 | 16.03.2025 | 4 | 30 000 | 180 000 | |
| 5 | 17.03.2025 | 8 | 30 000 | 240 000 | |
| 6 |
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Order | Day no. | Move to workday | Next Monday | |
| 2 | 14.03.2025 | 5 | 14.03.2025 | 17.03.2025 | |
| 3 | 15.03.2025 | 6 | 17.03.2025 | 17.03.2025 | |
| 4 | 16.03.2025 | 7 | 17.03.2025 | 17.03.2025 | |
| 5 |
A2+8-WEEKDAY(A2,2) always gives the next MondayPro level: weekly reports and colouring a timesheet
- Week start (Monday):
=A2-ДЕНЬНЕД(A2;2)+1— a helper column for grouping sales by week. - Highlight weekends: Главная → Условное форматирование → New Rule → “Use a formula…” →
=ДЕНЬНЕД($A2;2)>5. The dollar sign locks the column so the whole row is coloured. - Number of Mondays in a month:
=СУММПРОИЗВ(--(ДЕНЬНЕД(A2:A31;2)=1)). - Six-day week: if only Sunday is off, the test is
=ДЕНЬНЕД(A2;2)=7. - Need the week number? Use
WEEKNUM(A2,2)or ISO-styleISOWEEKNUM(A2).
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Day | Hours | |
| 2 | 13.03.2025 | Thu | 8 | |
| 3 | 14.03.2025 | Fri | 8 | |
| 4 | 15.03.2025 | Sat | 5 | |
| 5 | 16.03.2025 | Sun | 0 | |
| 6 | 17.03.2025 | Mon | 8 | |
| 7 |
=ДЕНЬНЕД($A2;2)>5 coloured the Saturday and Sunday rows automatically. Change a date and the colour followsTry it in the simulator
Type =ДЕНЬНЕД(A2;2) in B2 and =ЕСЛИ(B2>5;"Weekend";"Workday") in C2, then fill both down to row 5. Which dates fall on a weekend?
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Date | Day no. | Type | |||||||||||||||||||||
| 2 | 45730 | |||||||||||||||||||||||
| 3 | 45731 | |||||||||||||||||||||||
| 4 | 45732 | |||||||||||||||||||||||
| 5 | 45733 | |||||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.