excel表格如果sheet2A列=sheet1A列且sheet2B列=sheet1B列且sheet2C列=sheet1C列,在sheet2E列返回sheet1E
excel表格如果sheet2A列=sheet1A列且sheet2B列=sheet1B列且sheet2C列=sheet1C列,则在sheet2E列返回sheet1E的数据...
excel表格如果sheet2A列=sheet1A列且sheet2B列=sheet1B列且sheet2C列=sheet1C列,则在sheet2E列返回sheet1E的数据,两张表的每行顺序是不一样的。怎么设置函数?
展开
2个回答
展开全部
Sheet2中的E2单元格输入以下公式:
=IF(ISERROR(MATCH(A2,Sheet1!A:A,0)),"",IF(INDEX(Sheet1!B:B,MATCH(A2,Sheet1!A:A,0))<>B2,"",IF(INDEX(Sheet1!C:C,MATCH(A2,Sheet1!A:A,0))<>C2,"",INDEX(Sheet1!E:E,MATCH(A2,Sheet1!A:A,0)))))
但是我看你的样数,好像是要反回D列的数据,如果是D列,就是在Sheet2的D2输入以下公式
=IF(ISERROR(MATCH(A2,Sheet1!A:A,0)),"",IF(INDEX(Sheet1!B:B,MATCH(A2,Sheet1!A:A,0))<>B2,"",IF(INDEX(Sheet1!C:C,MATCH(A2,Sheet1!A:A,0))<>C2,"",INDEX(Sheet1!D:D,MATCH(A2,Sheet1!A:A,0)))))
=IF(ISERROR(MATCH(A2,Sheet1!A:A,0)),"",IF(INDEX(Sheet1!B:B,MATCH(A2,Sheet1!A:A,0))<>B2,"",IF(INDEX(Sheet1!C:C,MATCH(A2,Sheet1!A:A,0))<>C2,"",INDEX(Sheet1!E:E,MATCH(A2,Sheet1!A:A,0)))))
但是我看你的样数,好像是要反回D列的数据,如果是D列,就是在Sheet2的D2输入以下公式
=IF(ISERROR(MATCH(A2,Sheet1!A:A,0)),"",IF(INDEX(Sheet1!B:B,MATCH(A2,Sheet1!A:A,0))<>B2,"",IF(INDEX(Sheet1!C:C,MATCH(A2,Sheet1!A:A,0))<>C2,"",INDEX(Sheet1!D:D,MATCH(A2,Sheet1!A:A,0)))))
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询