Difference between revisions of "Manuals/calci/YEARBASIS"
Jump to navigation
Jump to search
(Created page with "=YEARBASIS(Date, Basis)= where *<math>Date</math> represents a start date, and *<math>Basis</math> is the type of day count basis to use. YEARBASIS() calculates the number ...") |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | =YEARBASIS(Date, Basis) | + | <div style="font-size:30px">'''YEARBASIS(Date, Basis)'''</div><br/> |
− | |||
where | where | ||
*<math>Date</math> represents a start date, and | *<math>Date</math> represents a start date, and | ||
*<math>Basis</math> is the type of day count basis to use. | *<math>Basis</math> is the type of day count basis to use. | ||
− | + | **YEARBASIS() calculates the number of days in the year for the mentioned date with respect to basis count. | |
− | YEARBASIS() calculates the number of days in the year for the mentioned date with respect to basis count. | ||
== Description == | == Description == | ||
Line 13: | Line 11: | ||
*YEARBASIS() returns the number of days in the year for the mentioned date with respect to basis count. | *YEARBASIS() returns the number of days in the year for the mentioned date with respect to basis count. | ||
*<math>Date</math> should be entered either in 'date format' or 'date returned using formula'. If date is not valid, Calci displays #N/A error message. | *<math>Date</math> should be entered either in 'date format' or 'date returned using formula'. If date is not valid, Calci displays #N/A error message. | ||
− | *<math> | + | *<math>Basis</math> value is optional. If omitted, Calci assumes it to be 0. |
− | Below table shows the use of <math> | + | *We can use the DD/MM/YYYY format also. For Example:"14/5/2005[DD/MM/YYYY]". |
+ | Below table shows the use of <math>Basis</math> values: | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 31: | Line 30: | ||
|} | |} | ||
− | *If <math> | + | *If <math>Basis</math> value is other than 0 to 4, Calci displays #N/A error message. |
== Examples == | == Examples == | ||
Line 54: | Line 53: | ||
|} | |} | ||
− | =YEARBASIS(A1,A3) : Calculates . Returns '''360''' as a result. | + | =YEARBASIS(A1,A3) : Calculates the number of days in the year for cell A1 for basis count 4. Returns '''360''' as a result. |
− | =YEARBASIS(A2,A3) : Calculates . Returns '''360''' as a result. | + | |
− | =YEARBASIS(DATE(2014,1,1),0) : Calculates . Returns '''360''' as a result. | + | =YEARBASIS(A2,A3) : Calculates the number of days in the year for cell A2 for basis count 4. Returns '''360''' as a result. |
− | =YEARBASIS(DATE(2014,1,1),1) : Calculates . Returns '''365''' as a result. | + | |
− | =YEARBASIS(DATE(2014,1,1),2) : Calculates . Returns '''360''' as a result. | + | =YEARBASIS(DATE(2014,1,1),0) : Calculates the number of days in the year for the specified date for basis count 0. <br/>Returns '''360''' as a result. |
− | =YEARBASIS(DATE(2014,1,1),3) : Calculates . Returns '''365''' as a result. | + | |
− | =YEARBASIS(DATE(2014,1,1)) : Calculates | + | =YEARBASIS(DATE(2014,1,1),1) : Calculates the number of days in the year for the specified date for basis count 1. <br/> Returns '''365''' as a result. |
+ | |||
+ | =YEARBASIS(DATE(2014,1,1),2) : Calculates the number of days in the year for the specified date for basis count 2. <br/> Returns '''360''' as a result. | ||
+ | |||
+ | =YEARBASIS(DATE(2014,1,1),3) : Calculates the number of days in the year for the specified date for basis count 3. <br/> Returns '''365''' as a result. | ||
+ | |||
+ | =YEARBASIS(DATE(2014,1,1)) : Calculates the number of days in the year for the specified date. Here basis count is omitted. <br/> Returns '''360''' as a result. | ||
+ | =YEARBASIS("21/10/2042[DD/MM/YYYY]") =360 | ||
+ | |||
==Related Videos== | ==Related Videos== | ||
Latest revision as of 14:21, 22 August 2018
YEARBASIS(Date, Basis)
where
- represents a start date, and
- is the type of day count basis to use.
- YEARBASIS() calculates the number of days in the year for the mentioned date with respect to basis count.
Description
YEARBASIS(Date, Basis)
- YEARBASIS() returns the number of days in the year for the mentioned date with respect to basis count.
- should be entered either in 'date format' or 'date returned using formula'. If date is not valid, Calci displays #N/A error message.
- value is optional. If omitted, Calci assumes it to be 0.
- We can use the DD/MM/YYYY format also. For Example:"14/5/2005[DD/MM/YYYY]".
Below table shows the use of values:
Basis | Description |
---|---|
0 | US (NASD) 30/360 |
1 | Actual/actual |
2 | Actual/360 |
3 | Actual/365 |
4 | European 30/360 |
- If value is other than 0 to 4, Calci displays #N/A error message.
Examples
YEARBASIS(Date, Basis) function with inputs in order is calculated as follows:
1/4/2008 | |
10/10/2008 | |
4 |
=YEARBASIS(A1,A3) : Calculates the number of days in the year for cell A1 for basis count 4. Returns 360 as a result.
=YEARBASIS(A2,A3) : Calculates the number of days in the year for cell A2 for basis count 4. Returns 360 as a result.
=YEARBASIS(DATE(2014,1,1),0) : Calculates the number of days in the year for the specified date for basis count 0.
Returns 360 as a result.
=YEARBASIS(DATE(2014,1,1),1) : Calculates the number of days in the year for the specified date for basis count 1.
Returns 365 as a result.
=YEARBASIS(DATE(2014,1,1),2) : Calculates the number of days in the year for the specified date for basis count 2.
Returns 360 as a result.
=YEARBASIS(DATE(2014,1,1),3) : Calculates the number of days in the year for the specified date for basis count 3.
Returns 365 as a result.
=YEARBASIS(DATE(2014,1,1)) : Calculates the number of days in the year for the specified date. Here basis count is omitted.
Returns 360 as a result. =YEARBASIS("21/10/2042[DD/MM/YYYY]") =360
Related Videos
See Also
References