=IF(AND($D10=5,$G10>=3),"IV"),IF(AND($D10=4,$G10>=4),"IV"),IF(AND(OR($D10=3,$D10=2),$G10=5),"IV"),IF(AND($D10=5, $G10<=2),"III"),IF(AND(OR($G10=3,$G10=2),$D10=4),"III"),IF(AND(OR($G10=3,$G10=4),$D10=3),"III"),IF(AND($D10=2,$G10=4),"III"),IF(AND($D10=3, $G10<=2),"II"),IF(AND(OR($G10=3,$G10=2),$D10=2),"II"),IF(AND($D10=4,$G10=1),"II"),IF(AND($D10=1,$G10>=3),"II"),"I")
为了实现这一目标
如果有列(D,G)=(5,5),(5,4),(5,3),(4,5),(4,4),(3,5) and (2,5)
则分配IV
如果有列(D,G)=(5,2),(5,1),(4,3),(4,2),(3,4), (3,3) and (2,4)
则分配III
如果有列(D,G)=IV(4,1),(3,2),(3,1),(2,3),(2,2),(1,5),(1,4) and (1,3)
则分配II
如果有列(D,G)=(2,1), (1,2) and (1,1)
则分配I
答案1
问题不清楚,但我会猜你的意思。我想你想得到我 H 列中的结果。
为此,我在第 10 行使用了公式
=IF(AND($D10=5,$G10>=3),"IV",IF(AND($D10=4,$G10>=4),"IV",IF(AND(OR($D10=3,$D10=2),$G10=5),"IV",IF(AND($D10=5, $G10<=2),"III",IF(AND(OR($G10=3,$G10=2),$D10=4),"III",IF(AND(OR($G10=3,$G10=4),$D10=3),"III",IF(AND($D10=2,$G10=4),"III",IF(AND($D10=3, $G10<=2),"II",IF(AND(OR($G10=3,$G10=2),$D10=2),"II",IF(AND($D10=4,$G10=1),"II",IF(AND($D10=1,$G10>=3),"II","I")))))))))))
(复制粘贴至第 11 行)。
在第 12 行我使用了
=INDIRECT("R"&TEXT($G12+row($B$3)-1,"0")&"C"&TEXT($D12+COLUMN($B$3)-1,"0"),FALSE)
这取决于上表。
没有任何公式检查 1 <= col D,G <= 5,如果需要,您必须添加它。
答案2
如果 ( OR( (D,G)=(5,5), (D,G)=(5,4), (D,G)=(5,3), (D,G)=(4,5), (D,G)=(4,4), (D,G)=(3,5), (D,G)=(2,5) ),"IV",
如果 ( OR( (D,G)=(5,2), (D,G)=(5,1), (D,G)=(4,3, (D,G)=(4,2, (D,G)=(3,4, (D,G)=(3,3, (D,G)=(2,4) ), "III",
如果列 (D,G)=IV(4,1),(3,2),(3,1),(2,3),(2,2),(1,5),(1,4) 和 (1,3) 则分配 II
here you lost me as how to interpret that "IV (4,1)
如果(或((D,G)=(2,1,(D,G)=(1,2),(D,G)=(1,1)),“ I”,“ ERR” ))))
对于上面的每组 (D,G)=(5,5),输入您已经编码为 AND($D10=5,$G10>=3) 等等。
由于对 IV 缺乏清晰的认识,我没有编写一行代码,希望您自己能弄清楚,或者在下面发表评论,以便我进一步解释。
但是你上面说的是 (D,G)=(5,5),但是你的公式是测试 $D10=5,$G10>=3,也就是 >= 而不是 =,这样会产生不同的结果。
答案3
我不完全确定您要做什么,但您需要删除 IF 前面的“,”前面的“)”:
=IF(AND($D1=5,$G1>=3),"IV",IF(AND($D1=4,$G1>=4),"IV",IF(AND(OR($D1=3,$D1=2),$G1=5),"IV",IF(AND($D1=5,$G1<=2),"III",IF(AND(OR($G1=3,$G1=2),$D1=4),"III",IF(AND(OR($G1=3,$G 1=4),$D1=3),"III",如果(AND($D1=2,$G1=4),"III",如果(AND($D1=3,$G1<=2),"II",如果(AND(OR($G1=3,$G1=2),$D1=2),"II",如果(AND($D1=4,$G1=1),"II",如果(AND($D1=1,$G1>=3),"II","I")))))))))))