2007以上版本:=IFERROR(IF(B1>=VLOOKUP(A1,Sheet2!A:C,2,0),VLOOKUP(A1,Sheet2!A:C,3,0),0),0)
2003以下版本:=IF(ISERROR(IF(B1>=VLOOKUP(A1,Sheet2!A:C,2,0),VLOOKUP(A1,Sheet2!A:C,3,0),0),0),0,IF(B1>=VLOOKUP(A1,Sheet2!A:C,2,0),VLOOKUP(A1,Sheet2!A:C,3,0),0),0))
2007以上版本:=IFERROR(IF(B1>=VLOOKUP(A1,Sheet2!A:C,2,0),VLOOKUP(A1,Sheet2!A:C,3,0),0),0)
2003以下版本:=IF(ISERROR(IF(B1>=VLOOKUP(A1,Sheet2!A:C,2,0),VLOOKUP(A1,Sheet2!A:C,3,0),0),0),0,IF(B1>=VLOOKUP(A1,Sheet2!A:C,2,0),VLOOKUP(A1,Sheet2!A:C,3,0),0),0))