大与小,可以用substutite(),把数字换成大或小,再判断出是哪种情况
B7公式:
=IF(INDEX({"全大","全小","两大一小","两大一小","两大一小","两小一大","两小一大","两小一大"},MATCH(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($A7,1,"小"),2,"小"),3,"小"),4,"小"),0,"小"),5,"大"),6,"大"),7,"大"),8,"大"),9,"大"),{"大大大","小小小","大大小","大小大","小大大","小小大","小大小","大小小"},0))=B$3,"◎","")
奇偶,也可以用这个公式,稍微改一下。
F7公式:
=IF(INDEX({"全奇","全偶","两奇一偶","两奇一偶","两奇一偶","两偶一奇","两偶一奇","两偶一奇"},MATCH(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($A7,1,"奇"),2,"偶"),3,"奇"),4,"偶"),0,"偶"),5,"奇"),6,"偶"),7,"奇"),8,"偶"),9,"奇"),{"奇奇奇","偶偶偶","奇奇偶","奇偶奇","偶奇奇","偶偶奇","偶奇偶","奇偶偶"},0))=F$3,"◎","")
2024-07-20 广告
在B7单元格输入公式=IF(IF(SUMPRODUCT(N(--MID($A7,ROW($1:$3),1)>=5))=3,"全大",IF(SUMPRODUCT(N(--MID($A7,ROW($1:$3),1)<=4))=3,"全小",IF(SUMPRODUCT(N(--MID($A7,ROW($1:$3),1)>=5))=2,"两大一小",IF(SUMPRODUCT(N(--MID($A7,ROW($1:$3),1)<=4))=2,"两小一大",""))))=B$3,"●","")
右到公式到E列,再下拉公式。
在F7单元格输入公式=IF(IF(SUMPRODUCT(N(ISODD(--MID($A7,ROW($1:$3),1))))=3,"全奇",IF(SUMPRODUCT(N(ISEVEN(--MID($A7,ROW($1:$3),1))))=3,"全偶",IF(SUMPRODUCT(N(ISODD(--MID($A7,ROW($1:$3),1))))=2,"两奇一偶",IF(SUMPRODUCT(N(ISEVEN(--MID($A7,ROW($1:$3),1))))=2,"两偶一奇",""))))=F$3,"●","")
右到公式到I列,再下拉公式。
0既不是奇数也不是偶数,如果非要把0算成偶数,F7单元格公式改成=IF(IF(SUMPRODUCT(N(--MID($A7,ROW($1:$3),1)={1,3,5,7,9}))=3,"全奇",IF(SUMPRODUCT(N(--MID($A7,ROW($1:$3),1)={0,2,4,6,8}))=3,"全偶",IF(SUMPRODUCT(N(--MID($A7,ROW($1:$3),1)={1,3,5,7,9}))=2,"两奇一偶",IF(SUMPRODUCT(N(--MID($A7,ROW($1:$3),1)={0,2,4,6,8}))=2,"两偶一奇",""))))=F$3,"●","")