Services
Study guides
Free tools
#NUM! means a formula produced a number Excel cannot represent, or an argument is outside the valid range. Common causes are a negative square root, an impossible date, or an iterative function that cannot converge.
The short answer
#NUM! means a formula produced a number Excel cannot represent, or an argument is outside the valid range. Common causes are a negative square root, an impossible date, or an iterative function that cannot converge.
Use IF to catch impossible inputs. This is clearer than hiding the error with IFERROR.
=IF(A2<0,"Must be positive",SQRT(A2))IRR expects at least one negative and one positive cash flow. Add a guess close to the expected monthly or annual rate.
=IRR(B2:B20,0.1)Excel cannot display a negative date. If you subtract a later date from an earlier one, swap the order or use ABS if direction does not matter.
=ABS(B2-A2)Use Evaluate Formula to find the step that produces #NUM!, then check the number, sign and allowed range of that argument.
=IF(A2<0,"Must be positive",SQRT(A2))Prevents a negative square root from producing #NUM!.
Paste the formula into the free browser tools to see the exact fix without uploading your file. The Error Fixer explains the code, the Formula Checker finds syntax problems, and the Formula Explainer breaks down nested logic.
#NUM! means a formula produced a number Excel cannot represent, or an argument is outside the valid range. Common causes are a negative square root, an impossible date, or an iterative function that cannot converge.
Validate the input before the calculation: Use IF to catch impossible inputs. This is clearer than hiding the error with IFERROR. Give IRR a better guess: IRR expects at least one negative and one positive cash flow. Add a guess close to the expected monthly or annual rate.
Usually because only some rows contain the trigger: A square root or logarithm of a negative number. A date earlier than 1 January 1900 in the 1900 date system. IRR or RATE cannot converge with the supplied cash flows or guess.
Prevents a negative square root from producing #NUM!. Use this pattern as a guard: =IF(A2<0,"Must be positive",SQRT(A2))
Still stuck?
A human Excel expert can repair the formula, explain the cause and return a tested workbook — usually within 24 hours. Fixed quote before work starts, from $15/hr.