+ Reply to Thread
Results 1 to 3 of 3

How to Find Max or Min Deviation?

Hybrid View

rhartwick How to Find Max or Min... 01-01-2012, 06:30 PM
TMS Re: How to Find Max or Min... 01-01-2012, 07:28 PM
DonkeyOte Re: How to Find Max or Min... 01-01-2012, 07:44 PM
  1. #1
    Registered User
    Join Date
    01-01-2012
    Location
    New York, US
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to Find Max or Min Deviation?

    I need to find and report in a cell the max or min value of a list. For example, if I have 3 cells, the deviation from a specification can be - or +. For example, 3 cells might contain the error found, such as -0.1%, 0.2% and 0.3%. Or, 0.1%, 0.2% and -0.3%. I need to report in a cell the "maximum" error, whether it be positive or negative.

    One possible complication, is that sometimes there might be no error, as all = 0.0%.

    I was thinking about some complicated nesting arrangement, with min and max, then reporting the cell address, then showing the contents for that address in the reporting cell. I am trying to keep things simple though, and it seems there should be a way to do this.

    Thanks in advance for any help.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: How to Find Max or Min Deviation?

    One way:

    =IF(MAX(A$1:A$3)=MAX(ABS(A$1:A$3)),MAX(A$1:A$3),MIN(A$1:A$3))

    Committed with Ctrl-Shift-Enter rather than just Enter

    This assumes the three numbers are in cells A1 to A3.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


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

    Re: How to Find Max or Min Deviation?

    variation on same theme though non-array

    =IF(ABS(MIN(A1:A3))<=MAX(A1:A3),MAX(A1:A3),MIN(A1:A3))
    confirmed with Enter

    where you have an equal on either side of 0 the value > 0 would be displayed.

+ 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