在F2单元格输入以下公式,然后向下填充公式=IF(AND(COUNTIF(体系内!O:O,B2)=0,COUNTIF(体系外!O:O,B2)=0),"接触未购机",IF(AND(OR(AND(COUNTIF(体系内!O:O.B2)>0,COUNTIF(体系内!AA:AA,E2)>0),AND(COUNTIF(体系外!O:O.B2)>0,COUNTIF(体系内!W:W,E2)>0)),"接触购机",IF(VLOOKUP(B2,B:D,3,0)<>D2,"已购机","")))