如何删除最外层的逻辑?

时间:2017-11-26 05:26:30

标签: excel logic

如何删除最外层的逻辑?

,例如

input column D result
And(OR(A,B),C) 

output column E binary number
OR(A,B)

A   B   C   result(D)after extract(E)
0   0   0   0        0
0   0   1   0        0 
0   1   0   0        1
0   1   1   1        1
1   0   0   0        1
1   0   1   1        1
1   1   0   0        1
1   1   1   1        1

我在excel中试过

=IF(NOT(AND(D2,C2))=TRUE,1,0)

但无法移除最外层的逻辑

            result  after extract   
0   0   0   =IF(AND(OR(A2,B2),C2)=TRUE,1,0) =IF(OR(A2,B2)=TRUE,1,0) =IF(NOT(AND(D2,C2))=TRUE,1,0)
0   0   1   =IF(AND(OR(A3,B3),C3)=TRUE,1,0) =IF(OR(A3,B3)=TRUE,1,0) =IF(NOT(AND(D3,C3))=TRUE,1,0)
0   1   0   =IF(AND(OR(A4,B4),C4)=TRUE,1,0) =IF(OR(A4,B4)=TRUE,1,0) =IF(NOT(AND(D4,C4))=TRUE,1,0)
0   1   1   =IF(AND(OR(A5,B5),C5)=TRUE,1,0) =IF(OR(A5,B5)=TRUE,1,0) =IF(NOT(AND(D5,C5))=TRUE,1,0)
1   0   0   =IF(AND(OR(A6,B6),C6)=TRUE,1,0) =IF(OR(A6,B6)=TRUE,1,0) =IF(NOT(AND(D6,C6))=TRUE,1,0)
1   0   1   =IF(AND(OR(A7,B7),C7)=TRUE,1,0) =IF(OR(A7,B7)=TRUE,1,0) =IF(NOT(AND(D7,C7))=TRUE,1,0)
1   1   0   =IF(AND(OR(A8,B8),C8)=TRUE,1,0) =IF(OR(A8,B8)=TRUE,1,0) =IF(NOT(AND(D8,C8))=TRUE,1,0)
1   1   1   =IF(AND(OR(A9,B9),C9)=TRUE,1,0) =IF(OR(A9,B9)=TRUE,1,0) =IF(NOT(AND(D9,C9))=TRUE,1,0)

0 个答案:

没有答案