求EXCEL公式,高手能帮弄一下吗?谢谢!

 我来答
ewrewr_1
2021-05-12 · TA获得超过4150个赞
知道小有建树答主
回答量:1302
采纳率:64%
帮助的人:390万
展开全部

如果使用office2019,可以在E5编辑公式:=TEXTJOIN(,TRUE,IF(C$2:$C$11=LEFT(D5),$B$2:$B$11,""))&TEXTJOIN(,TRUE,IF(C$2:$C$11=MID(D5,2,1),$B$2:$B$11,""))&TEXTJOIN(,TRUE,IF(MID(D5,2,1)=RIGHT(D5),"",IF(C$2:$C$11=MID(D5,2,1),$B$2:$B$11,"")))

然后同时按住Shift和Ctrl键,再按一下Enter键,在上面的公式的头尾会自动加上左大括号“{”和右大括号“}”。

选中E5单元格,下拉复制即可。

如果使用其它版本的office,E5中的公式由下面的代替:

=IF(C$2=VALUE(LEFT(D5)),B$2,"")&IF(C$3=VALUE(LEFT(D5)),B$3,"")&IF(C$4=VALUE(LEFT(D5)),B$4,"")&IF(C$5=VALUE(LEFT(D5)),B$5,"")&IF(C$6=VALUE(LEFT(D5)),B$6,"")&IF(C$7=VALUE(LEFT(D5)),B$7,"")&IF(C$8=VALUE(LEFT(D5)),B$8,"")&IF(C$9=VALUE(LEFT(D5)),B$9,"")&IF(C$10=VALUE(LEFT(D5)),B$10,"")&IF(C$11=VALUE(LEFT(D5)),B$11,"")&IF(C$2=VALUE(MID(D5,2,1)),B$2,"")&IF(C$3=VALUE(MID(D5,2,1)),B$3,"")&IF(C$4=VALUE(MID(D5,2,1)),B$4,"")&IF(C$5=VALUE(MID(D5,2,1)),B$5,"")&IF(C$6=VALUE(MID(D5,2,1)),B$6,"")&IF(C$7=VALUE(MID(D5,2,1)),B$7,"")&IF(C$8=VALUE(MID(D5,2,1)),B$8,"")&IF(C$9=VALUE(MID(D5,2,1)),B$9,"")&IF(C$10=VALUE(MID(D5,2,1)),B$10,"")&IF(C$11=VALUE(MID(D5,2,1)),B$11,"")&IF(RIGHT(D5)=MID(D5,2,1),"",IF(C$2=VALUE(RIGHT(D5)),B$2,"")&IF(C$3=VALUE(RIGHT(D5)),B$3,"")&IF(C$4=VALUE(RIGHT(D5)),B$4,"")&IF(C$5=VALUE(RIGHT(D5)),B$5,"")&IF(C$6=VALUE(RIGHT(D5)),B$6,"")&IF(C$7=VALUE(RIGHT(D5)),B$7,"")&IF(C$8=VALUE(RIGHT(D5)),B$8,"")&IF(C$9=VALUE(RIGHT(D5)),B$9,"")&IF(C$10=VALUE(RIGHT(D5)),B$10,"")&IF(C$11=VALUE(RIGHT(D5)),B$11,""))

效果:

C2可以用公式:=ROW($A$11)-ROW($A$2)+1-SUMPRODUCT(ISERROR(FIND($B2,$A$2:$A$11,1))*1,ROW(A$2:A$11)/ROW(A$2:A$11))

heping956
2021-05-10 · TA获得超过1.3万个赞
知道大有可为答主
回答量:1.3万
采纳率:81%
帮助的人:2886万
展开全部
  1. 如果不注重顺序,可以用这个公式:

输入公式后同时按ctrl+shift+回车:

=TEXTJOIN(,1,IF(D$2:$D$11=0,$C$2:$C$11,""))&TEXTJOIN(,1,IF(D$2:$D$11=3,$C$2:$C$11,""))&TEXTJOIN(,1,IF(D$2:$D$11=6,$C$2:$C$11,""))

2.加个辅助列,可以省事



=IF(OR(D2=0,D2=3,D2=6),1,0)

输入公式后同时按ctrl+shift+回车:=TEXTJOIN(,1,IF(E$2:$E$11=1,$C$2:$C$11,""))

本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式