title: Find MIN/MAX date in a range if it matches criteria of other columns
body: <blockquote>
    <p>Column A is date</p>
    
    <p>Column B is criteria</p>
  </blockquote>
  
  <p>I want to find the <code>MIN</code> date for each criteria. I tried using <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Enter</kbd> with</p>
  
  <pre><code>=MIN(MATCH(B2,B:B,0))
  </code></pre>
  
  <p>but thats not quite right because I need to refer to Column <code>A</code> somehow to get the date. I'm pretty confident this can be done with arrays, so any help would be great.</p>