公式=if(isna(vlookup(a4,sheet1!a:k,2,false)),0,vlookup(a4,sheet1!a:k,2,false))中,如果vlookup(a4,sheet1!a:k,2,false)所要查找的a4在sheet1!a:k中不存在,返回0,否则返回a4在sheet1!a:k中匹配的第二列数值。在2010以上的版本,可以使用iferror函数容错,如将上式改为:=iferror(vlookup(a4,sheet1!a:k,2,false),"0")