+ Reply to Thread
Results 1 to 7 of 7

Need Max of Difference between 2 numbers in a range

  1. #1
    Registered User
    Join Date
    06-05-2009
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Need Max of Difference between 2 numbers in a range

    Hi, I am trying to find the Abs Maximum difference between the first cell in the range and the cell that is greatest in Absolute difference from it within the cell range.

    I tried using the MAX function but it returns the max value in the range whereas I want the Max value after the other values in the range have been subtracted from the first cell in the range (Greatest difference.


    Please see attached worksheet

    btw: the 10000 in the formula is just to make the small numbers more easy to read
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Need Max of Difference between 2 numbers in a range

    Try this ...

    =MAX(ABS(A2-$A$2:$A$8))*10000

    Enter with Ctrl+Shift+Enter.
    Last edited by Phuocam; 10-24-2016 at 12:59 AM.

  3. #3
    Registered User
    Join Date
    06-05-2009
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Need Max of Difference between 2 numbers in a range

    Quote Originally Posted by Phuocam View Post
    Try this ...

    =MAX(ABS(A2-$A$2:$A$8))*10000

    Enter with Ctrl+Shift+Enter.
    Hi, Thanks for the response but that is just spitting out the same incorrect values that the formula I came up with is...

    instead of 15 for the first calculation, the correct answer should be 16 which is derived from Abs(.0017-.0001).

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Need Max of Difference between 2 numbers in a range

    Quote Originally Posted by wowzers View Post
    Hi, Thanks for the response but that is just spitting out the same incorrect values that the formula I came up with is...

    instead of 15 for the first calculation, the correct answer should be 16 which is derived from Abs(.0017-.0001).
    Cell A6 = 0.001 not 0.0001

  5. #5
    Registered User
    Join Date
    06-05-2009
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Need Max of Difference between 2 numbers in a range

    yes thats right.

    you know what i mean :-)

  6. #6
    Registered User
    Join Date
    06-05-2009
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Need Max of Difference between 2 numbers in a range

    Ok, thank you .now it works.

    my question: whats the cntrl+shift+enter do?

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Need Max of Difference between 2 numbers in a range

    It is array formulas.

+ 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. Replies: 15
    Last Post: 08-07-2014, 12:57 AM
  2. Calculate difference between numbers within month range
    By CaitlinRose in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-20-2013, 09:05 PM
  3. Two random numbers with sum / difference within ceratin range
    By kapucino in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2013, 01:40 PM
  4. [SOLVED] vba for difference btw 2 numbers
    By meezadahsra in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2013, 05:16 AM
  5. [SOLVED] Count odd/even numbers in range with difference of X
    By sans in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 10-20-2012, 04:48 PM
  6. Insert numbers of based upon difference of two numbers
    By excellentlearner in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-08-2012, 05:54 PM
  7. Difference between Numbers
    By Lost123 in forum Excel General
    Replies: 4
    Last Post: 03-26-2010, 02:05 PM

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