What does this function do?
Returns the day of a stated date.
Syntax:
WEEKDAY(serial_number,[return_type])
- Serial_number (required): A sequential number that represents the date of the day you are trying to find. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
- Return_type (optional): A number that determines the type of return value.
Return_type
|
Number returned
|
1 or omitted
|
Numbers 1 (Sunday) through 7 (Saturday). Behaves like previous versions of Microsoft Excel.
|
2
|
Numbers 1 (Monday) through 7 (Sunday).
|
3
|
Numbers 0 (Monday) through 6 (Sunday).
|
11
|
Numbers 1 (Monday) through 7 (Sunday).
|
12
|
Numbers 1 (Tuesday) through 7 (Monday).
|
13
|
Numbers 1 (Wednesday) through 7 (Tuesday).
|
14
|
Numbers 1 (Thursday) through 7 (Wednesday).
|
15
|
Numbers 1 (Friday) through 7 (Thursday).
|
16
|
Numbers 1 (Saturday) through 7 (Friday).
|
17
|
Numbers 1 (Sunday) through 7 (Saturday).
|
Examples:
=WEEKDAY(“10/11/2014″, 1) = 2
=WEEKDAY(“10/11/2014″, 2) = 1
=WEEKDAY(“10/11/2014″, 2) = 1
If A1=10/11/2014
=WEEKDAY(A1, 1) = 2
No comments:
Post a Comment