瑞雪纷悦目
发表于 2021-10-23 22:16:06
=IF(("Adults鞋男"=X3&Y3&Z3)*(B3*D3*F3+D3*F3*H3)+("Adults鞋女"=X3&Y3&Z3)*C3*G3*E3+(MAX(FREQUENCY(IF(A3:T3>0,COLUMN(A:T)),IF(A3:T3=0,COLUMN(A:T))))*("Adults鞋男"<>X3&Y3&Z3)*("Adults鞋女"<>X3&Y3&Z3)>2),"齐码","断码")
按住SHift+ctrl不放 按回车 试试看
真心换绝情
发表于 2021-10-27 01:18:53
题目有问题:没有标明成人男鞋和成人女鞋。例如第6行,有一个3连,却注明是成人女鞋,你是怎么得到它是成人女鞋的?
云仁和
发表于 2021-11-4 20:59:14
使用了自定义函数,需要提供“成人男鞋”和“成人女鞋”信息,如图:
<p>Function Nxxx(cel As Range, NLX As String) As String
'yanjie完成于2021年9月21日16点43分。
Dim rng As Range, i As Integer, rw As Long
rw = cel.Row
If NLX = "成人男鞋" Then
For Each rng In Application.Intersect(cel.Cells, Range("B" & rw & ",D" & rw & ",F" & rw & ",H" & rw))
If rng.Value = 2 Then
i = i + 1
End If
Next
If i >= 3 Then
Nxxx = "齐码"
Else
Nxxx = "断码"
End If
i = 0
ElseIf NLX = "成人女鞋" Then
For Each rng In Application.Intersect(cel.Cells, Range("C" & rw & ",E" & rw & ",G" & rw))
If rng.Value = 2 Then
i = i + 1
End If
Next
If i >= 3 Then
Nxxx = "齐码"
Else
Nxxx = "断码"
End If
i = 0
Else
Nxxx = "-"
End If
End Function</p><p>
</p>
我不饿
发表于 2021-11-4 23:17:00
是判断齐码率那一列?
三国演义
发表于 2021-11-7 16:56:48
是的。无法用公式引用齐码。还一直显示循环公式
爱哭鬼丫头
发表于 2021-11-7 19:49:16
是不是启用了迭代计算?
灯心草
发表于 2021-11-13 19:05:31
=IF(IF(X3&Y3=X$3&Y$3,IF(Z3=Z$3,OR(B3>0,H3>0),C3*E3*G3>0)*9,MAX(FREQUENCY(ROW($1:$21),(A3:T3=0)*COLUMN(A:T))))>3,"齐码","断码")
阿錡
发表于 2021-11-15 04:04:49
=IF(IF(X3&Y3=X$3&Y$3,IF(Z3=Z$3,IF(W3=W$3,OR(B3>0,H3>0),C3*E3*G3>0),OR(A3:R3*B3:S3*C3:T3>0)),"齐码","断码")
也行,
斜月透窗明
发表于 2021-11-15 05:00:12
圣马可
发表于 2021-11-16 06:14:35
是判断齐码率那一列?