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

后端 未结 3 2003
长发绾君心
长发绾君心 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.

    0 讨论(0)
  • 2021-01-06 15:03
    =SMALL(INDEX(($F$2:$F$14=F3)*$D$2:$D$14,),SUM(COUNTA(F:F)-COUNTIF(F:F,F3)))
    

    If your criteria is repeated and want to find the min date for that you can use this without shift+ctrl + enter function.

    • date is D column
    • criteria is F column
    0 讨论(0)
  • 2021-01-06 15:11

    Try this (array formula):

    =MIN(IF(B2=B:B,A:A))
    
    0 讨论(0)
提交回复
热议问题