Fix the #NUM! Error in Excel NPER for a Loan
Question details
Determine why an NPER formula returns #NUM! for a loan and how to calculate a valid payoff period.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user calculates the number of monthly loan payments with =NPER(E17/12,M17,D17,0) and compares the result with another amortization calculator.
- Observed behavior
- Excel returns #NUM! for an annual rate of 14.15%, a monthly payment of -123.15, and a principal of approximately 16,643.43, while the other calculator reports about 110.8 periods.
Check that E17 contains the annual rate as 14.15%, M17 contains the monthly payment as -123.15, and D17 contains the principal as 16,643.43. Confirm that the other calculator uses the same principal, annual rate, payment amount, and monthly payment schedule.
Check monthly interest and increase the payment
Use this approach when the payment is too small to reduce the loan balance.
At the stated rate and principal, monthly interest is approximately 196.25. A payment of 123.15 does not cover that interest, so the balance grows and NPER cannot find a payoff period.
In an empty Excel cell, enter =E17/12*D17. With the stated values, the result is approximately 196.25.
Compare the interest result with the payment in M17. For this loan to be paid off, enter a monthly payment whose magnitude exceeds 196.25, such as -250.
Enter =NPER(E17/12,M17,D17,0) in the result cell. With a sufficient payment and the stated principal and rate, Excel can calculate the number of monthly periods.

Verify the NPER references and cash-flow signs
Use this check if the payment should be sufficient but the formula still returns an error.
Check the NPER Loan Calculation in WPS Spreadsheets
Open the loan worksheet in WPS Spreadsheets to compare monthly interest with the payment and recalculate NPER using valid inputs.
- 1. Open the worksheet: Open WPS Spreadsheets and use Open to select your Excel loan workbook.
- 2. Check monthly interest: In an empty cell, enter =E17/12*D17 and compare the result with the payment in M17.
- 3. Correct the inputs: Verify the rate and principal in E17 and D17, then enter a negative payment in M17 whose magnitude exceeds the monthly interest.
- 4. Calculate the periods: Enter =NPER(E17/12,M17,D17,0) in the result cell to calculate the monthly payoff periods.

Frequently Asked Questions
Why does NPER return #NUM! for this loan?
The monthly interest is about 196.25, which exceeds the payment of 123.15. Because the balance grows instead of being repaid, NPER cannot find a payoff period.
How can I check the monthly interest in Excel?
Enter =E17/12*D17 in an empty cell, where E17 is the annual interest rate and D17 is the loan principal. Compare the result with the magnitude of the monthly payment.
Why does another calculator show about 110.8 periods?
That result does not match the stated rate, principal, and payment under the same assumptions. Compare the principal, rate, payment frequency, payment amount, and payment timing in both calculators.
Does the payment need to be negative in NPER?
The payment and present value should have opposite cash-flow signs. For a loan received as a positive amount in D17, enter the outgoing payment as a negative amount in M17.
How can I calculate the payment needed for 111 months?
Enter =PMT(E17/12,111,D17,0) in an empty cell. With a positive principal, the result is a negative monthly payment representing cash paid out.




