Forecast data by using the AND(), IF(), and NPER() functions
=NPER(C2/12, -D2, B2)How many monthly payments of D2 clear a loan of B2 at the annual rate in C2. Divide the rate by 12, and enter the payment as a negative so the count comes out positive.
What the MO-211 task asks
Microsoft's bullet puts NPER beside AND and IF because a forecast is often a number and a decision on it. In our MO-211 practice exams the NPER task reads: “work out how many monthly payments of B14 are needed to clear the lease, from the annual rate in B15 and the principal in B16. Enter the payment as a negative so the count shows positive.”
Two conversions are in that sentence. The rate is annual and the payments monthly, so the rate argument is the annual rate divided by 12. And NPER follows cash flow: money you receive (the loan) is positive and money you pay out is negative, which is why the task tells you the payment's sign.
IF and AND then turn the forecast into a decision — approve when the loan clears within 24 months and the rate is no more than 10%, say. Our grader checks the value in every target cell, so a sign or a missing /12 is a wrong answer, not a near miss.
Worked examples
Type these into a blank sheet to follow along. Every result below is what Excel showed.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Loan | Principal | Rate | Payment | Months |
| 2 | L-1 | 12000 | 6% | 400 | 32.6 |
| 3 | L-2 | 5000 | 9% | 250 | 21.8 |
| 4 | L-3 | 20000 | 4.5% | 450 | 48.7 |
=IF(AND(NPER(C3/12, -D3, B3)<=24, C3<=10%), "Approve", "Review")L-2 clears in about 21.8 months, inside 24, and its 9% rate is within 10%. Both must hold, so AND, inside IF.
=IF(AND(NPER(C4/12, -D4, B4)<=24, C4<=10%), "Approve", "Review")L-3's rate is low, but it takes about 49 months to clear.
=NPER(C2, -D2, B2)At 6% a month, the interest on 12,000 is 720 a month, more than the 400 payment, so the loan never clears and NPER has no answer.
=NPER(C2/12, D2, B2)With the loan and the payment both positive, the answer is negative and means nothing for this task.
=NPER(C2/12, -D2, B2)Each row reads its own loan. The cells are formatted to one decimal place; NPER returns a fraction because the last payment is a part payment. This is what the video below builds.
Watch it done in Excel
The last example above, recorded in real Excel on the same grid.
Exam traps
=NPER(C2, -D2, B2) treats 6% as a monthly rate and returns #NUM!. Monthly payments need the rate per month: C2/12.
The task says to enter the payment as a negative so the count shows positive. =NPER(C2/12, D2, B2) shows a negative count, which fails the check.
IF's first argument is the test. =AND(IF(…)) is not the shape: the decision is =IF(AND(test 1, test 2), "Approve", "Review").
The task asks how many payments are needed; it does not ask you to round. Leave NPER's result as it is and change only the display, unless the task says otherwise.
FAQ
Why is the payment negative?
NPER uses cash-flow signs: the loan you receive is positive, the payments you make are negative. Give both the same sign and the result is meaningless.
What about a loan with a balloon payment?
NPER takes an optional future value after the principal. Without one, it assumes the loan is paid down to 0.
Is NPER the same as working out months by hand?
No: dividing 12,000 by 400 gives 30 months and ignores interest. NPER's 32.6 includes it.
New to this function?
This page covers what the exam asks. For the full how-to — every argument, more examples and a practice workbook — read our guide on dfwexcel.com.
The NPER function, explained — dfwexcel.comTry it under exam conditions
Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.
No credit card needed.
