+ Reply to Thread
Results 1 to 6 of 6

Take most extreme value from a set of negative and positive values.

  1. #1
    Registered User
    Join Date
    05-12-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Take most extreme value from a set of negative and positive values.

    I have a set of 11 negative and positive values, I need to be able to set up a formula to select 'largest changed value' or the 'most changed value'.
    I have been able to do this only with removing the signs of the numbers, which does return the correct number but I also need the associated sign.
    Any ideas,
    Cheers,
    Helen

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Take most extreme value from a set of negative and positive values.

    Could you elaborate by means of a sample file ? It's not clear to me at least how you're identifying the max change value etc...

  3. #3
    Registered User
    Join Date
    04-03-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Take most extreme value from a set of negative and positive values.

    Try setting up a column as =ABS(value), then do a =MAX(column)

    dJE

  4. #4
    Registered User
    Join Date
    05-12-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Take most extreme value from a set of negative and positive values.

    I have tried this and I need to know if the Max(column) value is neg or positive? This couldn't be done manually as there are 24,000 sets.

    An eg of the samples:

    Patient 1: 0.67452 0.00223 -0.98636

    Out of the 3 values I need to take the most extreme (compared to 0), so for this case the value would be -0.98636.

    Hope this clears things up?

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Take most extreme value from a set of negative and positive values.

    So if those values were in say A1:A3 the value to be returned would be:

    B1: =INDEX(A1:A3,MATCH(TRUE,ABS(A1:A3)=MAX(ABS(A1:A3)),0))
    committed with CTRL + SHIFT + ENTER

    B1 would return -0.98636

  6. #6
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Take most extreme value from a set of negative and positive values.

    =if(abs(min(b3:l3))>max(b3:l3),min(b3:l3),max(b3:l3))

    not sure what you want if both extremes are the same but :-

    =IF(ABS(MIN(B3:L3))=MAX(B3:L3),"±","") & IF(ABS(MIN(B3:L3))>MAX(B3:L3),MIN(B3:L3),MAX(B3:L3))

    will display ± value (note this is not a number its text)
    Last edited by squiggler47; 05-13-2009 at 06:12 AM. Reason: Min Max reversed
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


+ 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