Get maximum value based on unique values

后端 未结 3 2166
名媛妹妹
名媛妹妹 2021-01-24 05:20

I have two columns in Excel as follows:

col1  col2

1     10
1     22
1     11
1     23
1     14
2     16
2     12
2     10
2     9

How do I wr

3条回答
  •  半阙折子戏
    2021-01-24 06:00

    Even if a solution has been found. I think it is too complicated and oversized to use the pivot for this and it might not be possible in all scenarios. Here is one that can be found searching the internet for "max if excel" (e.g. see here; adapted)

    {=MAX(IF(A:A=A1,B:B))}

    Attention! This is an array formula, you have to enter it without the curly brackets and then press Ctrl+Shift+Enter to submit the formula.

提交回复
热议问题