WEEKDAY Function in WPS Spreadsheet: Syntax, Examples and Compatibility
Use WEEKDAY in WPS Spreadsheet 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 maps a date to a day-of-week number. Specify return type 2 for Monday = 1 through Sunday = 7; omission uses the documented Sunday-first numbering.
Availability and version history
- Introduced: documented by 2019-06-27 in the WPS lesson; original introduction is not established.
- Availability: WPS Office for Windows Personal; no numeric release is stated in the lesson metadata.
- Scope: current supported builds remain unverified; the historical Windows evidence does not establish every WPS client.
- Checked: October 14, 2026. Full function-specific review and independent calendar models; no native WPS test was performed.
Syntax and arguments
=WEEKDAY(serial_number, [return_type])
The date argument is required. The WPS lesson documents three modes: 1 or omitted maps Sunday–Saturday to 1–7; 2 maps Monday–Sunday to 1–7; 3 maps Monday–Sunday to 0–6. Square brackets indicate optional syntax and are not typed.
Prepare the inputs
Enter these literal formulas into unused cells. Display DATE outputs as dates and YEAR, MONTH, DAY, WEEKDAY and WEEKNUM component outputs as General or Number. Examples use English names and comma separators; adapt separators to the workbook locale. All displayed expectations are independent calculations, with additional model assumptions labeled where needed.
Example 1: original control
=WEEKDAY(DATE(2026,6,1),2)
Expected output: 1.
1 June 2026 is Monday; return type 2 numbers Monday as 1.
Example 2: original comparison
=WEEKDAY(DATE(2026,6,7),2)
Expected output: 7.
7 June 2026 is Sunday, the final day under Monday-first numbering.
Example 3: compare all three documented modes
Create the dates with DATE and compare these numeric outputs:
| Date | Type 1 or omitted | Type 2 | Type 3 |
|---|---|---|---|
| 1 Jun 2026, Monday | 2 | 1 | 0 |
| 5 Jun 2026, Friday | 6 | 5 | 4 |
| 6 Jun 2026, Saturday | 7 | 6 | 5 |
| 7 Jun 2026, Sunday | 1 | 7 | 6 |
For example, =WEEKDAY(DATE(2026,6,7)) has documented-model expectation 1, not 7. A numeric code is meaningful only with its numbering convention attached.
Advanced example: identify a Monday–Friday policy
Enter dates 1–7 Jun 2026 in A2:A8. Put this in B2 and fill down:
=WEEKDAY(A2,2)<=5
Expected flags are TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE. This implements an explicitly chosen Monday–Friday schedule; it does not exclude holidays or prove that every workplace uses that schedule.
Changing the formula to an omitted mode while retaining <=5 would incorrectly include Sunday and exclude Friday under the same policy. Make the return type visible in formulas used for scheduling.
Advanced example: this week’s Monday versus the next Monday
For a date-only input in D2:
=D2-WEEKDAY(D2,2)+1
=D2+8-WEEKDAY(D2,2)
The first formula returns the Monday on or before D2. The second returns a strictly later Monday, including when D2 is already Monday.
| D · Input | Monday on or before | Strictly next Monday |
|---|---|---|
| 1 Jun 2026 | 1 Jun 2026 | 8 Jun 2026 |
| 3 Jun 2026 | 1 Jun 2026 | 8 Jun 2026 |
| 7 Jun 2026 | 1 Jun 2026 | 8 Jun 2026 |
| 8 Jun 2026 | 8 Jun 2026 | 15 Jun 2026 |
Display these outputs as dates. Unlike WEEKDAY’s plain-number output, these calculations produce date values. Hidden time fractions and non-date inputs are outside these date-only controls.
Troubleshooting and documented scope
The historical lesson explicitly makes mode 1 optional even though its compact syntax omits square brackets. Only modes 1, 2 and 3 are certified by the captured function body. Additional modes, unsupported-mode error codes, blank input coercion and text parsing are not inferred from Excel.
WEEKNUM asks a different question: the week’s label within a year. WEEKDAY does not itself establish a week-numbering or ISO week-year policy. The source’s serial-origin note also has inconsistent day-count wording, so the examples deliberately use DATE-built modern dates rather than hard-coded serial values.
Related guides and verification
- DATE in WPS Spreadsheet
- TODAY in WPS Spreadsheet
- Compare WEEKDAY in Microsoft Excel
- Compare WEEKDAY in Google Sheets
Each program has its own date-system and version scope; a shared function name does not establish identical coercion, boundary or formatting behavior.
- WPS Academy: WEEKDAY, 2019-06-27 (Chinese; Windows Personal).
- WPS Academy: DATE.
- WPS Academy: DAY.
- Editorial testing standards.
Evidence level: Complete function-specific WPS sources and the full article reviewed. Original title, publication date and two worked formulas are preserved. Calendar calculations are independently modeled, not observed native WPS results.