Difference between revisions of "Documentation/How Tos/Calc: ODDLYIELD function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Automated text replacement %s)
m
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE: ODDLYIELD function}}
 +
{{Documentation/CalcFunc FinancialTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_ODDLPRICE_function
 +
|NextPage=Documentation/How_Tos/Calc:_COUPDAYBS_function
 +
}}__NOTOC__
  
 
== ODDLYIELD ==
 
== ODDLYIELD ==
Line 20: Line 25:
 
:: 4 - European method, 12 months of 30 days each
 
:: 4 - European method, 12 months of 30 days each
  
: '''This function currently returns slightly different results to Excel.'''
+
:: '''This function currently returns slightly different results to Excel.'''
  
  
Line 27: Line 32:
 
: Calc returns <tt>'''0.014087886014'''</tt>, which is very slightly inaccurate.
 
: Calc returns <tt>'''0.014087886014'''</tt>, which is very slightly inaccurate.
  
{{Documentation/SeeAlso|
+
=== Issues: ===
 +
* '''This function currently returns slightly different results to Excel.''' See {{bug|92177}}.
 +
 
 +
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: ODDFPRICE function|ODDFPRICE]]
 
* [[Documentation/How_Tos/Calc: ODDFPRICE function|ODDFPRICE]]
 
* [[Documentation/How_Tos/Calc: ODDFYIELD function|ODDFYIELD]]
 
* [[Documentation/How_Tos/Calc: ODDFYIELD function|ODDFYIELD]]
Line 38: Line 46:
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
+
[[Category: Documentation/Reference/Calc/Financial functions]]
=== Issues: ===
+
* '''This function currently returns slightly different results to Excel.''' See [http://www.openoffice.org/issues/show_bug.cgi?id=92177 issue 92177].
+

Latest revision as of 11:22, 31 January 2024

ODDLYIELD

Returns the yield of a security, where the last interest payment is not a whole period.

Syntax:

ODDLYIELD(settlementdate; maturitydate; lastinterestdate; rate; price; redemptionvalue; frequency; basis)

settlementdate: the settlement (purchase) date of the security.
maturitydate: the maturity date of the security.
lastinterestdate: the date on which the security last pays interest.
rate: the interest rate of the security.
price: the price of the security.
redemptionvalue: the redemption value of the security per 100 currency units of face value.
frequency: number of interest payments per year (1, 2 or 4).
basis: is the calendar system to use. Defaults to 0 if omitted.
0 - US method (NASD), 12 months of 30 days each
1 - Actual number of days in months, actual number of days in year
2 - Actual number of days in month, year has 360 days
3 - Actual number of days in month, year has 365 days
4 - European method, 12 months of 30 days each
This function currently returns slightly different results to Excel.


Example:

ODDLYIELD("1990-06-01"; "1995-12-31"; "1990-01-01"; 2%; 103; 100; 4; 1)

Calc returns 0.014087886014, which is very slightly inaccurate.

Issues:

  • This function currently returns slightly different results to Excel. See Issue 92177 .



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_ODDLYIELD_function&oldid=259773"
Views
Personal tools
Navigation
Tools
In other languages