Wednesday, June 1, 2022

Weekday function

Returns the day of the week corresponding to a date. The day is given as an integer, ranging from 1 (Sunday) to 7 (Saturday), by default.

Syntax

WEEKDAY(serial_number,return_type)

Serial_number     is a sequential number that represents the date of the day you are trying to find.

Return_type     is a number that determines the type of return value.

Return_type

Number returned

1 or omitted

Numbers 1 (Sunday) through 7 (Saturday).

2

Numbers 1 (Monday) through 7 (Sunday).

3

Numbers 0 (Monday) through 6 (Sunday).

Remark

Dates are stored as sequential serial numbers so they can be used in calculations. By default, December 31, 1899 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.

Examples

In the following examples, note that 2/14/2008 is a Thursday.

Formula

Description (Result)

=WEEKDAY("2/14/2008")

Day of the week, with numbers 1 (Sunday) through 7 (Saturday) (5)

=WEEKDAY("2/14/2008",2)

Day of the week, with numbers 1 (Monday) through 7 (Sunday) (4)

=WEEKDAY("2/14/2008",3)

Day of the week, with numbers 0 (Monday) through 6 (Sunday) (3)

1 comment:

  1. You need personal informations from companies,family and friends that will better your life and you need easy access without them noticing or you’re financially unstable and you have a bad credit score, come to Brillianthackers800@gmail.com he will solve that without stress,he and his team can clear criminal records without leaving a trace and can also anonymously credit your empty credit cards with funds you need,all these things and more this hacker and his team will do cause they keep you updated on every step taken in order to achieve the goal and they also deliver on time,I tested and confirmed this I’m still happy on how my life is improving after my encounter with them, you can send a mail to Brillianthackers800@gmail.com

    ReplyDelete