How to Calculate APY in Excel and Google Sheets

Calculate APY from APR with EFFECT or a compound formula, convert APY back to APR, and annualize a no-deposit statement without multiplying by 12.

本文目录

A 4.50% APR savings offer with monthly compounding is not the same as a 4.59% APY offer until you convert one of them. In Google Sheets, typing 4.5 instead of 4.5% made that conversion look like 4467.01%. The figures below were measured in Google Sheets. Excel was not run.

With the nominal APR in B2 as 4.5% 或 0.045, and 12 compounding periods in C2:

=EFFECT(B2,C2)
=(1+B2/C2)^C2-1

Both return 0.04593982504058958. Formatted as 0.00%, the cell displays 4.59%.

Enter 4.5% or 0.045, not 4.5

If B2 holds the number 4.5 and is formatted as a regular number, Sheets treats it as 450%, not 4.5%. =EFFECT(B2,12) then returns 44.67014368834498, which displays as 4467.01% under 0.00%.

These three entries are not interchangeable:

EntryStored valueEFFECT with 12 periods, 0.00%
4.5%0.0454.59%
0.0450.0454.59%
4.54.54467.01%

The first two are the 4.5% rate. Changing the display of 4.5 to Percentage does not divide it by 100; it displays 450.00%, and the EFFECT result stays 4467.01%. Check the formula bar: a 4.5% rate should show 0.045 或 4.50%, not 4.5.

Compare the compounding schedules

I would put the offers in a small comparison sheet before choosing one. These fictional products use different compounding schedules, so the APR figures alone do not rank them.

Enter this sample in A1:C6. Format B2:B6 as percentages.

AccountAPRPeriods per year
Harbor Online Savings4.50%12
Pine Digital Savings4.55%12
Summit 12-Month CD4.60%4
Valley Credit Union Share4.40%365
Cedar Fixed Savings4.70%1

In D1, enter APY. In D2:

=EFFECT(B2,C2)

Fill that down through D6, and format D2:D6 as 0.00%.

AccountAPY (0.00%)
Harbor Online Savings4.59%
Pine Digital Savings4.65%
Summit 12-Month CD4.68%
Valley Credit Union Share4.50%
Cedar Fixed Savings4.70%

The usual period counts are 1 (annual), 4 (quarterly), 12 (monthly), and 365 (daily). More frequent compounding raises the effective yield when the nominal rate is positive, but the gap is small at a normal savings rate. The same 4.5% nominal rate compounded daily is 0.046024958498606106, which displays as 4.60%, only eight thousandths of a percentage point above the monthly 4.59%.

Microsoft documents that Excel’s EFFECT truncates the periods-per-year argument to an integer. That was not run in Excel. In this Google Sheets file, =EFFECT(0.045,12.9) 与 =EFFECT(0.045,12.1) both matched =EFFECT(0.045,12). =EFFECT(0.045,13) returned a slightly higher value, 0.04594658110884575.

The manual compound formula

EFFECT is a short way to write:

APY = (1 + APR / n)^n - 1, where n is the number of compounding periods in a year.

For Harbor, in E2:

=(1+B2/C2)^C2-1

It returns the same 0.04593982504058958 as =EFFECT(B2,C2), and the same 4.59% display. I would keep this manual formula in a comparison sheet because it shows the compounding, and it does not depend on knowing the EFFECT function name.

Do not multiply the result by 100. Leave it as a decimal and apply Percentage formatting. Multiplying the 4.59% APY by 100 and then applying 0.00% displayed 459.40%.

Continuous compounding with EXP

If a calculation assumes interest compounds continuously, use:

=EXP(B2)-1

With 4.5% in B2, the result is 0.04602785990871694, which displays as 4.60%. That is the limit as the number of periods grows, a hair above daily compounding of the same rate. For an ordinary savings account, use the bank’s actual schedule rather than assuming continuous compounding.

Convert an advertised APY back to APR

When one offer quotes APY and another quotes APR, convert them to the same type before comparing. NOMINAL goes from effective annual rate back to a nominal APR:

=NOMINAL(D2,C2)

On Harbor’s APY with 12 periods, this returns 0.04499999999999904, which displays as 4.50%. The round trip =EFFECT(NOMINAL(D2,C2),C2) matches the original APY.

APY from a statement balance

A bank statement can give you an annualized yield if there were no deposits or withdrawals in the period.

CellDescriptionValue
A2Starting balance10,000
A3Ending balance10,038
A4Days held30
=(A3/A2)^(365/A4)-1

The result is 0.04722699327939206, which displays as 4.72% under 0.00%. The formula compounds the actual 30-day growth over a 365-day year.

A one-month interest figure multiplied by 12 is not APY. Here, (A3/A2-1)*12 returns 0.0456, which displays as 4.56%. That is simple annualization, and it is not the same number.

