excelexcel-formulavlookupindex-match

Approximate match of date and exatc match of string in Excel


Is it possible to get the following results using formulas prior to Excel 365?

It's like an index-match combo with two criteria. Argument for Column1 must have an exact match, while for Column2 it must look for the next previous date for the match found in Column1.

enter image description here

I could use an UDF in case this can't be done with regular formulas.


Solution

  • A Tricky Lookup (Old Excel)

    =IFERROR(LOOKUP(2,1/($A$2:INDEX($A:$A,MATCH(1,($A$2:$A$11=E2)*($B$2:$B$11=F2),0)+ROW($A$2)-2)=E2),$C$2:INDEX($C:$C,MATCH(1,($A$2:$A$11=E2)*($B$2:$B$11=F2),0)+ROW($A$2)-2)),"")
    

    enter image description here