EXCEL 若A1=1,B1=8,9,0,1,2,3,4中任意一个数字,则C1显示“正确”,该如何输入公式A1=1,B1=8,9,0,1,2,3,4A1=2,B1=9,0,1,2,3,4,5A1=3,B1=0,1,2,3,4,5,6A1=4,B1=1,2,3,4,5,6,7A1=5,B1=2,3,4,5,6,7,8A1=6,B1=3,4,5,6,7,8,9A1=7,B1=4,5,6,7,8,9,0A1=8,B
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 15:07:54
EXCEL 若A1=1,B1=8,9,0,1,2,3,4中任意一个数字,则C1显示“正确”,该如何输入公式A1=1,B1=8,9,0,1,2,3,4A1=2,B1=9,0,1,2,3,4,5A1=3,B1=0,1,2,3,4,5,6A1=4,B1=1,2,3,4,5,6,7A1=5,B1=2,3,4,5,6,7,8A1=6,B1=3,4,5,6,7,8,9A1=7,B1=4,5,6,7,8,9,0A1=8,B
EXCEL 若A1=1,B1=8,9,0,1,2,3,4中任意一个数字,则C1显示“正确”,该如何输入公式
A1=1,B1=8,9,0,1,2,3,4
A1=2,B1=9,0,1,2,3,4,5
A1=3,B1=0,1,2,3,4,5,6
A1=4,B1=1,2,3,4,5,6,7
A1=5,B1=2,3,4,5,6,7,8
A1=6,B1=3,4,5,6,7,8,9
A1=7,B1=4,5,6,7,8,9,0
A1=8,B1=5,6,7,8,9,0,1
A1=9,B1=6,7,8,9,0,1,2
A1=0,B1=7,8,9,0,1,2,3
就是这样的意思,这是全部的规则,如果B1满足这上面的数字却A1也是对应的数字的话,那么在C1显示“正确”好难.求大神解答.在线蹲等
EXCEL 若A1=1,B1=8,9,0,1,2,3,4中任意一个数字,则C1显示“正确”,该如何输入公式A1=1,B1=8,9,0,1,2,3,4A1=2,B1=9,0,1,2,3,4,5A1=3,B1=0,1,2,3,4,5,6A1=4,B1=1,2,3,4,5,6,7A1=5,B1=2,3,4,5,6,7,8A1=6,B1=3,4,5,6,7,8,9A1=7,B1=4,5,6,7,8,9,0A1=8,B
C1单元格写入公式
=IF(OR(A1="",B1=""),"",CHOOSE(A1+1,IF(OR(B1={7,8,9,0,1,2,3}),"正确",""),IF(OR(B1={8,9,0,1,2,3,4}),"正确",""),IF(OR(B1={9,0,1,2,3,4,5}),"正确",""),IF(OR(B1={0,1,2,3,4,5,6}),"正确",""),IF(OR(B1={1,2,3,4,5,6,7}),"正确",""),IF(OR(B1={2,3,4,5,6,7,8}),"正确",""),IF(OR(B1={3,4,5,6,7,8,9}),"正确",""),IF(OR(B1={4,5,6,7,8,9,0}),"正确",""),IF(OR(B1={5,6,7,8,9,0,1}),"正确",""),IF(OR(B1={6,7,8,9,0,1,2}),"正确","")))
再简写一下
=IF(OR(A1="",B1=""),"",IF(CHOOSE(A1+1,OR(B1={7,8,9,0,1,2,3}),OR(B1={8,9,0,1,2,3,4}),OR(B1={9,0,1,2,3,4,5}),OR(B1={0,1,2,3,4,5,6}),OR(B1={1,2,3,4,5,6,7}),OR(B1={2,3,4,5,6,7,8}),OR(B1={3,4,5,6,7,8,9}),OR(B1={4,5,6,7,8,9,0}),OR(B1={5,6,7,8,9,0,1}),OR(B1={6,7,8,9,0,1,2})),"正确",""))
又想了一下,公式改成
=IF(OR(A1="",B1=""),"",IF(AND(AND(A1>=0,A1