+ Reply to Thread
Results 1 to 5 of 5

#NUM! error in a simple math equation

  1. #1
    Registered User
    Join Date
    12-03-2018
    Location
    Athens
    MS-Off Ver
    Office 2016
    Posts
    3

    #NUM! error in a simple math equation

    Hello! I am trying to get a result from weibull function. In particular I write =WEIBULL(100;693,38;4,25;TRUE) (where x=100, a=693.38, b=4.25) an i take the #NUM! error message
    Trying to figure out where the problem starts and trying to have a result using maths and not the Weibull equation I realized that when you type for example "=(-100000/693,38)^4,25" you get this error message and the only solution is to type "=(-1)*(100000/693,38)^4,25" to get the right answer. Any ideas why this is happening? And why the weibull function does not work for me?

    Thank you in advance!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: #NUM! error in a simple math equation

    I am not sure why Excel's programmers did it, but, according the the help file: https://support.office.com/en-us/art...2-633196f6fdcc If x<0, Weibull returns the #NUM error. The error you are getting from the Weibull function is built into the function by Excel's programmers.

    You may need to know exactly what the math means here (and I might suggest that you check your math carefully here). I would note that (-1E5/693)^4.25 is not the same as -1*(1E5/693)^4.25. The first expression is trying to take the 4th root of a negative number (which is not a real number, hence the #NUM error) and the second expression is taking the 4th root of a positive number (which is real), and then multiplying by -1. I expect that the same thing happens in the Weibull CDF where x cannot be negative (and get a real result). If you are expecting a real result, you will need to think through the parameters and make sure you are feeding the correct parameters into the Weibull function (whether Excel's built in function or your own version).

    If you are expecting a complex result, you can try using the IMPOWER() function, which can raise a negative number to a fractional power, though it still gets a little tricky as it will only give one of the many possible results.

    That should explain the #Num error, but I'm not sure it answers the question fully. What are you expecting?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    12-03-2018
    Location
    Athens
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: #NUM! error in a simple math equation

    X is >0, in fact it is 100000 in my problem, so this is not the reason for the error message.
    Yes you are right (-1E5/693)^4.25 is not the same as -1*(1E5/693)^4.25. However I have #NUM! error if i write "=-(1E5/693)^4.25".
    I'm expecting a real result either by using weibull function or by using the weibull equation, which is exp(-(X/a)^b) and i know X,a and b.
    In fact this problem started with weibull function and finally i have a problem with a simple equation too. (so many #NUM! )

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: #NUM! error in a simple math equation

    However I have #NUM! error if i write "=-(1E5/693)^4.25".
    This is one of those places where Excel is not consistent with typical math notation and other programming languages. In Excel's order of operations, negation (the leading minus sign) comes before exponentiation (https://support.office.com/en-us/art...8-7af9e0e2878a ). You will need to either multiply by -1, or make sure the exponentiation is inside of parentheses in order to make sure the negation comes after the exponentiation.

    One thing I would suggest -- check your math and function definition carefully. Looking at the CDF given in Excel's help file for the Weibull function (1-exp(-1*(x/b)^a)), your Weibull function is using 100 for x, 693 for a, and 4.25 for b -- 1-exp(-1*(100/4.25)^693). Just about anything raised to the 693 power will exceed the limits of double precision and generate a #NUM error. Did you intend 4.25 to be a and 693 to be b =WEIBULL(100;4,25;693;true)?

  5. #5
    Registered User
    Join Date
    12-03-2018
    Location
    Athens
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: #NUM! error in a simple math equation

    Well both the weibull function and the math equation gave results after closing the spreadsheet and opening it again! No more #NUM! So simple!
    After 4 hours trying to figure out! Sometimes Ctrl-Alt-Delete is the solution!
    Thank you very very much for your time!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. math equation in excel
    By ammartino44 in forum Excel General
    Replies: 6
    Last Post: 03-19-2014, 08:54 PM
  2. Help with math equation in Excell
    By savagera in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2013, 05:18 PM
  3. simple equation but getting formula error
    By Elainefish in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-22-2013, 05:02 AM
  4. Text in math equation = #VALUE! ... How to make it = 0
    By jonvanwyk in forum Excel General
    Replies: 2
    Last Post: 06-29-2010, 10:23 AM
  5. math equation help please
    By -Brian-H- in forum Excel General
    Replies: 1
    Last Post: 09-22-2006, 05:22 PM
  6. [SOLVED] I want brackets around my math equation answer?
    By Ms Serene in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-25-2006, 05:50 PM
  7. [SOLVED] simple math equation
    By Richard in forum Excel General
    Replies: 8
    Last Post: 02-18-2006, 04:45 PM
  8. Replies: 3
    Last Post: 02-16-2006, 07:00 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1