EXCEL XOR multiple bits

后端 未结 5 2067
[愿得一人]
[愿得一人] 2021-02-20 05:33

Okay I have two cells with a string of bits 0111010 and 0101011. I want to XOR the two together so that the resulting cell would be 0010001.

I know you can use this for

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-20 05:51

    =1-(A1<>0)+(A2<>0) for each bit.

    You can split it into individual columns for the above formula using this: =MID(A1|7|1) =MID(A1|6|1) =MID(A1|5|1) =MID(A1|4|1) =MID(A1|3|1) =MID(A1|2|1) =MID(A1|1|1) ...

提交回复
热议问题