Difference between revisions of "Manuals/calci/WEEKNUM"
Jump to navigation
Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...") |
|||
Line 1: | Line 1: | ||
− | + | =WEEKNUM(SN, Type)= | |
− | + | where, | |
+ | *<math>SN</math> represents a date for which week number has to be displayed, | ||
+ | *<math>Type</math> represents the type of return value. | ||
− | + | WEEKNUM() displays a number that indicates where the week falls in a year. | |
− | |||
− | |||
− | + | == Description == | |
− | + | WEEKNUM(SN, Type) | |
− | |||
− | |||
− | |||
− | |||
− | < | + | *<math>SN</math> and <math>Type</math> are required arguments. |
+ | *<math>SN</math> is a date value to be entered either in 'date format' or 'dates returned using formulas'. | ||
+ | *If <math>SN</math> values are invalid, Calci displays #N/A error message. | ||
+ | *<math>Type</math> is the type of return value. It can be from the following - | ||
− | + | {| class="wikitable" | |
− | + | |- | |
− | + | ! Type !! Description | |
− | + | |- | |
− | + | | 1 || Number from 1(Sunday) to 7(Saturday) | |
− | + | |- | |
− | + | | 2 || Number from 1(Monday) to 7(Sunday) | |
− | + | |} | |
− | |||
− | - | ||
− | |||
− | < | + | *If <math>Type</math> values are invalid, Calci displays #N/A error message. |
− | + | == Examples == | |
− | + | Consider the following example that shows the use of WEEKNUM function: | |
− | < | + | <div id="2SpaceContent" class="zcontent" align="left"> |
− | + | {| id="TABLE3" class="SpreadSheet blue" | |
− | |||
− | |||
− | |||
− | {| id=" | ||
|- class="even" | |- class="even" | ||
+ | | class=" " | 10/8/2014 | ||
+ | | class=" " | | ||
| class=" " | | | class=" " | | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- class="odd" | |- class="odd" | ||
− | + | | class="sshl_f" | 2/10/2013 | |
− | + | | class=" " | | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | class=" " | | ||
− | | class=" " | | ||
| class=" " | | | class=" " | | ||
|} | |} | ||
− | + | =WEEKNUM(A1,1): Calculates the number of the week in the year for date mentioned in A1 and return type '1'. <br />Displays '''41''' as a result. | |
− | + | =WEEKNUM(B1,2): Calculates the number of the week in the year for date mentioned in A1 and return type '2'. <br />Displays '''6''' as a result. | |
− | + | =WEEKNUM(DATE(2013,10,28),1) : Calculates the number of the week in the year for date mentioned and return type '1'. <br />Displays '''44''' as a result. | |
+ | |||
+ | == See Also == | ||
+ | |||
+ | *[[Manuals/calci/WEEKDAY | WEEKDAY]] | ||
+ | *[[Manuals/calci/WORKDAY | WORKDAY]] | ||
− | + | == References == | |
− | + | *[http://en.wikipedia.org/wiki/Date_format_by_country Date Formats] | |
− | + | *[http://en.wikipedia.org/wiki/Calendar_date Date] | |
+ | *[http://en.wikipedia.org/wiki/Week Week] |
Revision as of 15:25, 5 February 2014
WEEKNUM(SN, Type)
where,
- represents a date for which week number has to be displayed,
- represents the type of return value.
WEEKNUM() displays a number that indicates where the week falls in a year.
Description
WEEKNUM(SN, Type)
- and are required arguments.
- is a date value to be entered either in 'date format' or 'dates returned using formulas'.
- If values are invalid, Calci displays #N/A error message.
- is the type of return value. It can be from the following -
Type | Description |
---|---|
1 | Number from 1(Sunday) to 7(Saturday) |
2 | Number from 1(Monday) to 7(Sunday) |
- If values are invalid, Calci displays #N/A error message.
Examples
Consider the following example that shows the use of WEEKNUM function:
10/8/2014 | ||
2/10/2013 |
=WEEKNUM(A1,1): Calculates the number of the week in the year for date mentioned in A1 and return type '1'.
Displays 41 as a result. =WEEKNUM(B1,2): Calculates the number of the week in the year for date mentioned in A1 and return type '2'.
Displays 6 as a result. =WEEKNUM(DATE(2013,10,28),1) : Calculates the number of the week in the year for date mentioned and return type '1'.
Displays 44 as a result.