Contact

WEEKDAY Function in Collabora Office Calc: Syntax, Examples and Compatibility

Date & Time Beginner Collabora Office Calc

Use WEEKDAY in Collabora Office Calc to convert a date into a weekday number to drive scheduling rules. Two original examples, expected results, cautions and official software documentation.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: WEEKDAY returns a date’s position in a chosen seven-day numbering scheme. Specify the type explicitly when a rule depends on Monday-first or another order. The original type 2 controls return 1 for Monday and 7 for Sunday.

Availability and version history

  • Introduced: original Collabora release and launch date are not established by the sources reviewed.
  • Availability: documented in Collabora Office 26.04 help, scoped to the desktop-help release.
  • Platform scope: online and mobile deployments are not inferred from desktop documentation.
  • Checked: October 14, 2026. Direct function documentation and independent calendar controls; no native Collabora test was performed.

Syntax and arguments

=WEEKDAY(number;[type])

number is a date value. The optional type controls numbering; omitted or 1 means Sunday=1 through Saturday=7. Type 2 means Monday=1 through Sunday=7; type 3 means Monday=0 through Sunday=6.

Prepare the original controls

The original controls use literal components and need no source table. Use English function names and semicolon argument separators. Display DATE and EOMONTH outputs with date formatting; display DAY, MONTH, YEAR and WEEKDAY results as plain numbers. Adapt separators only when the document configuration requires it.

Example 1: original control

=WEEKDAY(DATE(2026;6;1);2)

Expected output: 1. 1 June 2026 is Monday; type 2 numbers Monday as 1.

Example 2: original comparison

=WEEKDAY(DATE(2026;6;7);2)

Expected output: 7. 7 June 2026 is Sunday, numbered 7 under Monday-first mode.

Example 3: compare the primary numbering modes

Use 1 June 2026, a Monday, and 7 June 2026, a Sunday:

Type Monday result Sunday result
omitted or 1 2 1
2 1 7
3 0 6

For example, =WEEKDAY(DATE(2026;6;1)) has expected result 2, while the original type 2 formula gives 1. Omitting the type is therefore a meaningful change, not a shorter spelling of Monday-first mode.

Display these outputs as ordinary numbers. They are weekday labels, not date serials to format as calendar dates.

Example 4: inspect other documented starting weekdays

Collabora 26.04 additionally lists types 11 through 17. Type 11 is Monday-first; 12 Tuesday-first; 13 Wednesday-first; 14 Thursday-first; 15 Friday-first; 16 Saturday-first; 17 Sunday-first. Each of these schemes numbers its first day 1 and its last day 7.

=WEEKDAY(DATE(2026;6;1);14)
=WEEKDAY(DATE(2026;6;7);14)

Expected results are 5 and 4, because Thursday is 1, Friday 2, Saturday 3, Sunday 4 and Monday 5. Type 11 agrees with type 2; type 17 agrees with type 1 for the same date values.

An arbitrary number not listed in the reference is not a documented type. This guide does not assign a guessed native error code to every invalid type input.

Advanced example: flag a stated Monday-through-Friday policy

Put dates 1 June 2026 through 7 June 2026 in A2:A8. In B2 use and fill down:

=WEEKDAY(A2;2)<=5

Expected flags are TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE. This implements a weekday-only Monday–Friday policy. It does not check public holidays, closures or a person’s work schedule.

The source presents a similar IF label formula. A clear report can use =IF(WEEKDAY(A2;2)<=5;"Weekday";"Weekend") rather than calling every Monday–Friday date a confirmed business day. See NETWORKDAYS for separately documented work-calendar calculations.

Advanced example: find the Monday containing a date

For a whole-date value in C2:

=C2-WEEKDAY(C2;2)+1

With C2=DATE(2026;6;4), expected date is 1 June 2026. Thursday has type 2 value 4, so subtracting 3 reaches Monday. With C2=DATE(2026;6;7), subtracting 6 also reaches that Monday.

If C2 contains a time fraction, this expression preserves it. Use a date-only input or reconstruct its date with DATE/YEAR/MONTH/DAY when a midnight boundary is required. WEEKDAY is not a general time-removal function.

Advanced example: find the next Monday, with an explicit same-day policy

To return Monday on or after a whole date C2:

=C2+MOD(1-WEEKDAY(C2;2);7)

For Monday 1 June, Thursday 4 June and Sunday 7 June 2026, expected dates are 1 June, 8 June and 8 June 2026. The Monday control returns the same day because the offset is zero.

For a strictly later Monday, use:

=C2+MOD(7-WEEKDAY(C2;2);7)+1

The same three controls all return 8 June 2026. Distinguishing on-or-after from strictly-after prevents an unnoticed seven-day difference at the boundary.

Scope and troubleshooting

Use actual date values or DATE expressions. Unquoted slashes and dashes inside formulas are arithmetic operators, and text-date conversion can depend on settings. The 26.04 help’s default serial examples assume the documented date base; raw serials should not be moved across different bases without checking.

WEEKDAY is not a week-of-year function. Use WEEKNUM for that separate question, with its own numbering rules. Native malformed-text errors, every alternate configuration and complete cross-client equivalence remain unverified here.

References and verification

The complete older article and its original worked formulas were reviewed. The direct function and date-system references replace an unrelated category citation. Calendar outputs are independent expectations; no native Collabora execution or Online/mobile parity is claimed.