=IFERROR(INDEX($H:$H,MATCH($ A2 & amp; B$ 1,$ G:$ G & amp; $F:$F,)),"")
For the old version, press ctrl+shift+enter.