ryleepowell
New Member
- Joined
- Nov 8, 2016
- Messages
- 2
I struggle with CountIf functions. I know this should be pretty straight forward, but I can't wrap my mind around it.
Below is how the spreadsheet is set up. Don't worry about the conditional formatting of the cells or colors of the dates below. Just for visual. But I want each cell to auto update the tally whenever a new date is included in the range below.
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style><style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style><style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
<tbody>
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]April '16[/TD]
[TD="align: center"]May '16[/TD]
[TD="align: center"]June '16[/TD]
[TD="align: center"]3[/TD]
[TD="bgcolor: #F4C7C3, align: center"]3[/TD]
[TD="bgcolor: #F4C7C3, align: center"]16[/TD]
[TD="bgcolor: #B7E1CD, align: center"]20[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]July '16[/TD]
[TD="align: center"]August '16[/TD]
[TD="align: center"]September '16[/TD]
[TD="align: center"]5[/TD]
[TD="bgcolor: #F4C7C3, align: center"]3[/TD]
[TD="bgcolor: #F4C7C3, align: center"]12[/TD]
[TD="bgcolor: #F4C7C3, align: center"]8[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]October '16[/TD]
[TD="align: center"]November '16[/TD]
[TD="align: center"]December '16[/TD]
[TD="align: center"]7[/TD]
[TD="bgcolor: #B7E1CD, align: center"]21[/TD]
[TD="bgcolor: #F4C7C3, align: center"]15[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]January '17[/TD]
[TD="align: center"]February '17[/TD]
[TD="align: center"]March '17[/TD]
[TD="align: center"]9[/TD]
</tbody>
This is column F. Ideally I want to the range to be all of F. Like, CountIf anything in column F is between May 1 2016 and May 31 2016. I would put this formula in the cells below the dates to include that specific date range.
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style><style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
<tbody>
[TD="align: center"]Meeting Set On[/TD]
[TD="bgcolor: #93C47D, align: right"]04/05/16[/TD]
[TD="bgcolor: #93C47D, align: right"]04/22/16[/TD]
[TD="bgcolor: #93C47D, align: right"]04/22/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/02/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/02/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/05/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/05/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/05/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/09/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/10/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/10/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/11/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/17/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/18/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/18/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/25/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/25/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/25/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/26/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/02/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/02/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/06/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/07/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/08/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/08/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/08/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/09/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/09/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/09/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/09/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/14/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/14/16[/TD]
[TD="bgcolor: #FFD966, align: right"]05/25/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/15/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/16/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/21/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/21/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/29/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/29/16[/TD]
[TD="bgcolor: #A64D79, align: right"]07/01/16[/TD]
[TD="bgcolor: #A64D79, align: right"]07/07/16[/TD]
[TD="bgcolor: #A64D79, align: right"]07/26/16[/TD]
[TD="bgcolor: #8E7CC3, align: right"]08/11/16[/TD]
[TD="bgcolor: #8E7CC3, align: right"]08/11/16[/TD]
[TD="bgcolor: #8E7CC3, align: right"]08/16/16[/TD]
[TD="bgcolor: #8E7CC3, align: right"]08/19/16[/TD]
[TD="bgcolor: #8E7CC3, align: right"]08/22/16[/TD]
</tbody>
Below is how the spreadsheet is set up. Don't worry about the conditional formatting of the cells or colors of the dates below. Just for visual. But I want each cell to auto update the tally whenever a new date is included in the range below.
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style><style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style><style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
<tbody>
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]April '16[/TD]
[TD="align: center"]May '16[/TD]
[TD="align: center"]June '16[/TD]
[TD="align: center"]3[/TD]
[TD="bgcolor: #F4C7C3, align: center"]3[/TD]
[TD="bgcolor: #F4C7C3, align: center"]16[/TD]
[TD="bgcolor: #B7E1CD, align: center"]20[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]July '16[/TD]
[TD="align: center"]August '16[/TD]
[TD="align: center"]September '16[/TD]
[TD="align: center"]5[/TD]
[TD="bgcolor: #F4C7C3, align: center"]3[/TD]
[TD="bgcolor: #F4C7C3, align: center"]12[/TD]
[TD="bgcolor: #F4C7C3, align: center"]8[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]October '16[/TD]
[TD="align: center"]November '16[/TD]
[TD="align: center"]December '16[/TD]
[TD="align: center"]7[/TD]
[TD="bgcolor: #B7E1CD, align: center"]21[/TD]
[TD="bgcolor: #F4C7C3, align: center"]15[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]January '17[/TD]
[TD="align: center"]February '17[/TD]
[TD="align: center"]March '17[/TD]
[TD="align: center"]9[/TD]
</tbody>
This is column F. Ideally I want to the range to be all of F. Like, CountIf anything in column F is between May 1 2016 and May 31 2016. I would put this formula in the cells below the dates to include that specific date range.
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style><style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
<tbody>
[TD="align: center"]Meeting Set On[/TD]
[TD="bgcolor: #93C47D, align: right"]04/05/16[/TD]
[TD="bgcolor: #93C47D, align: right"]04/22/16[/TD]
[TD="bgcolor: #93C47D, align: right"]04/22/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/02/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/02/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/05/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/05/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/05/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/09/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/10/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/10/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/11/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/17/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/18/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/18/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/25/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/25/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/25/16[/TD]
[TD="bgcolor: #00FFFF, align: right"]05/26/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/02/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/02/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/06/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/07/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/08/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/08/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/08/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/09/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/09/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/09/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/09/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/14/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/14/16[/TD]
[TD="bgcolor: #FFD966, align: right"]05/25/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/15/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/16/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/21/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/21/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/29/16[/TD]
[TD="bgcolor: #FFD966, align: right"]06/29/16[/TD]
[TD="bgcolor: #A64D79, align: right"]07/01/16[/TD]
[TD="bgcolor: #A64D79, align: right"]07/07/16[/TD]
[TD="bgcolor: #A64D79, align: right"]07/26/16[/TD]
[TD="bgcolor: #8E7CC3, align: right"]08/11/16[/TD]
[TD="bgcolor: #8E7CC3, align: right"]08/11/16[/TD]
[TD="bgcolor: #8E7CC3, align: right"]08/16/16[/TD]
[TD="bgcolor: #8E7CC3, align: right"]08/19/16[/TD]
[TD="bgcolor: #8E7CC3, align: right"]08/22/16[/TD]
</tbody>