Counting Monthly Enrollment and Withdrawals

Andy0311

Board Regular
Joined
Oct 16, 2019
Messages
118
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello,

I have a table with StudentName, DateEnrolled, DateWithdrawn, and Status ( Active or Inactive ). My sample shows just a few rows, although the Enrollment shows nearly 900 rows and the Withdrawal column about 172. Both are subject to change daily, in which the chart would be updated.

[TABLE="width: 694"]
<colgroup><col><col span="2"><col></colgroup><tbody>[TR]
[TD]StudentName[/TD]
[TD]Enrolled[/TD]
[TD]Withdrew[/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]JamesMcIntire[/TD]
[TD="align: right"]07/22/19[/TD]
[TD="align: right"]08/22/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]SierraChristian[/TD]
[TD="align: right"]07/29/19[/TD]
[TD="align: right"]08/23/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]RodgerCummings[/TD]
[TD="align: right"]07/29/19[/TD]
[TD="align: right"]08/23/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]AvaleeStevens[/TD]
[TD="align: right"]07/29/19[/TD]
[TD="align: right"]08/23/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]KhloePowell[/TD]
[TD="align: right"]07/30/19[/TD]
[TD="align: right"]08/27/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]JoshuaShade[/TD]
[TD="align: right"]07/31/19[/TD]
[TD="align: right"]08/27/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]JacquilineBelcher[/TD]
[TD="align: right"]08/16/19[/TD]
[TD="align: right"]08/28/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]KennedyMynhier[/TD]
[TD="align: right"]08/19/19[/TD]
[TD="align: right"]08/28/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]SydneyWinter[/TD]
[TD="align: right"]08/21/19[/TD]
[TD="align: right"]08/28/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]DarriusWilkerson[/TD]
[TD="align: right"]08/21/19[/TD]
[TD="align: right"]08/29/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]RamonRamos Mendoza[/TD]
[TD="align: right"]08/21/19[/TD]
[TD="align: right"]08/30/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]EleanorSells[/TD]
[TD="align: right"]08/21/19[/TD]
[TD="align: right"]08/30/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]EricCalloway[/TD]
[TD="align: right"]08/21/19[/TD]
[TD="align: right"]09/02/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]HaleyJohnson[/TD]
[TD="align: right"]08/21/19[/TD]
[TD="align: right"]09/02/19[/TD]
[TD]Inactive[/TD]
[/TR]
[TR]
[TD]ErickLopez-Gonzalez[/TD]
[TD="align: right"]08/21/19[/TD]
[TD="align: right"]09/02/19[/TD]
[TD]Inactive
[/TD]
[/TR]
</tbody>[/TABLE]

The desired result is a summary looking like this:

[TABLE="width: 336"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]Enrollments[/TD]
[TD]Withdrawals[/TD]
[/TR]
[TR]
[TD]Aug[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sep[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Oct[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Nov[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"]877[/TD]
[TD="align: right"]172[/TD]
[/TR]
</tbody>[/TABLE]


I just can't figure out how to sum up the number of dates in each month to get a total. The totals showing I got by counting the entries in both columns. I tried a Pivot Table but couldn't get mine right, if that's even the way to get it. Any help would be greatly appreciated. Thank you.

Andy
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
How about


Book1
ABCDEFGHI
1StudentNameEnrolledWithdrewStatusEnrolledWithdrew
2JamesMcIntire22/07/201922/08/2019Inactive01/07/201960
3SierraChristian29/07/201923/08/2019Inactive01/08/2019912
4RodgerCummings29/07/201923/08/2019Inactive01/09/201903
5AvaleeStevens29/07/201923/08/2019Inactive
6KhloePowell30/07/201927/08/2019Inactive
7JoshuaShade31/07/201927/08/2019Inactive
8JacquilineBelcher16/08/201928/08/2019Inactive
9KennedyMynhier19/08/201928/08/2019Inactive
10SydneyWinter21/08/201928/08/2019Inactive
11DarriusWilkerson21/08/201929/08/2019Inactive
12RamonRamos Mendoza21/08/201930/08/2019Inactive
13EleanorSells21/08/201930/08/2019Inactive
14EricCalloway21/08/201902/09/2019Inactive
15HaleyJohnson21/08/201902/09/2019Inactive
16ErickLopez-Gonzalez21/08/201902/09/2019Inactive
Database
Cell Formulas
RangeFormula
H2=COUNTIFS(B:B,">="&$G2,B:B,"<"&EDATE($G2,1))
I2=COUNTIFS(C:C,">="&$G2,C:C,"<"&EDATE($G2,1))
 
Upvote 0
I tried it and it worked perfectly. Thank you for your assistance. It helps so much. Cheers, Fluff!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top