+ Reply to Thread
Results 1 to 6 of 6

Max Function

  1. #1
    Registered User
    Join Date
    01-17-2015
    Location
    Bangalore
    MS-Off Ver
    Office 07
    Posts
    28

    Max Function

    Hi all,


    My question is I have a data which contains Item ID (Column A) and the Cost (Column B); PFA Attachement; I just need to find out what is Minimum cost and the maximum cost for the Individual ID's.

    Any help would be appreciated.

    Nasha.,For forum.xlsFor forum.xls

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,932

    Re: Max Function

    This requires array formulas. For minimum, use this formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But you can't simply hit enter. For an array formula, after typing the formula, press CTRL-SHIFT-ENTER. Then you will see it display in the formula bar with braces:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But you can't just type the braces, you have to hit CTRL-SHIFT-ENTER.

    Similar formula for MAX.

    See attached.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: Max Function

    You can use this array* formula in G3:

    =MIN(IF($B$3:$B$233=$F3,$C$3:$C$233))

    and this array* formula in H3:

    =MAX(IF($B$3:$B$233=$F3,$C$3:$C$233))

    then if you have other unique IDs in F4 and down, you can just copy the formulae down as required.

    *NOTE: an array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual <Enter>.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    01-17-2015
    Location
    Bangalore
    MS-Off Ver
    Office 07
    Posts
    28

    Re: Max Function

    Thank you both,, My Problem Solved.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: Max Function

    Glad to hear that.

    Note that it is not a good idea to use full-column references for array formulae, as every element in the array will be evaluated.

    Pete

  6. #6
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,417

    Re: Max Function

    I offer a version without an array formula.
    Attached Files Attached Files

+ 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: 1
    Last Post: 06-10-2015, 12:56 PM
  2. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  3. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  4. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  5. Replies: 1
    Last Post: 03-21-2012, 11:22 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