This balance formula needs the starting and ending amounts to be the same account, with no deposits or withdrawals, and with the 365-day convention you chose. Mid-period cash flows break it because the ending balance is no longer growth on the starting balance alone. For uneven cash flows, a cash-flow return such as XIRR, using the actual dates and amounts, is the next tool; I did not run XIRR on a deposit-and-withdrawal sample here. The percentage change formula covers the simple change between two balances.

When EFFECT returns #NUM! or #VALUE!

Microsoft documents that a nominal rate less than or equal to zero, or a periods-per-year argument below 1, produces #NUM! in Excel, and that a non-numeric value can produce #VALUE!. Those Excel messages were not measured here. In this Google Sheets file:

=EFFECT(-0.045,12)

returns #NUM! with Function EFFECT parameter 1 value is -0.045. It should be greater than 0.

=EFFECT(0.045,0)

returns #NUM! with Function EFFECT parameter 2 value is 0. It should be greater than or equal to 1. The same message appeared for =EFFECT(0.045,0.9), because Sheets truncated 0.9 to 0 before the check. A zero rate, a genuine blank, and EFFECT("",12) all returned #NUM! with Function EFFECT parameter 1 value is 0. It should be greater than 0.

A text rate is not automatically #VALUE!. EFFECT of the text 4.5% returned the same 4.59% APY as the number 0.045. EFFECT of the text 4.5 returned 4467.01%, the same as the number 4.5. Non-numeric text does fail:

=EFFECT("hello",12)

returns #VALUE! with Function EFFECT parameter 1 expects number values. But 'hello' is a text and cannot be coerced to a number.

Check the stored rate and a positive whole-number period count before changing the formula. Other #NUM! causes are in the #NUM! error guide.

For a reusable comparison, I would keep =(1+B2/C2)^C2-1 beside the APR and the period count, because the compounding is visible. EFFECT is the shorter equivalent when the inputs are valid. APY is the fairer way to compare savings offers, because it includes compounding and APR does not.

You can also use the APY calculator to check a rate without building a sheet, or the compound interest calculator to see how a balance grows. These formulas do not include fees, taxes, or early-withdrawal rules.

Oscar

写 Excel 与 Google Sheets 的公式和排错。

Google Sheets, 29 November 2026, new private unshared spreadsheet (locale already en_US at creation and left unchanged, 1000-row grid, timezone set to America/New_York only on this file). Formulas were entered as user input through the Sheets API. Error text was read from the Sheets API errorValue.message field. Percentage displays were read under 0.00%. EFFECT(0.045,12) and (1+0.045/12)^12-1 both returned 0.04593982504058958 (0.00% displays 4.59%). The entries 4.5% and 0.045 both stored 0.045. The number 4.5 stored 4.5; EFFECT(4.5,12) returned 44.67014368834498 (0.00% displays 4467.01%); formatting that 4.5 as 0.00% displayed 450.00%. Comparison table under 0.00%: Harbor 4.50%/12 4.59% (raw 0.04593982504058958); Pine 4.55%/12 4.65% (0.04646096011263645); Summit 4.60%/4 4.68% (0.04679960099006286); Valley 4.40%/365 4.50% (0.04497958376438138); Cedar 4.70%/1 4.70% (0.04699999999999993). Each EFFECT result equalled the manual formula. EFFECT(0.045,365) returned 0.046024958498606106 (4.60%). EFFECT(0.045,12.9) and EFFECT(0.045,12.1) equalled EFFECT(0.045,12). EFFECT(0.045,13) returned 0.04594658110884575. EXP(0.045)-1 returned 0.04602785990871694 (4.60%). NOMINAL of the monthly APY with 12 periods returned 0.04499999999999904 (4.50%). EFFECT(NOMINAL(...),12) equalled the original APY. NOMINAL with 12.9 equalled NOMINAL with 12. (10038/10000)^(365/30)-1 returned 0.04722699327939206 (4.72%). (10038/10000-1)*12 returned 0.04560000000000031 (4.56%); the interest amount was 38. EFFECT(-0.045,12) returned #NUM!, "Function EFFECT parameter 1 value is -0.045. It should be greater than 0." EFFECT(0.045,0) and EFFECT(0.045,0.9) returned #NUM!, "Function EFFECT parameter 2 value is 0. It should be greater than or equal to 1." EFFECT(0,12), EFFECT of a genuine blank, and EFFECT("") returned #NUM!, "Function EFFECT parameter 1 value is 0. It should be greater than 0." EFFECT of the text 4.5% returned 0.04593982504058958. EFFECT of the text 4.5 returned 44.67014368834498. EFFECT("hello") returned #VALUE!, "Function EFFECT parameter 1 expects number values. But 'hello' is a text and cannot be coerced to a number." Multiplying the monthly APY by 100 and applying 0.00% displayed 459.40%. XIRR of -10000 on 2026-01-01 and 10038 on 2026-01-31 returned 0.04722699327939269. Excel was not run.

本主题下一篇:表格错误与动态数组 AVERAGEIFS Returns #DIV/0! When Nothing Matches