title: Count to max value in one excel cell then contintue counting in another
body: <p>Not sure how to describe this, but here goes.<br>
  I have a work time sheet - where the first 40 hrs are paid at rate-X and 41+ are paid at rate-Y.
  The data to count is in one column.  Example below:</p>
  
  <pre><code>date worked  | hrs worked
  9-6-13       | 10
  9-7-13       | 8
  9-8-13       | 15
  9-10-13      | 12 
  ------------------------
  Total Hrs    | 45
  Hrs 0-40     | **40   &lt;formula for this?&gt;**
  Hrs 41+      | **5    &lt;formula for this?**
  
  Rate 0-40    | $10
  Rate 41+     | $5
  
  Total wage 0-40 hrs: $400     
  Total wage 41+ hrs:  $25 
  </code></pre>
  
  <p>From the example - I need to count the hrs up to for and apply the $10/hr rate.  Beyond that in a different cell continue counting and apply the $5/hr rate.  IF the hrs are less than 40 - the second rate would not apply.</p>
  
  <p>Is this possible???</p>
  
  <p>Thank you in advance!</p>