EXCEL中有A1,B1,C1,D1四个单元格,其中A1,B1,C1,为0-2的整数.D1的值为判断A1,B1,C1相等值的结果.
问题描述:
EXCEL中有A1,B1,C1,D1四个单元格,其中A1,B1,C1,为0-2的整数.D1的值为判断A1,B1,C1相等值的结果.
A1,B1,C1当三个值都为0时,D1的值为:全0
A1,B1,C1当三个值都为1时,D1的值为:全1
A1,B1,C1当三个值都为2时,D1的值为:全2
当其中任意两个值为0时,D1的值为:双0
当其中任意两个值为1时,D1的值为:双1
当其中任意两个值为2时,D1的值为:双2
当A1,B1,C1三个数值都不相等时,D1的值为:各一个
如果通过条件进行判断!
再追分!
答
=if(countif(a1:c1,0)=3,"全0",(countif(a1:c1,1)=3,"全1",(countif(a1:c1,2)=3,"全2",if(countif(a1:c1,0)=2,"双0",(countif(a1:c1,1)=2,"双1",(countif(a1:c1,2)=2,"双2","各一个"))))))
"