Spreadsheet: 142866d1330046309-how-sum-a-number-based-on-text-before-the-number-copy-of-leave
Sheet: New Annual Leave

 |  |  |  |  |  |  |  | Acquired | Taken
 | Date | Person | Overtime Type | Hours |  |  | Person1 | 0 | 0
 | 2012-01-05 00:00:00 | Person2 | Acquired | 4 |  |  | Person2 | 101 | 56
 | 2012-01-06 00:00:00 | Person2 | Acquired | 3 |  |  | Person3 | 0 | 0
 | 2012-01-08 00:00:00 | Person4 | Acquired | 1 |  |  | Person4 | 2 | 23
 | 2012-01-12 00:00:00 | Person7 | Taken | 4 |  |  | Person5 | 9 | 6
 | 2012-01-15 00:00:00 | Person2 | Acquired | 8 |  |  | Person6 | 33 | 14
 | 2012-01-18 00:00:00 | Person2 | Acquired | 4 |  |  | Person7 | 14 | 4
 | 2012-01-20 00:00:00 | Person5 | Taken | 4 |  |  | Person8 | 9 | 8
 | 2012-01-21 00:00:00 | Person2 | Acquired | 4 |  |  | Person9 | 0 | 0
 | 2012-01-23 00:00:00 | Person2 | Taken | 7
 | 2012-01-27 00:00:00 | Person6 | Acquired | 8 |  |  |  | Pivot Table
 | 2012-01-30 00:00:00 | Person6 | Taken | 6 |  |  |  | Sum of Hours |  | Overtime Type
 | 2012-02-01 00:00:00 | Person6 | Acquired | 7 |  |  |  | Date | Person | Acquired | Taken | Grand Total
 | 2012-02-03 00:00:00 | Person2 | Acquired | 4 |  |  |  | Qtr1 | Person2 | 71 | 38 | 109
 | 2012-02-05 00:00:00 | Person2 | Taken | 4 |  |  |  |  | Person4 | 1 | 9 | 10
 | 2012-02-07 00:00:00 | Person2 | Acquired | 8 |  |  |  |  | Person6 | 25 | 6 | 31
 | 2012-02-10 00:00:00 | Person2 | Taken | 6 |  |  |  |  | Person8 | 9 |  | 9
 | 2012-02-13 00:00:00 | Person8 | Acquired | 9 |  |  |  |  | Person7 | 7 | 4 | 11
 | 2012-02-16 00:00:00 | Person2 | Acquired | 8 |  |  |  |  | Person5 | 4 | 6 | 10
 | 2012-02-20 00:00:00 | Person2 | Acquired | 6 |  |  |  | Qtr1 Total |  | 117 | 63 | 180
 | 2012-02-22 00:00:00 | Person2 | Taken | 6 |  |  |  | Qtr2 | Person2 | 30 | 18 | 48
 | 2012-02-25 00:00:00 | Person5 | Acquired | 4 |  |  |  |  | Person4 | 1 | 14 | 15
 | 2012-02-29 00:00:00 | Person4 | Taken | 5 |  |  |  |  | Person6 | 8 | 8 | 16
 | 2012-03-02 00:00:00 | Person2 | Acquired | 7 |  |  |  |  | Person8 |  | 8 | 8
 | 2012-03-06 00:00:00 | Person2 | Acquired | 8 |  |  |  |  | Person7 | 7 |  | 7
 | 2012-03-10 00:00:00 | Person4 | Taken | 4 |  |  |  |  | Person5 | 5 |  | 5
 | 2012-03-14 00:00:00 | Person2 | Acquired | 1 |  |  |  | Qtr2 Total |  | 51 | 48 | 99
 | 2012-03-15 00:00:00 | Person2 | Taken | 7 |  |  |  | Grand Total |  | 168 | 111 | 279
 | 2012-03-17 00:00:00 | Person6 | Acquired | 2
 | 2012-03-20 00:00:00 | Person6 | Acquired | 8
 | 2012-03-22 00:00:00 | Person5 | Taken | 2
 | 2012-03-23 00:00:00 | Person7 | Acquired | 3
 | 2012-03-26 00:00:00 | Person2 | Acquired | 6
 | 2012-03-28 00:00:00 | Person2 | Taken | 8
 | 2012-03-29 00:00:00 | Person7 | Acquired | 4
 | 2012-04-02 00:00:00 | Person8 | Taken | 2
 | 2012-04-03 00:00:00 | Person5 | Acquired | 5
 | 2012-04-07 00:00:00 | Person2 | Acquired | 6
 | 2012-04-11 00:00:00 | Person2 | Taken | 5
 | 2012-04-12 00:00:00 | Person7 | Acquired | 7
 | 2012-04-15 00:00:00 | Person4 | Taken | 6
 | 2012-04-19 00:00:00 | Person2 | Acquired | 1
 | 2012-04-23 00:00:00 | Person2 | Taken | 3
 | 2012-04-25 00:00:00 | Person6 | Acquired | 2
 | 2012-04-26 00:00:00 | Person6 | Acquired | 6
 | 2012-04-30 00:00:00 | Person6 | Taken | 8
 | 2012-05-04 00:00:00 | Person2 | Acquired | 3
 | 2012-05-06 00:00:00 | Person2 | Acquired | 5
 | 2012-05-09 00:00:00 | Person2 | Taken | 8
 | 2012-05-10 00:00:00 | Person2 | Acquired | 1
 | 2012-05-12 00:00:00 | Person8 | Taken | 6
 | 2012-05-14 00:00:00 | Person2 | Acquired | 7
 | 2012-05-15 00:00:00 | Person2 | Acquired | 5
 | 2012-05-17 00:00:00 | Person2 | Taken | 2
 | 2012-05-21 00:00:00 | Person4 | Acquired | 1
 | 2012-05-23 00:00:00 | Person4 | Taken | 8
 | 2012-05-26 00:00:00 | Person2 | Acquired | 2