As you seem to be using a post 2003 version, a shorter function is available
=IFERROR(HLOOKUP(A2,years!A$1:F$5,2,0),0)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
|