• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

SUMIFs and MAX

Dear All,

The excel has two columns NO. & QTY. I would like to retrieve the NO. with maximum quantity. There is a repetition of numbers too. Please suggest a formula.

Thanks,
Pavan.
 

Attachments

  • Sumifs.xlsx
    367.2 KB · Views: 10
Try...
=SUMIF(B3:B12824,MODE.SNGL(B3:B12824),C3:C12824)

Edit: Oh wait, I think I misunderstood your question...

Why not just use PivotTable?
 

Attachments

  • Sumifs.xlsx
    369.5 KB · Views: 3
Why the formula? Pivot is far more efficient at this sort of analysis.

To Find No. Corresponding to Max Quantity
=INDEX($B$3:$B$12824,MATCH(E3&"_"&MAX(IF($A$3:$A$12824=E3,$C$3:$C$12824)),$A$3:$A$12824&"_"&$C$3:$C$12824,0))

Max Quantity
=MAX(IF($A$3:$A$12824=E3,$C$3:$C$12824))

Both confirmed as Array.
 
Back
Top