+ Reply to Thread
Results 1 to 5 of 5

Eliminate the #NUM! error in a MAX function

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Eliminate the #NUM! error in a MAX function

    This equation gives me #NUM! in the cell when x< 0 although I expect it to give me 1 per the MAX function. If x > 0 , it works as expected. any help?
    = MAX(ROUNDDOWN(0.5*((x)^0.5 + 1),0),1)
    Last edited by tdschulz; 11-09-2012 at 02:25 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Can someone tell me what is wrong with this equation?

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    11-05-2012
    Location
    London Englad
    MS-Off Ver
    Many
    Posts
    22

    Re: #NUM! Error when x<0; = MAX(ROUNDDOWN(0.5*(( 8 * -1)^0.5 + 1),0),1)

    Excel does not find square root of -ve number.

    = MAX(ROUNDDOWN( 0.5 * (( ABS(x)^ 0.5 ) * x / ABS(x) + 1),0),1).

    x / ABS(x) , retains the sign, of course, you can use if statement with x < 0 or x > 0 logic.

  4. #4
    Registered User
    Join Date
    08-04-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Eliminate the #NUM! error in a MAX function

    Ah, Of course! thank you.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Eliminate the #NUM! error in a MAX function

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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