How to Fix the #NUM! Error in Excel
#NUM! means the result is not a number Excel can calculate. It often appears when a function that searches for its answer by repetition, such as IRR or RATE, cannot find one. Give it a guess and calculate again.
Formula to use
=IRR(B2:B7, -0.1)Search again starting from -10%
When IRR or RATE cannot find an answer
The cash flows need both negative (investment) and positive (return) values to have an answer. If they all have the same sign, changing the guess still gives #NUM!.
Microsoft documentation also suggests turning on iterative calculation in File > Options > Formulas and raising the maximum number of iterations.
=RATE(48, -200, 8000)*12Annual loan rate. If no answer, add a guess as the last argument
Values that cannot be calculated
A negative number has no square root, so SQRT gives #NUM!. DATEDIF gives #NUM! when the start date is later than the end date.
=SQRT(ABS(A2))Use the absolute value if negative=DATEDIF(MIN(B2,C2), MAX(B2,C2), "Y")Works whichever date comes first
When the result is too large
According to Microsoft documentation, a result outside roughly -1×10^307 to 1×10^307 gives #NUM!. For calculations that grow very large, such as powers, work in smaller units.
=POWER(10, 400)Too large: #NUM!
Try the functions used here
Change the arguments in the function playground and watch the calculation step by step.
- IRR functionReturns the internal rate of return: the rate that makes the net present value of cash flows zero.
- RATE functionWorks out the interest rate per period from the term, payment and loan.
- SQRT functionReturns the positive square root of a number.
- DATEDIF functionCounts the complete years, months or days between two dates. Use it for ages and lengths of service.
- POWER functionRaises a number to a power.
FAQ
- How do I choose the guess?
- Enter the rate you expect. When omitted it starts from 10%, so if the answer is far from 10%, as with a large loss, try values such as -0.1 or 0.5.
- Can I type 1,000 with a comma in a formula?
- Microsoft documentation says to enter numbers in formulas without formatting, like 1000. Show commas or currency symbols with cell formatting.