title: Excel: How do I perform bitwise counting?
body: <p>I have an excel file with close to 13 columns with 0's and 1's. I want to perform bitwise counting on columns like so:</p>
  
  <pre><code>A   B   Result
  1   1   1
  0   1   1
  1   0   1
  0   0   0
  </code></pre>
  
  <p>I tried lookup, vlookup, countif(s), but nothing seems to be working for me? Are there any other functions I could use?</p>
  
  <p><strong>* EDIT *</strong></p>
  
  <p>I am actually looking to implement this in Python because it is part of a rather long workflow and I don't want to interrupt the script by having to exit do this and then come back. What is a a rather naive way of doing this in Python? </p>
  
  <p>So far, I have tried to write something where I ask the user to provide an input of which columns they would like grouped but I could not make it work. </p>
  
  <p>Thanks,</p>