Find MIN/MAX date in a range if it matches criteria of other columns

后端 未结 3 2004
长发绾君心
长发绾君心 2021-01-06 14:42

Column A is date

Column B is criteria

I want to find the MIN date for each criteria. I tried using Ctrl

3条回答
  •  既然无缘
    2021-01-06 15:00

    An even more compact array formula is:

    =MINIF(B2=B:B,A:A)
    

    NOTE 1: Complete using Ctrl+Shift+Enter to enter the formula as an array formula.

    NOTE 2: The two-formula method (i.e., using =MIN(IF(B2=B:B,A:A))) is more flexible and works in more cases than the single-formula method shown here but I've included it as an answer as a possible option.

提交回复
热议问题