Forum Discussion

eehyun123's avatar
eehyun123
Copper Contributor
Jul 30, 2020
Solved

Help Vlookup formula with criteria

Help Vlookup formula with criteria If I have a table, what formula would I use to return a value to a cell-based upon two lookup criteria (match country & in price range)?     Table ...
  • JMB17's avatar
    JMB17
    Aug 03, 2020

    eehyun123 

     

    If I may, I think the problem is that the MIN function is evaluating all of the rate differences and not just the rate differences for the selected country.

     

    I think it just needs a little tweak. Try this in H4 (copied down):

     

    =INDEX($C$4:$C$9, MATCH(1,ISNUMBER(SEARCH($E4,$B$4:$B$9))*(ABS($C$4:$C$9-$G4)=MIN(IF(ISNUMBER(SEARCH($E4,$B$4:$B$9)),ABS($C$4:$C$9-$G4),""))),0))

     

Resources