How to Fix Excel NPER #NUM! Error for Credit Card Payments
Question details
The user needs to calculate the repayment period for a credit card balance but encounters a calculation error when using the financial function.

- Product
- Microsoft Excel / WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Calculating the number of months needed to repay a $10,000 credit card balance with a 13% annual interest rate and $400 monthly payments using the NPER function.
- Observed behavior
- The NPER function returns a #NUM! error instead of the correct number of repayment months.
Verify the exact values you are using for your balance, payment amount, and annual interest rate, as incorrect mathematical assumptions or formatting commonly trigger this specific calculation error.
Adjust Interest Rate Compounding and Cash Flow Signs
Correct the NPER formula by matching the interest rate period to the payment period and using opposite mathematical signs for incoming and outgoing cash.
The #NUM! error in financial functions like NPER usually occurs when the math is fundamentally impossible, such as when the payments aren't large enough to cover the accumulated interest, or when the cash flow directions (signs) are entered incorrectly.
You must ensure that the annual interest rate is divided by 12 to match the monthly payment schedule. Additionally, the present value (current balance) and the payment amount must have opposite positive and negative signs to represent cash inflows and outflows accurately.
Click on the cell containing your NPER formula to make it active.
Click into the formula bar and update the Rate argument to reflect a monthly rate by dividing the annual decimal rate by 12. Type 0.13/12 instead of 13.
Set the Pmt (payment) and Pv (present value) arguments to have opposite signs. For example, if your payment is entered as a positive 400, your present value balance should be negative -10000.
Complete the function syntax as =NPER(0.13/12, 400, -10000, 0) and press Enter to see the correct number of months required for repayment.

Use WPS Spreadsheet to Calculate Loan Repayments Flawlessly
WPS Spreadsheet offers full support for all advanced financial functions, including NPER, PMT, and FV. You can calculate credit card payments, mortgage terms, and investment returns effortlessly in a familiar, highly compatible environment with built-in formula guidance.
- 1. Open WPS Spreadsheet: Launch WPS Office and open a new blank spreadsheet.
- 2. Access financial functions: Click on the 'Formulas' tab in the top ribbon and select 'Financial' from the function library.
- 3. Select the NPER function: Choose 'NPER' from the drop-down list to open the Function Arguments dialog box.
- 4. Input the exact arguments: Enter your rate (e.g., 0.13/12), payment (400), and present value (-10000) into the clearly labeled fields.
- 5. Generate the result: Click 'OK' to instantly generate the correct repayment period without syntax or mathematical errors.

Frequently Asked Questions
Why does the NPER function require opposite signs for PV and PMT?
In financial functions, cash flowing out (like making a payment) and cash flowing in (like receiving loan money) must be represented by opposite signs to correctly model the mathematical cash flow. If both are positive, the function assumes you are only accumulating money, making it impossible to reach a zero balance.
What does a #NUM! error mean in spreadsheet formulas?
A #NUM! error indicates a problem with the mathematical validity of a number in a formula. In financial functions, it often means the formula cannot find a valid result. For instance, if the monthly interest charged is higher than the monthly payment, the loan will never be paid off, resulting in a #NUM! error.
Do I always divide the interest rate by 12 for the NPER formula?
You only divide the annual interest rate by 12 if you are making monthly payments. If you make quarterly payments, divide by 4. The rate compounding period must always match the frequency of the payments.
Can I use percentages directly in the NPER formula?
Yes, you can type '13%/12' directly into the formula. If you prefer to use decimals, you must convert the percentage properly by entering '0.13/12'. Entering '13/12' without the percent sign will cause massive miscalculations.




