Update weeknum.htm

This commit is contained in:
Svetlana Maleeva 2022-02-01 11:12:30 +03:00
parent c4e8e9de88
commit 4deeb6496c

View File

@ -16,24 +16,69 @@
<h1>WEEKNUM Function</h1>
<p>The <b>WEEKNUM</b> function is one of the date and time functions. It used to return the number of the week the specified date falls within the year.</p>
<p>The <b>WEEKNUM</b> function syntax is:</p>
<p style="text-indent: 150px;"><b><em>WEEKNUM(serial-value [,weekday-start-flag])</em></b></p>
<p style="text-indent: 150px;"><b><em>WEEKNUM(serial_number, [return_type])</em></b></p>
<p><em>where</em></p>
<p style="text-indent: 50px;"><b><em>serial-value</em></b> is a number representing the date within the week, entered using the <a href="Date.htm" onclick="onhyperlinkclick(this)">Date</a> function or other date and time function.</p>
<p style="text-indent: 50px;"><b><em>weekday-start-flag</em></b> is a numeric value used to determine the type of the value to be returned. It can be one of the following:</p>
<p style="text-indent: 50px;"><b><em>serial_number</em></b> is a number representing the date within the week, entered using the <a href="Date.htm" onclick="onhyperlinkclick(this)">Date</a> function or other date and time function.</p>
<p style="text-indent: 50px;"><b><em>return_type</em></b> is a numeric value used to determine on which day the week begins. It can be one of the following:</p>
<table style="width: 40%">
<tr>
<td><b>Numeric value</b></td>
<td><b>Weekday Sequence</b></td>
<td><b>Week begins on</b></td>
<td><b>System</b></td>
</tr>
<tr>
<td>1 or omitted</td>
<td>from Sunday to Saturday</td>
<td>Sunday</td>
<td>1</td>
</tr>
<tr>
<td>2</td>
<td>from Monday to Sunday</td>
<td>Monday</td>
<td>1</td>
</tr>
<tr>
<td>11</td>
<td>Monday</td>
<td>1</td>
</tr>
<tr>
<td>12</td>
<td>Tuesday</td>
<td>1</td>
</tr>
<tr>
<td>13</td>
<td>Wednesday</td>
<td>1</td>
</tr>
<tr>
<td>14</td>
<td>Thursday</td>
<td>1</td>
</tr>
<tr>
<td>15</td>
<td>Friday</td>
<td>1</td>
</tr>
<tr>
<td>16</td>
<td>Saturday</td>
<td>1</td>
</tr>
<tr>
<td>17</td>
<td>Sunday</td>
<td>1</td>
</tr>
<tr>
<td>21</td>
<td>Monday</td>
<td>2</td>
</tr>
</table>
<p>When <b><em>return_type</em></b> is set to 1-17, <b>System 1</b> is used. This means that the first week in a year is the week that contains January 1.</p>
<p>When <b><em>return_type</em></b> is set to 21, <b>System 2</b> is used. This means that the first week in a year is the week that contains the first Thursday of the year. System 2 is commonly used in Europe according to the ISO 8601 standard.</p>
<p>To apply the <b>WEEKNUM</b> function,</p>
<ol>
<li>select the cell where you wish to display the result,</li>