title: How can I get Excel's LOOKUP function to handle two separate array criteria?
body: <p>I could use some help with Excel's LOOKUP function please...</p>
  
  <p>I have this formula designed to reference the last value (they are dates) in a row (non blank) and then return me the value in the title row above it.  This one works great...</p>
  
  <pre><code>=INDEX($L$4:$BB16,1,((LOOKUP(2,1/(L16:BB16&lt;&gt;""),COLUMN(L16:BB16)))-10))
  </code></pre>
  
  <p>However I now need to also add the criteria that the date can not be bigger than today's date.  So I've added an AND function in the criteria hoping that would do the trick as follows:</p>
  
  <pre><code>=INDEX($L$4:$BB10,1,((LOOKUP(2,1/(AND(ISNUMBER(L10:BB10),L10:BB10&lt;=TODAY())),COLUMN(L10:BB10)))-10))
  </code></pre>
  
  <p>but this formula doesn't seem to be working.  I'm not too sure why.  In a nutshell I need the Lookup function to be able to handle two criteria (not blank and also date less than today).  Any thoughts or advice??</p>
  
  <p>Thanks!</p>