In all the cases the lenth was more than 1 so IF function was returning the result of LEFT function which was converting the number to text say "1" and in your lookup sheet they are number so #N/A error, so adding 0 will convert back the string number to number and MATCH can do the job.
Just on note the function will not work for heading 2.02. Just check it.