+ Reply to Thread
Results 1 to 2 of 2

Finding the MAX and MIN in columns

  1. #1
    Registered User
    Join Date
    04-28-2017
    Location
    United States
    MS-Off Ver
    2007
    Posts
    10

    Question Finding the MAX and MIN in columns

    In the dataset below, the first column is the class. The second column and the third column are the max and mins by the fourth column grade, respectively. The last two columns are how I would like to display the results. I am trying to find the Max by class that does not include the return result to be of grade B. The same for min: trying to find the min by class without the return result to be of grade B. How would you do this? Attached will be excel sheet with data.

    1 2 5 A 5 5
    1 4 7 B 5 5
    1 5 8 C 5 5
    2 8 11 A 8 7
    2 6 9 B 8 7
    2 4 7 C 8 7
    3 3 6 A 4 6
    3 9 12 B 4 6
    3 4 7 C 4 6
    4 8 11 A 8 11
    4 9 13 B 8 11
    4 9 12 C 8 11
    5 7 10 A 7 5
    5 7 10 B 7 5
    5 2 5 C 7 5
    6 4 7 A 4 7
    6 2 5 B 4 7
    6 4 7 C 4 7
    7 -8 -5 A -8 -5
    7 9 12 B -8 -5
    7 -8 -5 C -8 -5
    8 4 7 A 4 5
    8 2 5 B 4 5
    8 2 5 C 4 5
    9 6 9 A 9 8
    9 10 8 B 9 8
    9 9 16 C 9 8
    Attached Files Attached Files

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

    Re: Finding the MAX and MIN in columns

    Max:

    =MAX(IF(($A$2:$A$28=A2)*($D$2:$D$28<>"B"),B$2:B$28))

    Min:

    =MIN(IF(($A$2:$A$28=A2)*($D$2:$D$28<>"B"),C$2:C$28))

    Enter with Ctrl+Shift+Enter.

+ 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. Finding the max of a list of columns, based on the values of other columns
    By galapogos in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2017, 05:45 AM
  2. Finding 2 x Blank Columns
    By ioswoody in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-14-2015, 09:22 AM
  3. Finding the max and sum of certain columns.
    By Skalv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-25-2014, 02:41 PM
  4. [SOLVED] Finding only one MAX value out of several columns?
    By Destroy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-27-2014, 12:45 PM
  5. Replies: 1
    Last Post: 04-09-2012, 02:58 PM
  6. Finding Commonalities b/w 2 Columns
    By albert5445 in forum Excel General
    Replies: 3
    Last Post: 04-20-2010, 03:28 PM
  7. Replies: 3
    Last Post: 03-02-2007, 07:13 AM

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