Excel ODDLPRICE Function

Calculate bond prices with odd last periods. Learn ODDLPRICE syntax, examples, and securities valuation in Excel and Google Sheets.

ExcelExcel
Google SheetsGoogle Sheets
financial
advanced
Syntax Preview
ExcelExcelGoogle SheetsGoogle Sheets
=ODDLPRICE(settlement, maturity, last_interest, rate, yld, redemption, frequency, [basis])
Understanding ODDLPRICE

Practical Examples

Corporate Bond with Odd Last Period

Calculate the price of a corporate bond maturing between standard coupon payment dates

Result: $101.23

Treasury Security with Short Last Period

Price a treasury security with a shortened final coupon period

Result: $99.24

Municipal Bond Premium Pricing

Value a municipal bond trading at a premium with an odd last period

Result: $102.18

Quarterly Coupon Bond Calculation

Calculate the price for a bond with quarterly payments and an odd last period

Result: $98.91

European Basis Bond Pricing

Price an international bond using the European 30/360 day count convention

Result: $101.67

Common Errors and Solutions

#NUM! - Invalid Date Sequence

ODDLPRICE returns #NUM! error

Cause:

Invalid date sequence where settlement is after maturity, or last_interest is after settlement. Dates must follow chronological order: last_interest < settlement < maturity.

Solution:

Verify that dates follow the correct chronological order. Check that last_interest comes before settlement, and settlement before maturity. Use helper cells to validate date sequences before applying ODDLPRICE.

Prevention:

Use conditional validation: =IF(AND(last_interest<settlement, settlement<maturity), ODDLPRICE(...), "Invalid dates")

Example:

#VALUE! Error

ODDLPRICE returns #VALUE! error

Cause:

Non-numeric values entered for rate, yield, redemption, frequency, or basis parameters. This commonly happens when percentage signs are included or text is accidentally entered.

Solution:

Enter rates and yields as decimal numbers (e.g., 0.05 for 5%, not 5 or 5%). Ensure frequency is exactly 1, 2, or 4. Remove any text or special characters from numeric parameters.

Prevention:

Format cells as numbers before referencing. Use ISNUMBER() to validate inputs before calculation.

Example:

#NUM! - Invalid Parameters

ODDLPRICE returns #NUM! for parameter values

Cause:

Invalid basis argument (not in range 0-4), negative rate or yield values, or redemption value of zero or less. Frequency must be exactly 1, 2, or 4.

Solution:

Use only basis values 0, 1, 2, 3, or 4. Ensure rate and yield are positive numbers. Verify redemption value is greater than zero (typically 100 for bonds). Check that frequency is 1, 2, or 4.

Prevention:

Add parameter validation checks before calculation to ensure all values are within valid ranges.

Example:

Incorrect Calculation

Result seems incorrect or unrealistic

Cause:

Using wrong day count basis for the security type, or entering rate/yield as whole numbers instead of decimals.

Solution:

Choose appropriate basis: 0 (30/360) for US corporate bonds, 1 (actual/actual) for treasury notes, 4 (European 30/360) for European bonds. Always use DATE() function for dates. Verify rates are decimal format.

Prevention:

Document which basis convention applies. Create a reference table for different security types and their standard basis values.

Example:

Best Practices and Pro Tips

Day Count Basis Selection Strategy

Choosing the correct day count basis is critical for accurate bond pricing. US corporate bonds typically use basis 0 (30/360), US Treasury bonds use basis 1 (actual/actual), and European bonds use basis 4 (European 30/360). Always verify the day count convention in the bond's prospectus. Using the wrong basis can result in significant pricing errors.

Date Input Methods and Format Consistency

Always use the DATE() function for date parameters rather than entering dates as text strings. This eliminates issues with regional date format differences and ensures cross-platform compatibility between Excel and Google Sheets.

Understanding Yield vs Rate Relationship

The relationship between yield and coupon rate determines bond pricing: When yield > rate, bond trades at discount (price < 100). When yield < rate, bond trades at premium (price > 100). When yield = rate, bond trades at par (price = 100).

Cross-Validation with ODDLYIELD

Combine ODDLPRICE with ODDLYIELD to verify pricing consistency. If ODDLPRICE returns 101.23 at yield 5.5%, then ODDLYIELD should return 5.5% at price 101.23. This validates your calculations.

Comprehensive Validation and Error Handling

Build robust models with multi-layer validation: Check date sequences are valid, ensure rates/yields are in decimal format, verify frequency is 1, 2, or 4, confirm basis is 0-4, and validate redemption is positive.

Integration with Other Financial Functions

Combine ODDLPRICE with other functions for complete bond analysis: Use ODDLYIELD for yield calculations, ACCRINT for accrued interest, and PRICE/YIELD for comparison with regular period bonds.

Related Functions
Use Cases and Applications

Need Help with Excel ODDLPRICE Function?

Stop struggling with formula syntax. Use AskFormulas to generate validated formulas instantly with our AI-powered tool.

Example Excel formula:

Related Formulas

ACCRINT Function in Excel

The ACCRINT function calculates accrued interest for a security that pays periodic interest, enabling accurate financial reporting and bond valuation.

intermediate
financial
ExcelExcel
Google SheetsSheets
Validated
Excel ACCRINTM Function

The ACCRINTM function calculates accrued interest for securities that pay interest at maturity, essential for bond valuation and analysis.

intermediate
financial
ExcelExcel
Google SheetsSheets
Validated
Excel ODDFPRICE Function

Calculate bond prices with odd first periods. Learn ODDFPRICE syntax, examples, and securities valuation in Excel and Google Sheets.

advanced
financial
ExcelExcel
Google SheetsSheets
Validated
DOLLARDE

Convert fractional dollar prices to decimals with DOLLARDE. Essential for bond trading, stock quotes, and financial analysis.

intermediate
financial
ExcelExcel
Google SheetsSheets
Validated