Conditional Min and Max in Excel 2010

前端 未结 5 636
情书的邮戳
情书的邮戳 2020-12-06 13:13

\"enter

I would like to find Min and Max of Quantity (Column 2) based on Type (coloumn

5条回答
  •  没有蜡笔的小新
    2020-12-06 13:44

    A rather sneaky but simple way to do it is
    1. create a new column that concatenates both Type and Qty and Call it "TypeQty" or whatever you'd like
    2. Sort (Ascending) the new table ie Type,Qty and TypeQty all together but sort on the TypeQty column.
    3. apply a formulat that checks if the type in the row above is the same as the current row. if not then mark that row because its the last of the current type.

    you will end up with the "mark" only the max rows for each type. See screenshots

提交回复
热议问题