title: Generate a truth table in excel
body: <p>I need to make a formula that gives you the truth table for a variable number of columns.</p>
  <p><strong>Example</strong></p>
  <p><a href="https://i.stack.imgur.com/w4DC7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w4DC7.png" alt="sample 4-bit truth table" /></a></p>