excel中如何自动列出某个分数段的学生名字?
2021-10-18
方法1:
sheet2,C1:
=TEXTJOIN(",",1,IF(Sheet1!$D$3:$D$1000>=LEFT(A2,FIND("分",A2)-1)*1,Sheet1!$A$3:$A$1000,""))
编辑状态下同时按下Ctrl+Shift+Enetr,不用下拉
sheet2,C2:
=TEXTJOIN(",",1,IF((Sheet1!$D$3:$D$1000>=LEFT(A3,FIND("分",A3)-1)*1)*(Sheet1!$D$3:$D$1000<LEFT(A2,FIND("分",A2)-1)*1),Sheet1!$A$3:$A$1000,""))
编辑状态下同时按下Ctrl+Shift+Enetr,下拉
效果图sheet1:
效果图sheet2:
如果不想改的话Sheet2,C12:
=SUBSTITUTE(TEXTJOIN(",",1,IF(Sheet1!$D$3:$D$1000<=LEFT(A12,FIND("及",A12)-1)*1,Sheet1!$A$3:$A$1000,"")),",0","")
方法2:
Sheet2,C2:
=TEXTJOIN(",",1,IF((Sheet1!$D$3:$D$1000>=LEFT(A2,FIND("分",A2)-1)*1)*(Sheet1!$D$3:$D$1000<IFERROR(LEFT(A1,FIND("分",A1)-1)*1,150)),Sheet1!$A$3:$A$1000,""))
编辑状态下同时按下Ctrl+Shift+Enetr如图出现大括号,下拉
先将sheet1的内容按总分从高到低排序,一定要排序,不排序名单会出错
在sheet2的C2单元格输入=IFERROR(TEXTJOIN(",",,OFFSET(Sheet1!$A$2,SUM($B$1:$B1)+1,,B2)),"")
广告 您可能关注的内容 |