Site icon libreofficehelp.com

Find out Weekday, Workday in LibreOffice Calc

This beginner’s guide explains how you can find the weekday, workday in LibreOffice Calc.

LibreOffice Calc has dedicated functions that you can use to find out the weekday, the number of weekdays, etc. Using these in the formula and combining them, you can solve many problems and calculate different things. Let’s see how they work.

Weekday and Workday

Weekday function

The WEEKDAY function in Calc returns a number from 1 (Sunday) to 7 (Saturday) representing the day of the week of a date. The number depends on the type. See below.

Syntax

=WEEKDAY(date, type)
weekdaytype=1type=2type=3
Sunday176
Monday210
Tuesday321
Wednesday432
Thursday543
Friday654
Saturday765

Example

1. The following example returns 4 as it is April 7, 2021 which is Wednesday. Because the type is 1 as default.

=WEEKDAY(04/07/2021)
Simple Weekday function

2. You can also find out the day of the week using weekday as below. It is super handy to find out the day’s name. Actually, there are two ways to find this out. Using TEXT() and CHOOSE() function. See below.

=CHOOSE(WEEKDAY(D2),"sun","mon","tue","wed","thu","fri","sat")
Choose function

Using Text function with custom formatting for Day as “dddd” you can also get the day name.

=TEXT(D2,"dddd")
Text Function

Workday Function

Syntax

WORKDAY(StartDate; Days [; Holidays])

Example

This function returns the date number from the start date, with days passed excluding Saturdays, Sundays, and holidays (if included). Holidays are optional. For example, in the below image, 4/13 is returned, which is 3 days after 4/7, excluding 4/9 (holiday), 4/10, and 4/11. The function returns a number, and you need to apply cell formatting to Date. The StartDate is included in the count of Days if it is a workday.

=WORKDAY(D2,D3,D4)
WORKDAY example

Networkdays function

Syntax

NETWORKDAYS(StartDate; EndDate [; [ Holidays ] [; Workdays ] ])

Example

This function returns the total number of days starting from StartDate until EndDate excluding Holidays, Saturdays and Sundays. Additional Workdays can be included via an optional parameter. The StartDate and EndDate are included in the count if it is not weekends. For example, below, the total number of work days is 20 for the entire month of April 2021, with two holidays given.

=NETWORKDAYS(D2,D3,D4:E4)
NETWORKDAYS Example

Usage Notes

  1. WEEKDAY
  2. WORKDAY
  3. NETWORKDAYS

I hope this guide helps you to find out the weekday, and workday in LibreOffice Calc. If you have any questions, or comments mention them in the comment box below.

Exit mobile version