Try this
Formula:
=IFERROR(INDEX('Tab B'!D:D,SMALL(IF((ISNUMBER(SEARCH("labor",'Tab B'!C$3:C$10)))*('Tab B'!B$3:B$10=B3),ROW('Tab B'!B$3:C$10)),1)),"")
***Array formula
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.
You will know the array is active when you see curly braces { } appear around your formula.
If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
And with regular
Formula:
=IFERROR(INDEX('Tab B'!D$3:D$10,INDEX(MATCH(1,('Tab B'!$B$3:$B$10=B3)*INDEX(ISNUMBER(SEARCH("Labor",'Tab B'!$C$3:$C$10)),),),)),"")
Bookmarks