Wauvel

Excel like a finance pro.

← All functions

WEEKDAY

Dates

Cash timing is a day-of-week question — a Friday payment run clears differently to a Tuesday one.

Difficulty

Beginner
Excel file

1What is it?

WEEKDAY turns a date into a number for the day of the week, which is how you tag a payment calendar, flag weekend dates, or test whether a due date is going to sit in a bank's queue over a weekend. Its trap is the return_type argument: the default is 1, where Sunday is 1 and Saturday is 7 — a numbering almost nobody wants in a working week. Type 2 makes Monday 1 and Sunday 7, which is what most business logic assumes and what most formulas written against the default get subtly wrong.

2What it looks like

WEEKDAY(serial_number, [return_type])
serial_number
The date to test.
[return_type]
1 (default) Sunday = 1 · 2 Monday = 1 · 3 Monday = 0. Use 2 for anything business-shaped.

3When you use it

  • Flag invoices whose due date falls on a weekend.
  • Tag a cash calendar by day of week to see the clearing pattern.
  • Count how many Fridays fall in a period for a weekly payroll.

4See it in action

Change the inputs — the formula and result update live. Prefer the real thing? Download the Excel file and open it in Excel.

The same weekend test, under both numbering schemes.

A2
fx
=WEEKDAY(A2, 2) > 5Type 1 (default): 7. Test ">5" says weekend
A
1Result
2Type 1 (default): 7. Test ">5" says weekend
3Type 2: 6. Test ">5" says weekend
4Both agree here. Try a Sunday to see them diverge.

The lime cell holds the formula — click it (or any cell) to see its contents in the bar above, just like Excel. Edit the blue cells to watch it recompute.

5Common errors

Weekend test is off by a dayreturn_type was left at the default, so Saturday is 7 and Sunday is 1 — and `>5` catches Saturday but not Sunday.

Fix: Pass 2. Then Saturday and Sunday are 6 and 7, and `>5` catches both.

#NUM!return_type isn't one of the accepted values.

Fix: Use 1, 2 or 3 (or the 11-17 series). Anything else errors.

Shows a number, you wanted a nameWEEKDAY returns a number by design.

Fix: Use TEXT(date, "dddd") for the name — a different job entirely.

6Better functions & alternatives

Want WEEKDAY already wired into a model? Wauvel's free tools download as branded, formula-driven Excel.

Learn the moves here — or let Wauvel run them on your numbers.

Meet your AI CFO →

One CFO-grade Excel tip a week

A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.