Count members with different memberships

Charlie_

New Member
Joined
Oct 22, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hej.

I am running a gym, and we have 3 different type of memberships.
a yearly membership, a half year membership and a 2 month membership.
I would like to keep track of members, how many I have in any given month.
So I am trying to find a way, to subtract members from a running total, when their membership runs out.
Our memberships default to running from specific dates, to specific dates, so not from bought date.

I could make a list of dates, and check to see if their membership is active, but it would be a lot of data.

best regards
Charlie
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Welcome to the Board!

Your question is quite general, and we would need to know more specifics in order to help you come up with a solution, namely we would need to know the structure of your data.
Could you post a sample of what your data actually looks like?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Sorry for missing out on added some data.
This is a qucik snippet of the data, and a refrence ark over all the data type:_

Book1
ABCDEFGHI
1Date/timeMembershipSub-StyleaffiliationMembership nameSub-Styleaffiliation
217-06-2020Membership - associate (2)Yearly associateMembership - student () (1)Half-yearlystudent ()
317-06-2020Membership - associate (2)Yearly associateMembership - student () (2)Yearlystudent ()
417-06-2020Membership - associate (2)Yearly associateMembership - student () (3)Mounthlystudent ()
517-06-2020Membership - associate (2)Yearly associateMembership - student () (4)Mounthlystudent ()
617-06-2020Membership - associate (2)Yearly associateMembership - associate (1)Half-yearly associate
701-02-2021Membership - student () (1)Half-yearlystudent ()Membership - associate (2)Yearly associate
801-02-2021Membership - student () (1)Half-yearlystudent ()Membership - associate (3)Mounthly associate
901-02-2021Membership - student () (1)Half-yearlystudent ()Membership - associate (4)Mounthly associate
1001-02-2021Membership - student () (1)Half-yearlystudent ()Membership - non- (1)Half-yearlynon-
1117-06-2020Membership - associate (2)Yearly associateMembership - non- (2)Yearlynon-
1201-12-2020Membership - student () (4)Mounthlystudent ()Membership - non- (3)Mounthlynon-
1301-12-2020Membership - student () (4)Mounthlystudent ()Membership - non- (4)Mounthlynon-
1401-12-2020Membership - student () (4)Mounthlystudent ()Membership - student (Non-) (1)Half-yearlystudent ()
1501-12-2020Membership - student () (4)Mounthlystudent ()Membership - student (Non-) (2)Yearlystudent ()
1617-06-2020Membership - student () (1)Half-yearlystudent ()Membership - student (Non-) (3)Mounthlystudent ()
1717-06-2020Membership - associate (2)Yearly associateMembership - student (Non-) (4)Mounthlystudent ()
Sheet1
Cell Formulas
RangeFormula
C2:C17C2=VLOOKUP(B2,Table73,2,FALSE)
D2:D17D2=VLOOKUP(B2,Table7,3,FALSE)
 
Upvote 0
One way to do this would be to add a "helper" column, and Expiration Date column. Let's say we do that in column E.
So put this formula in cell E2 and copy down to row 17:
Excel Formula:
=EDATE(A2,LOOKUP(C2,{"Half-yearly","Mounthly","Yearly"},{6,1,12}))

Now, let's say that we have a date in cell E19, and we want to count how many active gym members we have on that day.
Then that formula might look like this:
Excel Formula:
=COUNTIFS($A$2:$A$17,"<=" & E19,$E$2:$E$17,">=" & E19)
 
Upvote 0

Forum statistics

Threads
1,214,840
Messages
6,121,895
Members
449,058
Latest member
Guy Boot

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