EXCEL如何从一个工作表中提取与另一个工作表中条件相同的数值?

2025-01-01 17:42:45
推荐回答(3个)
回答1:

在Sheet2的B2单元格输入公式=INDEX(Sheet1!$A$2:$A$7,MIN(IF(RANK(Sheet1!$B$2:$B$7,Sheet1!$B$2:$B$7)=A2,ROW(Sheet1!$B$2:$B$7)-1,1000))),按Shift+Ctrl+Enter结束,然后下拉填充。

回答2:

在SHEET2的B2输入:
=INDEX(SHEET1!A:A,MATCH(LARGE(SHEET1!B$2:B$7,A2),SHEET1!B:B,))
或者
=VLOOKUP(LARGE(Sheet1!B$2:B$7,A2),IF({1,0},Sheet1!B$2:B$7,Sheet1!A$2:A$7),2,)
下拉填充
-------------------
如果有成绩相同,则用下面的公式:
=INDEX(Sheet1!A:A,MATCH(LARGE(Sheet1!B$2:B$7-ROW($2:$7)/10^8,A2),Sheet1!B$2:B$7-ROW($2:$7)/10^8,)+1)
数组公式,按CTRL+SHIFT+ENTER结束
下拉填充

回答3:

用vlookup就行
比如你要在sheet2里查sheet1里的成绩 就用这个公式:
=VLOOKUP(A2,Sheet1!A2:B7,2,0)