Google Sheets PRICEMAT Function: How to Use It
In this article
To use PRICEMAT in Google Sheets, you need a security that pays interest only at maturity and the dates and rate that describe it. The function returns the price per $100 face value, and the syntax is =PRICEMAT(settlement, maturity, issue, rate, yld, [basis]). Enter the three dates as valid date values (not text), the rate and yield as decimals or percentages, and optionally a day-count basis. The result is the clean price, not including accrued interest, so add accrued interest separately if you need the total cash price.
What You'll Need
- A Google account with access to Google Sheets (desktop browser recommended; the mobile app supports the function but editing long formulas is easier on a computer).
- The security's issue date, settlement date and maturity date.
- The annual coupon rate (the interest rate stated on the security) and the annual yield you want to price at.
- The day-count basis you intend to use, if it is not the default. Basis codes are 0 (US 30/360), 1 (actual/actual), 2 (actual/360), 3 (actual/365) and 4 (European 30/360). If omitted, Sheets uses 0.
- Dates entered in a format Sheets recognises, or built with the DATE function to avoid ambiguity.
Step-by-Step
- Open a blank Google Sheet and label cells for your inputs. For example, put labels in A1:A6 and values in B1:B6: Issue date, Settlement date, Maturity date, Coupon rate, Yield, Basis.
- Enter the dates. The safest method is
=DATE(2024,1,15)style entries, because typed dates like 01/15/2024 can be read differently depending on your locale. Settlement must be on or after the issue date and before maturity; otherwise PRICEMAT returns an error. - Enter the coupon rate and yield as decimals (for example 0.05 for 5%) or as percentages if the cells are formatted as percent. Both must be positive numbers.
- Enter the basis code in its own cell, or leave it out to use the default 0. If you are pricing a US corporate bond, 0 is common; for many government bonds, 1 is used. Check the convention for your market.
- Click an empty cell where you want the price and type the formula, referencing the input cells. For example:
=PRICEMAT(B2,B3,B1,B4,B5,B6), where B2 is settlement, B3 is maturity, B1 is issue, B4 is rate, B5 is yield and B6 is basis. Note the order: settlement, maturity, issue. - Press Enter. The cell shows the price per $100 face value. If you entered a 5% coupon and a 5% yield with the same basis, the result should be close to 100, which is a useful sanity check.
- Format the result as a number with two or more decimal places (Format > Number > Number) so you can read it clearly. The output is a price, not a currency amount; multiply by face value divided by 100 if you need the dollar price.
- To check accrued interest, use the ACCRINT function with the same dates and basis, then add it to the PRICEMAT result for the total price. PRICEMAT itself does not include accrued interest.
- If you plan to reuse the formula, copy it down a column with relative references, or name your input cells (Data > Named ranges) and use those names in the formula for readability.
Menu labels can differ slightly by Google Sheets version, device and region, but the function syntax and basis codes are stable.
Common Mistakes
- Wrong argument order. PRICEMAT expects settlement, maturity, issue — not issue, settlement, maturity. Mixing them up produces a wrong price or a #NUM! error.
- Dates stored as text. If a date cell is left-aligned, Sheets may be treating it as text. Use DATE() or convert it with DATEVALUE.
- Settlement before issue or after maturity. The function requires settlement to fall between issue and maturity; otherwise it returns an error.
- Mismatched basis. Using basis 0 for a bond that actually uses actual/actual will shift the result. Keep the basis consistent across PRICEMAT, ACCRINT and any other date-based functions.
- Expecting a dirty price. PRICEMAT returns the clean price. If you compare it to a broker quote that includes accrued interest, the numbers will not match.
- Rates entered as whole numbers. Typing 5 instead of 0.05 (or 5%) prices the bond at a 500% coupon, which is not what you want.
Tips
- Build a small input block and reference it, rather than hard-coding dates and rates inside the formula. It makes sensitivity checks easy: change the yield cell and watch the price update.
- Use a sanity check row: price at a yield equal to the coupon rate should be near 100 for a bond priced at par, adjusted for the time between settlement and maturity.
- Keep a note of which basis code you used next to the result, because the same bond can show slightly different prices under different conventions.
- If you need to price a bond that pays periodic coupons, PRICEMAT is the wrong function; use PRICE instead. PRICEMAT is specifically for securities that pay interest only at maturity.
- Format dates consistently and avoid mixing text and date values in the same column.
Troubleshooting
- #NUM! error: Usually a date problem — settlement is not between issue and maturity, or a date is invalid. Check the order of arguments and that all three dates are real date values.
- #VALUE! error: One of the arguments is text that cannot be read as a number or date. Re-enter the dates with DATE() and make sure rate and yield are numeric.
- Result looks far too high or low: Check whether you entered rates as whole numbers instead of decimals, and confirm the basis code matches the convention you intend.
- Price differs from a broker quote: The quote may include accrued interest, or may use a different day-count basis. Compare clean price to clean price and confirm the basis.
- Formula works in one row but not another: Check for relative references that shifted when you copied the formula, and confirm each row has valid dates.
- If the sheet still misbehaves, try a fresh cell with literal DATE() values and simple numbers to isolate whether the problem is the formula or the input cells.
Frequently Asked Questions
What does PRICEMAT return?
It returns the price per $100 face value of a security that pays interest only at maturity, expressed as a clean price without accrued interest.
What is the difference between PRICEMAT and PRICE?
PRICE is for securities that pay periodic coupons. PRICEMAT is for securities that pay a single interest payment at maturity. Using the wrong one gives a misleading result.
Which basis code should I use?
It depends on the market convention for the security. Common choices are 0 for US 30/360 and 1 for actual/actual. If you omit basis, Sheets uses 0. Confirm the convention before relying on the number.
Can I use PRICEMAT for a bond that pays coupons every year?
No. For periodic-coupon bonds, use PRICE. PRICEMAT assumes interest is paid only at maturity.
Why is my result not exactly 100 when coupon and yield match?
Small differences come from the day-count convention and the time between settlement and maturity. A price near 100 is expected, but exact parity is not guaranteed.
Does PRICEMAT include accrued interest?
No. Add accrued interest separately, for example with ACCRINT, if you need the total cash price.