Confident CellsExcel practice Start free

How long to pay it off: NPER: practice exercises

NPER for loans and savings, months to years, ROUNDUP, forecasts with IF and AND. 7 exercises on real-looking data, each marked the moment you press Check. The first exercise is below to try now; the full lesson is part of Pro.

Your turn

In B5, use NPER to work out how many monthly payments it takes to pay off this loan. Use the monthly rate (B2/12). The payment goes out, so put it in as -B3; the loan is paid to you, so it's B1.

AB
1Loan amount£10,600.00
2Yearly interest rate4.5%
3Monthly payment£275.00
4
5Number of payments

How it works

NPER(rate, payment, amount now) works out how many payments it takes to pay off a loan, or to save up to a target. Like PMT, it follows Excel's money rule: money you receive is a plus number, and money you pay out is a minus number.

The rate is per payment, so for monthly payments use the yearly rate ÷ 12, and the answer comes out in months.

=NPER(5%/12,-200,5000) =NPER(6%/12,-250,5000)/12 =NPER(4%/12,-100,0,3000) =IF(NPER(B2/12,-B3,B1)<=36,"Yes","No")

Which way the money goes

NPER uses the same rule as PMT, FV and PV:

  • Money you receive is a plus number: a loan paid to you, or the savings you get back at the end.
  • Money you pay out is a minus number: each monthly payment, or each amount you put into savings.

If both are plus (or both minus), NPER gives a minus number of payments or #NUM!. Either way, a minus sign is missing.

The rate is per payment: for monthly payments, divide the yearly rate by 12. Then NPER's answer is in months. Divide by 12 for years.

Worked example: paying off a loan

AB
1Loan£5,000.00
2Yearly rate6%
3Monthly payment£250.00
4
5Payments
  1. =B1/B3 in B5. Without interest, £5,000 at £250 a month would take 5,000 ÷ 250 = 20 months. Interest makes it longer.
  2. =NPER(B2/12,-B3,B1) in B5. The monthly rate (6% ÷ 12 = 0.5%), the payment going out (−£250), and the loan coming in (+£5,000). It takes 21.1 months.
  3. =ROUNDUP(NPER(B2/12,-B3,B1),0) in B5. There's still a little to pay in month 22, so that's 22 payments: round up, not to the nearest.

Worked example: saving up

AB
1Saved each month£100.00
2Yearly rate4%
3Target£3,000.00
4
5Months
  1. =NPER(B2/12,-B1,0,B3) in B5. Paying in £100 a month (−B1), starting from nothing (0), until you get back £3,000 (B3, the fourth part). At 4% a year it takes 28.6 months, a little under 30, because of the interest.

Forecasts with IF and AND

NPER fits inside IF to answer a yes-or-no question. Will the loan be paid off within 3 years?

=IF(NPER(B2/12,-B3,B1)<=36,"Yes","No")

Within 3 years means 36 months or fewer, so it's <=. For two conditions, put AND inside: =IF(AND(NPER(B2/12,-B3,B1)<=36,B3<=300),"Yes","No") is Yes only if it's paid off in time and the payment is £300 or less.

What you'll practise

  1. In B5, use NPER to work out how many monthly payments it takes to pay off this loan. Use the monthly rate (B2/12). The payment goes out, so put it in as -B3; the loan is paid to you, so it's B1.
  2. In B5, work out how many years it will take to pay off the loan. NPER with a monthly rate gives months, so divide by 12.
  3. In B5, use NPER to work out how many months of saving it takes to reach the target. You pay in each month (-B1), you start with nothing (0), and the target is what you get back at the end, so it's the fourth part: B3.
  4. NPER gives a part month at the end, but every month has a payment, even if the last one is smaller. In B5, work out the number of monthly payments, rounded up to a whole number.
  5. The committee will only take the loan if it's paid off within the number of years in B4. In B6, show Yes if the number of monthly payments is no more than B4 years' worth, and No if it is more.
  6. Each row is a loan offer. An offer is suitable only if it's paid off within the years in H1 and its monthly payment is no more than H2. In E2, show Yes or No for each offer, in a formula that can be copied down to E9.
  7. A club has some savings already and adds the same amount each month, earning the interest rate in B3. In B6, work out how many whole months it will take for the savings to reach the target, counting a part month as a whole one.