Difference between revisions of "Manuals/calci/YEAR"

From ZCubes Wiki
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:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
=YEAR(SN)=
  
Syntax
+
where,
 +
*<math>SN</math> represents a date from which year has to be displayed,
  
</div></div>
+
YEAR(SN) displays the year corresponding to a date.
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
== Description ==
  
</div></div>
+
YEAR(SN)
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
e.g. YEAR(DATE(1980,10,25)) returns '''1980''' as a result.
  
</div></div>
+
*YEAR function returns the year from the date mentioned. Result is an integer value in the range 1900 to 9999.
----
+
*<math>SN</math> is a date value to be entered either in 'date format' or 'dates returned using formulas'.
<div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
+
*If <math>SN</math> values are invalid, Calci displays #N/A error message.
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">This function gives the year corresponding to a date. </font></font></font>
+
== Examples ==
  
</div></div>
+
Consider the following example that shows the use of YEAR function:
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="6">YEAR</font></div></div>
 
----
 
<div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">Let's see an example in Column1Row1</font></font></font>
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">C1R1 =06/01/2008</font></font></font>
+
<div id="2SpaceContent" class="zcontent" align="left">
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e.=YEAR(C1R1) is 2008</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">///rly</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">C3R1=06/01/08</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e.=YEAR(C3R1) is 1908</font></font></font><br />
 
 
 
</div></div>
 
----
 
<div id="1SpaceContent" class="zcontent" align="left">
 
  
 
{| id="TABLE3" class="SpreadSheet blue"
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
 +
| class=" " | 10/8/2014
 +
| class=" " | 15-February-2010
 
| class=" " |
 
| class=" " |
| Column1
+
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f " | 06/01/2008
 
| class="sshl_f" | 2008
 
| class="sshl_f " | 06/01/08
 
| class="sshl_f" | 1908
 
|- class="even"
 
| class="  " | Row2
 
| class="                                                                    " |
 
| class=" " |
 
| class=" " |
 
| class="f52543            " |
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class="sshl_f" |  
| class="  SelectTD" |
+
| class=" " |  
<div id="1Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="1Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row4
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row6
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
 
| class=" " |
 
| class=" " |
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
=YEAR(A1): Displays the year value for date mentioned in A1. Displays '''2014''' as a result.
----
+
=YEAR(B1): Displays the year value for date mentioned in B1. Displays '''2010''' as a result.
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
+
=YEAR(DATE(99,10,28)) : Displays the year value for date mentioned. Displays '''1999''' as a result.
 +
 +
== See Also ==
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''YEAR'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">(</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''D'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">)</font></font></font>
+
*[[Manuals/calci/YEARFRAC | YEARFRAC]]
 +
*[[Manuals/calci/DAY | DAY]]
 +
*[[Manuals/calci/MONTH | MONTH]]
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''where D '''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">is the date of the year which is to find.</font></font></font>
+
== References ==
  
</div></div>
+
*[http://en.wikipedia.org/wiki/Date_format_by_country Date Formats]
----
+
*[http://en.wikipedia.org/wiki/Calendar_date Date]
 +
*[http://en.wikipedia.org/wiki/Calendar_year Calendar Year]

Revision as of 17:42, 5 February 2014

YEAR(SN)

where,

  • represents a date from which year has to be displayed,

YEAR(SN) displays the year corresponding to a date.

Description

YEAR(SN)

e.g. YEAR(DATE(1980,10,25)) returns 1980 as a result.

  • YEAR function returns the year from the date mentioned. Result is an integer value in the range 1900 to 9999.
  • 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.

Examples

Consider the following example that shows the use of YEAR function:

10/8/2014 15-February-2010
=YEAR(A1): Displays the year value for date mentioned in A1. Displays 2014 as a result.
=YEAR(B1): Displays the year value for date mentioned in B1. Displays 2010 as a result.
=YEAR(DATE(99,10,28)) : Displays the year value for date mentioned. Displays 1999 as a result.

See Also

References