+ Reply to Thread
Results 1 to 9 of 9

Returning max number of a certain item

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    lisbon
    MS-Off Ver
    windows 8
    Posts
    33

    Returning max number of a certain item

    Hi,

    I have a problem that is analogous to this:

    a 4

    b 5

    a 2

    b 7

    c 8 etc.

    I want to build a formula that gives me the maximum a,b,c. For building a new table with these items and its maximum values:

    a 4
    b 7
    c 8

    Thanks
    Last edited by campelliann; 07-11-2015 at 04:14 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Returning max number of a certain item

    You can use the =MAX(IF( array formula to accomplish that.

    See sample attached
    Attached Files Attached Files

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

    Re: Returning max number of a certain item

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

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Returning max number of a certain item

    Try this

    =MAX(INDEX(($A$1:$A$9=D1)*($B$1:$B$9),0))

    Row\Col
    A
    B
    C
    D
    E
    1
    a
    15
    a
    65
    2
    a
    4
    b
    45
    3
    b
    45
    c
    57
    4
    b
    32
    5
    b
    45
    6
    c
    57
    7
    c
    56
    8
    b
    12
    9
    a
    65
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Returning max number of a certain item

    I like that Mr AltKey

  6. #6
    Registered User
    Join Date
    06-22-2015
    Location
    lisbon
    MS-Off Ver
    windows 8
    Posts
    33

    Re: Returning max number of a certain item

    You guys are great! thank you very much Blindalley, Alkey and Czeslaw!

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Returning max number of a certain item

    You're welcome. Please don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Returning max number of a certain item

    Try this...

    Data Range
    A
    B
    C
    D
    E
    1
    ------
    ------
    ------
    ------
    ------
    2
    A
    4
    A
    4
    3
    B
    5
    B
    7
    4
    A
    2
    C
    8
    5
    B
    7
    6
    C
    8
    7


    This array formula** entered in E2 and copied down:

    =MAX(IF(A$2:A$6=D2,B$2:B$6))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

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

    Re: Returning max number of a certain item

    Your problem can be solved at all without any formulas, but only with the help of consolidation.
    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: 2
    Last Post: 10-14-2014, 07:12 AM
  2. Replies: 1
    Last Post: 08-22-2014, 12:27 AM
  3. Searching Item Code And Item Number
    By Shi in forum Excel General
    Replies: 3
    Last Post: 11-23-2013, 03:33 AM
  4. Returning second to last value of a recurrent item of a column
    By zarpelao in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2013, 03:55 PM
  5. Returning the last item in column
    By HondaMike in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-04-2005, 08:06 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