+ Reply to Thread
Results 1 to 5 of 5

Can sumif and Max functions combined into one?

  1. #1
    Registered User
    Join Date
    07-25-2011
    Location
    PA, USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Can sumif and Max functions combined into one?

    Let's say I have a product with different category. I want to be able to pick the product with the highest member count value. At the same time, there are other products with the same category. In this case, I can do a Sumif function to add the total member count value. Because I have products with different category and products with same category in the same worksheet, it's diffifult to built a function that would do both. I attached a document for example purposes. Any thoughts on this? Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Can sumif and Max functions combined into one?

    There's no MAXIF function as such but you can use an "array formula", e.g.

    =MAX(IF(A2:A7="AB",C2:C7))

    The formula needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula in the formula bar
    Audere est facere

  3. #3
    Registered User
    Join Date
    07-25-2011
    Location
    PA, USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Can sumif and Max functions combined into one?

    I'll just have to sort the product with different category and add the above function and sort the product with same category and add the sumif function. Thanks for your help!.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Can sumif and Max functions combined into one?

    Perhaps I'm not clear about what you want to achieve but I don't see the need for sorting - did the formula I suggested work or is it more complex than that?

  5. #5
    Registered User
    Join Date
    07-25-2011
    Location
    PA, USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Can sumif and Max functions combined into one?

    You're right. It did work. I thought the fuction you provided only worked for the product with different category. Thanks, again!

+ 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