Spreadsheet: 270238d1381419928-trying-to-find-the-max-date-within-each-month-and-its-corresponding-value-daily-production
Sheet: 2-1

UNIQUE ID | LEASE | ID | DATE | BOPD | BWPD
 | NDPU | 2-1 | 2005-01-07 00:00:00 | - | -
 | NDPU | 2-1 | 2005-12-23 00:00:00 | - | -
 | NDPU | 2-1 | 2005-12-26 00:00:00 | - | -
 | NDPU | 2-1 | 2005-12-30 00:00:00 | - | -
 | NDPU | 2-1 | 2005-12-31 00:00:00 | - | -
 | NDPU | 2-1 | 2006-01-12 00:00:00 | 6 | 3
 | NDPU | 2-1 | 2006-01-12 00:00:00 | - | -
 | NDPU | 2-1 | 2006-01-15 00:00:00 | 16 | 20
 | NDPU | 2-1 | 2006-01-25 00:00:00 | - | -
 | NDPU | 2-1 | 2006-02-02 00:00:00 | - | -
 | NDPU | 2-1 | 2006-03-03 00:00:00 | - | -
 | NDPU | 2-1 | 2006-04-20 00:00:00 | 8 | 4
 | NDPU | 2-1 | 2006-04-23 00:00:00 | - | -
 | NDPU | 2-1 | 2006-04-29 00:00:00 | - | -
 | NDPU | 2-1 | 2006-05-12 00:00:00 | - | -
 | NDPU | 2-1 | 2006-06-04 00:00:00 | - | -
 | NDPU | 2-1 | 2006-06-13 00:00:00 | - | -
 | NDPU | 2-1 | 2006-07-17 00:00:00 | 7 | 5
 | NDPU | 2-1 | 2006-07-19 00:00:00 | - | -
 | NDPU | 2-1 | 2006-08-30 00:00:00 | - | -
 | NDPU | 2-1 | 2006-09-12 00:00:00 | - | -
 | NDPU | 2-1 | 2006-09-13 00:00:00 | 4 | 4
 | NDPU | 2-1 | 2006-09-13 00:00:00 | - | -
 | NDPU | 2-1 | 2006-09-14 00:00:00 | - | -
 | NDPU | 2-1 | 2006-10-09 00:00:00 | 6 | 4
 | NDPU | 2-1 | 2006-11-05 00:00:00 | 6 | 7
 | NDPU | 2-1 | 2006-12-29 00:00:00 | - | -
 | NDPU | 2-1 | 2006-12-30 00:00:00 | 6 | 7
 | NDPU | 2-1 | 2007-01-27 00:00:00 | 6 | 6
 | NDPU | 2-1 | 2007-02-25 00:00:00 | 7 | 11
 | NDPU | 2-1 | 2007-02-28 00:00:00 | - | -
 | NDPU | 2-1 | 2007-03-10 00:00:00 | 6 | 6
 | NDPU | 2-1 | 2007-04-11 00:00:00 | 6 | 6
 | NDPU | 2-1 | 2007-05-11 00:00:00 | 6 | 6
 | NDPU | 2-1 | 2007-06-19 00:00:00 | 6 | 6
 | NDPU | 2-1 | 2007-07-17 00:00:00 | 6 | 6
 | NDPU | 2-1 | 2007-08-06 00:00:00 | 7 | 7
 | NDPU | 2-1 | 2007-08-30 00:00:00 | 6 | 6
 | NDPU | 2-1 | 2007-09-06 00:00:00 | - | -
 | NDPU | 2-1 | 2007-09-07 00:00:00 | - | -
 | NDPU | 2-1 | 2007-09-11 00:00:00 | - | -
 | NDPU | 2-1 | 2007-11-06 00:00:00 | 1 | 7
 | NDPU | 2-1 | 2007-11-07 00:00:00 | - | -
 | NDPU | 2-1 | 2007-12-06 00:00:00 | 2 | 13
 | NDPU | 2-1 | 2008-01-14 00:00:00 | 2 | 19
 | NDPU | 2-1 | 2008-02-08 00:00:00 | 2 | 17
 | NDPU | 2-1 | 2008-04-14 00:00:00 | 0 | 17
 | NDPU | 2-1 | 2008-05-25 00:00:00 | 2 | 23
 | NDPU | 2-1 | 2008-06-25 00:00:00 | 2 | 19
 | NDPU | 2-1 | 2008-08-06 00:00:00 | - | -
 | NDPU | 2-1 | 2008-09-26 00:00:00 | - | -
 | NDPU | 2-1 | 2008-09-26 00:00:00 | - | -
 | NDPU | 2-1 | 2008-09-27 00:00:00 | - | -
 | NDPU | 2-1 | 2008-09-28 00:00:00 | 83 | 0
 | NDPU | 2-1 | 2008-09-29 00:00:00 | 85 | 0
 | NDPU | 2-1 | 2008-10-25 00:00:00 | 56 | 150
 | NDPU | 2-1 | 2008-10-30 00:00:00 | - | -
 | NDPU | 2-1 | 2008-11-16 00:00:00 | - | -
 | NDPU | 2-1 | 2008-11-23 00:00:00 | - | -
 | NDPU | 2-1 | 2008-12-05 00:00:00 | - | -
 | NDPU | 2-1 | 2009-01-11 00:00:00 | - | -
 | NDPU | 2-1 | 2009-01-13 00:00:00 | - | -
 | NDPU | 2-1 | 2009-01-14 00:00:00 | - | -
 | NDPU | 2-1 | 2009-01-16 00:00:00 | - | -
 | NDPU | 2-1 | 2009-01-17 00:00:00 | - | -
 | NDPU | 2-1 | 2009-01-31 00:00:00 | - | -
 | NDPU | 2-1 | 2009-02-12 00:00:00 | - | -
 | NDPU | 2-1 | 2009-04-04 00:00:00 | - | -
 | NDPU | 2-1 | 2009-04-16 00:00:00 | 18 | 5
 | NDPU | 2-1 | 2009-05-24 00:00:00 | - | -
 | NDPU | 2-1 | 2009-06-02 00:00:00 | - | -
 | NDPU | 2-1 | 2009-06-11 00:00:00 | - | -
 | NDPU | 2-1 | 2009-06-15 00:00:00 | - | -
 | NDPU | 2-1 | 2009-06-16 00:00:00 | 6 | 2
 | NDPU | 2-1 | 2009-07-01 00:00:00 | - | -
 | NDPU | 2-1 | 2009-07-04 00:00:00 | - | -
 | NDPU | 2-1 | 2009-07-13 00:00:00 | 3 | 4
 | NDPU | 2-1 | 2009-07-25 00:00:00 | - | -
 | NDPU | 2-1 | 2009-07-27 00:00:00 | 6 | 2
 | NDPU | 2-1 | 2009-08-08 00:00:00 | 5 | 1
 | NDPU | 2-1 | 2009-08-09 00:00:00 | 5 | 1
 | NDPU | 2-1 | 2009-09-18 00:00:00 | 5 | 1
 | NDPU | 2-1 | 2009-10-03 00:00:00 | 6 | 1
 | NDPU | 2-1 | 2009-10-03 00:00:00 | - | -
 | NDPU | 2-1 | 2009-10-27 00:00:00 | - | -
 | NDPU | 2-1 | 2009-11-14 00:00:00 | - | -
 | NDPU | 2-1 | 2009-11-19 00:00:00 | 6 | 1
 | NDPU | 2-1 | 2010-03-09 00:00:00 | - | -
 | NDPU | 2-1 | 2010-03-30 00:00:00 | - | -
 | NDPU | 2-1 | 2010-05-22 00:00:00 | 8 | 30
 | NDPU | 2-1 | 2010-06-16 00:00:00 | 6 | 22
 | NDPU | 2-1 | 2010-06-17 00:00:00 | 6 | 22
 | NDPU | 2-1 | 2010-07-02 00:00:00 | 5 | 17
 | NDPU | 2-1 | 2010-07-03 00:00:00 | - | -
 | NDPU | 2-1 | 2010-09-20 00:00:00 | 5 | 16
 | NDPU | 2-1 | 2010-10-07 00:00:00 | - | -
 | NDPU | 2-1 | 2010-11-12 00:00:00 | 5 | 21
 | NDPU | 2-1 | 2010-12-18 00:00:00 | 5 | 20
 | NDPU | 2-1 | 2011-01-07 00:00:00 | - | -
 | NDPU | 2-1 | 2011-01-19 00:00:00 | - | -
 | NDPU | 2-1 | 2011-03-17 00:00:00 | 4 | 13
 | NDPU | 2-1 | 2011-05-18 00:00:00 | - | -
 | NDPU | 2-1 | 2011-05-21 00:00:00 | - | -
 | NDPU | 2-1 | 2011-06-08 00:00:00 | - | -
 | NDPU | 2-1 | 2011-07-27 00:00:00 | 5 | 10
 | NDPU | 2-1 | 2011-07-31 00:00:00 | - | -
 | NDPU | 2-1 | 2011-08-05 00:00:00 | - | -
 | NDPU | 2-1 | 2011-08-09 00:00:00 | - | -
 | NDPU | 2-1 | 2011-08-11 00:00:00 | - | -
 | NDPU | 2-1 | 2011-08-29 00:00:00 | 4 | 9
 | NDPU | 2-1 | 2011-09-28 00:00:00 | 4 | 9
 | NDPU | 2-1 | 2011-09-30 00:00:00 | - | -
 | NDPU | 2-1 | 2011-10-01 00:00:00 | 4 | 9
 | NDPU | 2-1 | 2011-10-06 00:00:00 | 4 | 10
 | NDPU | 2-1 | 2011-11-01 00:00:00 | 4 | 10
 | NDPU | 2-1 | 2011-11-13 00:00:00 | - | -
 | NDPU | 2-1 | 2011-11-17 00:00:00 | 3 | 10
 | NDPU | 2-1 | 2011-12-01 00:00:00 | 2 | 1
 | NDPU | 2-1 | 2012-04-28 00:00:00 | 3 | 10
 | NDPU | 2-1 | 2012-07-15 00:00:00 | 3 | 10
 | NDPU | 2-1 | 2012-10-09 00:00:00 | 3 | 8
 | NDPU | 2-1 | 2013-01-01 00:00:00 | 4 | 9
 | NDPU | 2-1 | 2013-02-01 00:00:00 | 3 | 10
 | NDPU | 2-1 | 2013-02-15 00:00:00 | 5 | 12
 | NDPU | 2-1 | 2013-06-01 00:00:00 | 4 | 11
 | NDPU | 2-1 | 2013-07-01 00:00:00 | 2 | 11