Calculating Current Member Count

atomictoyguy

New Member
Joined
May 2, 2011
Messages
18
I help run a small club and I am using a spreadsheet to manage our membership. The problem I am trying to solve that I can't seem to find a solution to is as follows.

I currently have a spreadsheet dedicated to membership renewal transactions that has the following columns, ID Number, Transaction Date, Amount Paid, & Expiration Date. I have three named ranges created, ID_NUMBER, TRANSACTION_DATE & EXPIRATION_DATE. The table has about 1700 rows and we typically run 100 - 150 members. I would like to have a table that shows how many members we have each month for each year. I have figured out that that each transaction should count if all conditions of the following have been met.

TRANSACTION_DATE <= MONTH/YEAR
EXPIRATION_DATE >= MONTH/YEAR
ID_NUMBER IS NOT DUPLICATE * This is important as we do have early renewals and I don't want them to count as two members.

Example Data:
Code:
TRANSACTION     ID      AMOUNT   EXPIRATION
   DATE       NUMBER     PAID       DATE
 2/26/1995       1      $15.00    2/26/1996
 2/26/1995       2      $15.00    2/26/1996
 2/26/1995       3      $15.00    2/26/1996
  3/1/1995       4      $15.00     3/1/1996
  3/2/1995       5      $15.00     3/2/1996
 3/12/1995       6      $15.00    3/12/1996
 3/26/1995       7      $15.00    3/26/1996
  4/2/1995       8      $15.00     4/2/1996
 4/19/1995       9      $15.00    4/19/1996
  5/3/1995       10     $15.00     5/3/1996
 5/10/1995       2      $15.00    2/26/1997 * Early Renewal Example
 5/10/1995       1      $15.00    2/26/1997 * Early Renewal Example

Example Result:
Code:
       1    2    3    4    5    6    7    8    9   10   11   12
      Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
1995   0    3    6    9   10   10   10   10   10   10   10   10
1996  10   10    9    5    3    2    2    2    2    2    2    2   
1997   2    2    0    0    0    0    0    0    0    0    0    0

I have figured out how to count total transactions per month per year but I can't seem to noodle this out. I have done some searching on your forum and on google. But have yet to find a solution.

Any help will be greatly appreciated!!! Thanks in advance!

If additional details are needed please advise and I will provide as quickly as possible.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hello and Welcome,

I have figured out that that each transaction should count if all conditions of the following have been met.

TRANSACTION_DATE<= MONTH/YEAR
EXPIRATION_DATE >= MONTH/YEAR
ID_NUMBER IS NOT DUPLICATE * This is important as we do have early renewals and I don't want them to count as two members.

Rather than trying to eliminate the duplicate periods for the early renewals, would it work to just key off the period spanning from:
Expiration Date-12 months to Expiration date?

If so, the formula could look like this...
Excel Workbook
ABCDEFGHI
1STARTIDPAIDEXPIRES123
22/26/19951$15.002/26/1996JANFEBMAR
32/26/19952$15.002/26/19961995037
42/26/19953$15.002/26/1996199610129
53/1/19954$15.003/1/19961997220
Sheet1
Excel 2007
Cell Formulas
RangeFormula
G3=COUNTIFS($D$2:$D$1700,">="&DATE($F3,G$1,1),$D$2:$D$1700,"<="&DATE($F3+1,G$1+1,0))
H3=COUNTIFS($D$2:$D$1700,">="&DATE($F3,H$1,1),$D$2:$D$1700,"<="&DATE($F3+1,H$1+1,0))
I3=COUNTIFS($D$2:$D$1700,">="&DATE($F3,I$1,1),$D$2:$D$1700,"<="&DATE($F3+1,I$1+1,0))
 
Upvote 0
Jerry,

I applied this formula and it seems to work... I haven't double checked the numbers but it looks close enough to me.

Thanks!!!

Also, that formula calculates quickly which I appreciate!!!

Regards,
Lucas
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

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