Edit datedif.htm

This commit is contained in:
Svetlana Maleeva 2023-08-03 16:59:36 +03:00
parent f65db1ae0e
commit c7b35eec0e
3 changed files with 34 additions and 25 deletions

View File

@ -15,16 +15,33 @@
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
</div>
<h1>DATEDIF Function</h1>
<p>The <b>DATEDIF</b> function is one of the date and time functions. It is used to return the difference between two date values (start date and end date), based on the interval (unit) specified.</p>
<p>The <b>DATEDIF</b> function syntax is:</p>
<p style="text-indent: 150px;"><b><em>DATEDIF(start-date, end-date, unit)</em></b></p>
<p><em>where</em></p>
<p style="text-indent: 50px;"><b><em>start-date</em></b> and <b><em>end-date</em></b> are two dates you wish to calculate the difference between.</p>
<p style="text-indent: 50px;"><b><em>unit</em></b> is the specified interval that can be one of the following:</p>
<table style="width: 40%">
<p>The <b>DATEDIF</b> function is one of the <a href="../UsageInstructions/InsertFunction.htm#datetime" onclick="onhyperlinkclick(this)">date and time functions</a>. It is used to return the difference between two date values (start date and end date), based on the interval (unit) specified.</p>
<h3>Syntax</h3>
<p><b><em>DATEDIF(start-date, end-date, unit)</em></b></p>
<p>The <b>DATEDIF</b> function has the following arguments:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #f4f4f4"><b>Argument</b></th>
<th style="background-color: #f4f4f4"><b>Description</b></th>
</tr>
<tr>
<td><b><em>start-date</em></b></td>
<td>The starting date of a period.</td>
</tr>
<tr>
<td><b><em>end-date</em></b></td>
<td>The ending date of a period.</td>
</tr>
<tr>
<td><b><em>unit</em></b></td>
<td>The specified interval. Possible values are listed in the table below.</td>
</tr>
</table>
<p>The <b><em>unit</em></b> argument can be one of the following:</p>
<table style="width: 40%">
<tr>
<td><b>Unit</b></td>
<td><b>Interval Explanation</b></td>
<th style="background-color: #f4f4f4"><b>Unit</b></th>
<th style="background-color: #f4f4f4"><b>Interval Explanation</b></th>
</tr>
<tr>
<td>Y</td>
@ -51,19 +68,11 @@
<td>The difference between the days (years are ignored).</td>
</tr>
</table>
<p>To apply the <b>DATEDIF</b> function,</p>
<ol>
<li>select the cell where you wish to display the result,</li>
<li>click the <b>Insert function</b> <div class = "icon icon-insertfunction"></div> icon situated at the top toolbar,
<br />or right-click within a selected cell and select the <b>Insert Function</b> option from the menu,
<br />or click the <div class = "icon icon-function"></div> icon situated at the formula bar,
</li>
<li>select the <b>Date and time</b> function group from the list,</li>
<li>click the <b>DATEDIF</b> function,</li>
<li>enter the required arguments separating them by commas,</li>
<li>press the <b>Enter</b> button.</li>
</ol>
<p>The result will be displayed in the selected cell.</p>
<h3>Notes</h3>
<p>If the <b><em>start-date</em></b> is greater than the <b><em>end-date</em></b>, the result will be #NUM!.</p>
<p><a href="../UsageInstructions/InsertFunction.htm#applyfunction" onclick="onhyperlinkclick(this)">How to apply</a> the <b>DATEDIF</b> function.</p>
<h3>Examples</h3>
<p>There are three arguments: <em>start-date</em> = <b>A1</b> = <b>3/16/2018</b>; <em>end-date</em> = <b>A2</b> = <b>9/16/2018</b>; <em>unit</em> = <b>"D"</b>. So the function returns the difference between two dates in days.</p>
<p style="text-indent: 150px;"><img alt="DATEDIF Function" src="../images/datedif.png" /></p>
</div>
</body>

View File

@ -21,8 +21,8 @@
<p>The <b>EXACT</b> function has the following arguments:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #d8d8d8"><b>Argument</b></th>
<th style="background-color: #d8d8d8"><b>Description</b></th>
<th style="background-color: #f4f4f4"><b>Argument</b></th>
<th style="background-color: #f4f4f4"><b>Description</b></th>
</tr>
<tr>
<td><b><em>text1(2)</em></b></td>