/

Find out Weekday, Workday in LibreOffice Calc

11.3K views
2

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)
  • date: Any date format as your Calc settings. For example, mm/dd/yyyy; dd/mm/yyyy; “dd-mm-yyyy”.
  • type: Valid values are 1, 2, and 3. Default is 1. Based on type, values are below.
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
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
Choose function

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

=TEXT(D2,"dddd")
Text Function
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
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
NETWORKDAYS Example

Usage Notes

  • WORKDAY, NETWORKDAYS are part of Open Document Standard specification (ODF) – ISO/IEC 26300:2-2015. Hence it should be followed by major office suites. Link to ODF file.
  • Official documentation –
  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.

Join our Telegram channel and stay informed on the move.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
LAMPROS KALLENOS

Hey,

I have a calc file with a column of words.

Can I create another column, by turning every word into a number according to the formula

add 1 when the word has an a,
add 2 when the word has a b,
add 3 when the word has a c,

etc. ?

Actually, my column of words are in a non-Latin alfabet, but I guess that if there is a way, it should work for all alfabets.

Many thanks!
Lampros, Kypros