EXCEL问题 用什么函数公式找出每组六个数相差为2的所有组合(例如:三连号以上18-20-22-24)?

=SUBSTITUTE(REPT(","&C3,SUMPRODUCT(--(ABS(C3-$C3:$H3)=2))>0)&REPT(","&D3,SUMPRODUCT(-... =SUBSTITUTE(REPT(","&C3,SUMPRODUCT(--(ABS(C3-$C3:$H3)=2))>0)&REPT(","&D3,SUMPRODUCT(--(ABS(D3-$C3:$H3)=2))>0)&REPT(","&E3,SUMPRODUCT(--(ABS(E3-$C3:$H3)=2))>0)&REPT(","&F3,SUMPRODUCT(--(ABS(F3-$C3:$H3)=2))>0)&REPT(","&G3,SUMPRODUCT(--(ABS(G3-$C3:$H3)=2))>0)&REPT(","&H3,SUMPRODUCT(--(ABS(H3-$C3:$H3)=2))>0),",","",1)改成三连号以上三连号以上18-20-22-24,不含二连号例如:18-20。的函数公式。 展开
 我来答
s今生缘
高粉答主

推荐于2016-03-18 · 醉心答题,欢迎关注
知道大有可为答主
回答量:3.2万
采纳率:85%
帮助的人:4884万
展开全部
=SUBSTITUTE(IF((COUNTIF(D3:H3,C3+2)+COUNTIF(D3:H3,C3+4))=2," -"&C3&"-"&C3+2&"-"&C3+4&IF(COUNTIF(F3:H3,C3+6),"-"&C3+6&IF(COUNTIF(F3:H3,C3+8),"-"&C3+8&IF(H3=C3+10,"-"&C3+10,""),""),""),"")&IF(D3=C3+2,"",IF((COUNTIF(E3:H3,D3+2)+COUNTIF(E3:H3,D3+4))=2," -"&D3&"-"&D3+2&"-"&D3+4&IF(COUNTIF(G3:H3,D3+6),"-"&D3+6&IF(H3=D3+8,"-"&D3+8,""),""),""))&IF(COUNTIF(C3:D3,E3-2),"",IF((COUNTIF(F3:H3,E3+2)+COUNTIF(F3:H3,E3+4))=2," -"&E3&"-"&E3+2&"-"&E3+4&IF(COUNTIF(H3:H3,E3+6),"-"&E3+6&IF(H3=E3+8,"-"&E3+8,""),""),""))&IF(COUNTIF(C3:E3,F3-2),"",IF((COUNTIF(G3:H3,F3+2)+COUNTIF(G3:H3,F3+4))=2," -"&F3&"-"&F3+2&"-"&F3+4&IF(COUNTIF(H3:I3,F3+6),"-"&F3+6&IF(H3=F3+8,"-"&F3+8,""),""),""))," -"," ")
来自:求助得到的回答
百度网友e68a7f4
2015-08-02 · TA获得超过525个赞
知道小有建树答主
回答量:542
采纳率:40%
帮助的人:139万
展开全部
为了研究彩票也是拼了,写这么长的公式,截个图看看啊,我研究研究,
追问
EXCEL问题 用什么函数公式找出每组六个数相差为(1-12)的所有组合(例如:三连号以上,二连号不统计)
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

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

类别

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

说明

0/200

提交
取消

辅 助

模 式