title: excel - if column against other column
body: <p>I have <strong>two</strong> excel sheets. One like below:</p>
  
  <p><em>Sheet 1:</em></p>
  
  <pre><code>Column 1    Column 2
  Date 1      Date 2
  Date 1      Date 2
  Date 1      Date 2
  Date 1      Date 2
  Date 1      Date 2
  Date 1      Date 2
  Date 1      Date 2
  Date 1      Date 2
  Date 1      Date 2
  </code></pre>
  
  <p><em>Sheet 2:</em></p>
  
  <pre><code>Column 1:   
  On Time:      xx
  Not on Time:  xx 
  </code></pre>
  
  <p>So example.</p>
  
  <p>If date 1 is greater than date 2, then it should add 1 to the "Not on time" row. And if date 1 is less than <strong>or</strong> equals date 2, then it should add 1 to the "On Time" row. </p>
  
  <p><em>Please note that I have two different sheets in the same workbook</em></p>
  
  <p>How can I achieve this?</p>